From af37a51b6592764800ddfcca34f2076ffda22694 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 27 Dec 2021 15:07:44 -0700 Subject: [PATCH] triggerbox: triggers estimated to be 1 bar long are not one-shots --- libs/ardour/triggerbox.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/triggerbox.cc b/libs/ardour/triggerbox.cc index aa8d2d57e2..79fa62f2bd 100644 --- a/libs/ardour/triggerbox.cc +++ b/libs/ardour/triggerbox.cc @@ -967,7 +967,7 @@ AudioTrigger::probably_oneshot () const if ((usable_length < (_box.session().sample_rate()/2)) || /* XXX use Meter here, not 4.0 */ - ((_barcnt <= 1) && (usable_length < (4.0 * ((_box.session().sample_rate() * 60) / _apparent_tempo))))) { + ((_barcnt < 1) && (usable_length < (4.0 * ((_box.session().sample_rate() * 60) / _apparent_tempo))))) { std::cerr << "looks like a one-shot\n"; return true; }