mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
triggerbox: when asked to stop by the user, clips should extend to the next bar boundary (and no further)
This commit is contained in:
parent
8548626adf
commit
4146177da3
1 changed files with 6 additions and 0 deletions
|
|
@ -582,6 +582,12 @@ Trigger::maybe_compute_next_transition (samplepos_t start_sample, Temporal::Beat
|
||||||
pframes_t extra_offset = 0;
|
pframes_t extra_offset = 0;
|
||||||
BBT_Offset q (_quantization);
|
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 */
|
/* XXX need to use global grid here is quantization == zero */
|
||||||
|
|
||||||
/* Given the value of @param start, determine, based on the
|
/* Given the value of @param start, determine, based on the
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue