mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-27 23:48:22 +01:00
When the loop-range is defined in BeatTime, the disk-reader encounters rounding issues due to time-domain mismatches. With a simple session fixed BPM at 120, 48kHz. looping 1 bar exactly 2 sec at the start of the session: ``` Range::squish start: b0 end: b7680 squish: a113554560 Range::squish using modulo: b45 = a661500 Range::squish using modulo in TD: a5760 Range::squish using earlier(): a658560 ``` The correct answer is a113554560 - 2 * 56448000 [SC/sec] = a658560 Calculating the modulo iteratively is not great, however usually only one iteration is required. |
||
|---|---|---|
| .. | ||
| bbt_time.h | ||
| beats.h | ||
| debug.h | ||
| range.h | ||
| superclock.h | ||
| tempo-experiment.h | ||
| tempo.h | ||
| time.h | ||
| timeline.h | ||
| types.h | ||
| types_convert.h | ||
| visibility.h | ||