mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
triggerbox: if clip recording would start immediately, delay by slot.quantization()
This commit is contained in:
parent
3015e18c18
commit
391fe97693
1 changed files with 6 additions and 0 deletions
|
|
@ -3638,6 +3638,12 @@ TriggerBox::arm_from_another_thread (Trigger& slot, samplepos_t now, uint32_t ch
|
|||
slot.compute_quantized_transition (now, now_beats, std::numeric_limits<Beats>::max(),
|
||||
t_bbt, t_beats, t_samples, tmap, slot.quantization());
|
||||
|
||||
if (t_beats == now_beats) {
|
||||
t_bbt = tmap->bbt_walk (t_bbt, slot.quantization());
|
||||
t_beats = tmap->quarters_at (t_bbt);
|
||||
t_samples = tmap->sample_at (t_beats);
|
||||
}
|
||||
|
||||
ai->start_samples = t_samples;
|
||||
ai->start_beats = t_beats;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue