MIDI timing improvements.
This adds a buffer between the ASS and the MIDI interface. Synchronization is still insufficient, but most glitches should be fixed.