mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 14:15:46 +01:00
triggerbox: NOOP - add explanatory comment
This commit is contained in:
parent
ca7b418281
commit
40c1a7016a
1 changed files with 6 additions and 0 deletions
|
|
@ -828,6 +828,12 @@ AudioTrigger::determine_tempo ()
|
|||
const double quarters = (seconds / 60.) * _apparent_tempo;
|
||||
_barcnt = quarters / metric.meter().divisions_per_bar();
|
||||
|
||||
/* now check the determined tempo and force it to a value that gives us
|
||||
an integer bar/quarter count. This is a heuristic that tries to
|
||||
avoid clips that slightly over- or underrun a quantization point,
|
||||
resulting in small or larger gaps in output if they are repeating.
|
||||
*/
|
||||
|
||||
if ((_apparent_tempo != 0.) && (rint (_barcnt) != _barcnt)) {
|
||||
/* fractional barcnt */
|
||||
int intquarters = floor (quarters);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue