pub const PERIOD_RANGE: f64 = 0.025;Expand description
The first stage of the period search reads this far either side of the grid’s period, as a share of it; the second reads one step past it.
A step moves the last beat of the longest run of counted beats by 1 bin, so the reach follows that run: up to 2.73 % at 4 beats, 2.81 % at 5, 2.60 % at 6, 2.68 % at 7, 2.66 % at 10, 2.58 % at 20 and 2.51 % at 64.
A sidechain follows the song’s own tempo, and a stem’s tempo may be off by 1 or 2 %. Over 32 beats a 1 % error moves the duck by a third of a beat, so its beats no longer fold onto one curve.