From 4146177da3701b19c1fbb91b8b99da9e6e804b48 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Fri, 7 Jan 2022 09:03:21 -0600 Subject: [PATCH] triggerbox: when asked to stop by the user, clips should extend to the next bar boundary (and no further) --- libs/ardour/triggerbox.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libs/ardour/triggerbox.cc b/libs/ardour/triggerbox.cc index f4fc1bc5be..e593761b0b 100644 --- a/libs/ardour/triggerbox.cc +++ b/libs/ardour/triggerbox.cc @@ -582,6 +582,12 @@ Trigger::maybe_compute_next_transition (samplepos_t start_sample, Temporal::Beat pframes_t extra_offset = 0; BBT_Offset q (_quantization); + /* Clips don't stop on their own quantize; in Live they stop on the Global Quantize setting; we will choose 1 bar (Live's default) for now */ +# warning when Global Quantize is implemented, use that instead of '1 bar' here + if (_state == WaitingToStop) { + q = BBT_Offset(1,0,0); + } + /* XXX need to use global grid here is quantization == zero */ /* Given the value of @param start, determine, based on the