triggerbox: triggers estimated to be 1 bar long are not one-shots
This commit is contained in:
parent
f9903a7a8b
commit
af37a51b65
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user