mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 20:26:30 +01:00
triggerbox: triggers estimated to be 1 bar long are not one-shots
This commit is contained in:
parent
f9903a7a8b
commit
af37a51b65
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue