Moved MIDI timing code to timing manager