Skip to main content

PERIOD_RUN_BEATS

Constant PERIOD_RUN_BEATS 

Source
pub const PERIOD_RUN_BEATS: usize = 64;
Expand description

The period search’s first stage reads at most this many beats of the longest run; the second refines over all counted beats.

Its cost grows with the square of the beats it reads: a 10-minute held chord took 277 s over its whole run, against 6.5 s without the layer.