13
0

triggerbox: when asked to stop by the user, clips should extend to the next bar boundary (and no further)

This commit is contained in:
Ben Loftis 2022-01-07 09:03:21 -06:00
parent 8548626adf
commit 4146177da3

View File

@ -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