From 391fe97693bd6b8f91c4d26f7363dd56978d880a Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 27 Oct 2025 19:42:23 -0600 Subject: [PATCH] triggerbox: if clip recording would start immediately, delay by slot.quantization() --- libs/ardour/triggerbox.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libs/ardour/triggerbox.cc b/libs/ardour/triggerbox.cc index ff0407f2d9..a09a527cab 100644 --- a/libs/ardour/triggerbox.cc +++ b/libs/ardour/triggerbox.cc @@ -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::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;