Closed cracked-machine closed 2 years ago
Solution was to have one timer in SequenceManager. The ISR would count 0->12. Every count would send a MIDI clock message, but only when reaching 12 would the Pattern cursor be incremented.
e0813dfe3eba70da7c41fa62eb7fcb1d4a5ce861
Both MIDI heartbeat and sequencer step execution need to run in synchronization but at different frequencies. i.e. The MIDI timer needs to run faster. Therefore they are triggered by seperate timers. However there are drift issues with the synchronization if we simply set the timer frequency manually. A better solution is needed:
master/slave syncNo good, the slave timer must run at the same freq as the master.