diff --git a/libs/ardour/delivery.cc b/libs/ardour/delivery.cc index f5397fd236..f1092cebfd 100644 --- a/libs/ardour/delivery.cc +++ b/libs/ardour/delivery.cc @@ -303,8 +303,9 @@ Delivery::maybe_merge_midi_mute (BufferSet& bufs, bool always) if (always || ((1< ev (Evoral::MIDI_EVENT, 0, 3, buf); - _midi_mute_buffer.push_back (ev); + _midi_mute_buffer.push_back (0, Evoral::MIDI_EVENT, 3, buf); + buf[1] = MIDI_CTL_ALL_NOTES_OFF; + _midi_mute_buffer.push_back (0, Evoral::MIDI_EVENT, 3, buf); /* Note we do not send MIDI_CTL_ALL_NOTES_OFF here, since this may silence notes that came from another non-muted track. */