Skip to main content

SPARSE_PERIODICITY_MIN

Constant SPARSE_PERIODICITY_MIN 

Source
pub const SPARSE_PERIODICITY_MIN: f64 = 0.75;
Expand description

The lowest share of the onset strength that repeats every 2 or every 4 refined beats, for a part whose beat periodicity is too low.

One onset a bar repeats on a quarter of the beat lags, so its beat periodicity reads near 0.25. Read on every second or fourth lag alone, it reads near 1. Those lags are fewer and line up by chance more often: a drum part whose --bpm is 3.5 % off reads 0.47 at a tempo 16/15 of the truth, where every eighth beat meets an eighth note. A tempo ramp of 1 % reads 0.62 at most, and generated parts with one kick a bar or every other beat read 0.875 or more; the threshold sits between them.