fixed MIDI out packet generation