From 6b675bac18c48a4a140838673e487f896b60b3fc Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 19 Jun 2025 13:37:53 -0600 Subject: [PATCH] for MIDI mute block in Delivery, add ALL_NOTES_OFF --- libs/ardour/delivery.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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. */