Optimised MIDI output so the timer only fires when there is actually MIDI data in the buffer - reduces CPU load considerably.