Added some sanity checks.
Handle tempo changes in the music. (warning timing is wrong at this point)
Fixed timings.
slightly changed the timing computation to minimise error propagation.
Only keep the "interesting" MIDI events.
(prevents the ALSA backend from issuing warning messages)
Merge branch 'handle_tempo_changes'