bugfix: tempo changes caused timing problems in MIDI file playback.

(Reported by Michelle Thompson.)