Pawel patch for MidiBufferMixdown.