Fix MIDI example (add call to flush).