13
0

triggerbox: triggers estimated to be 1 bar long are not one-shots

This commit is contained in:
Paul Davis 2021-12-27 15:07:44 -07:00
parent f9903a7a8b
commit af37a51b65

View File

@ -967,7 +967,7 @@ AudioTrigger::probably_oneshot () const
if ((usable_length < (_box.session().sample_rate()/2)) || if ((usable_length < (_box.session().sample_rate()/2)) ||
/* XXX use Meter here, not 4.0 */ /* 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"; std::cerr << "looks like a one-shot\n";
return true; return true;
} }