From 3dafaaf2df6d9057535b16796cd986b89fe3a555 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 10 Dec 2019 21:27:10 -0700 Subject: [PATCH] should probably resolve MIDI notes when loop bounds change We don't really need to do this if the bounds have moved "outwards", but at present we don't know if that is the case, so be safe and resolve in case the loop bounds moved "inwards" and we would otherwise get stuck notes caused by the now-missing noteOffs --- libs/ardour/disk_reader.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/disk_reader.cc b/libs/ardour/disk_reader.cc index 375cc1c937..7ef38ce34a 100644 --- a/libs/ardour/disk_reader.cc +++ b/libs/ardour/disk_reader.cc @@ -526,7 +526,7 @@ DiskReader::set_pending_overwrite (OverwriteReason why) overwrite_offset = c->front()->rbuf->read_ptr(); } - if (why & (PlaylistModified|PlaylistChanged)) { + if (why & (LoopChanged|PlaylistModified|PlaylistChanged)) { run_must_resolve = true; }