From b1c04f110864b1bb59053fbb1175ed3293bfdff1 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Wed, 26 Jan 2022 15:43:59 -0600 Subject: [PATCH] Triggerbox: Empty slots act as a Stop unless cue_isolated is set (TODO: can we report this to user?) --- libs/ardour/triggerbox.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/ardour/triggerbox.cc b/libs/ardour/triggerbox.cc index dec25fb63d..45408d1801 100644 --- a/libs/ardour/triggerbox.cc +++ b/libs/ardour/triggerbox.cc @@ -2688,7 +2688,12 @@ TriggerBox::run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_samp DEBUG_TRACE (DEBUG::Triggers, string_compose ("tb noticed active scene %1\n", _active_scene)); if (_active_scene < (int32_t) all_triggers.size()) { if (!all_triggers[_active_scene]->cue_isolated()) { - all_triggers[_active_scene]->bang (); + if (all_triggers[_active_scene]->region()) { + all_triggers[_active_scene]->bang (); + } else { + stop_all_quantized (); //empty slot, this should work as a Stop for the running clips + //TODO: can we set a flag so the UI reports that we are stopping? + } } } }