pub const ATTACK_PERIODS_MIN: f64 = 1.5;Expand description
A rise shorter than this many RMS windows cannot be told from a shorter one: the attack is an upper bound.
The window is one period of the fundamental, or whole periods of at least 2 ms, and a periodic wave gives one amplitude sample per period. On generated saws a 1 ms attack rose in 0.75 windows at 55 Hz and 1.1 at 220 Hz; a 5 ms attack at 220 Hz, 1.1 periods, rose in 5.0 ms, under 1.5 windows; a 10 ms attack, 2.2 periods, rose in 7.5 ms.