This is very bad  code, but a very good solution for syncing music on a CAN Bus. Accuracy lower than 1 Micorsecond