pub const DECAY_SHARES: (f64, f64);Expand description
The decay time is read between these shares of the fall in dB from the peak to the sustain level, as the attack is read between 10 % and 90 % of its rise.
A decay linear in dB reads its time exactly. On generated notes whose decay was linear in amplitude, a least-squares line in dB from -1 dB to 1 dB above the sustain level read 6 to 22 % long; a fall to -3 dB, the shallowest sustain, read 9 to 19 % long even when linear in dB, since the line spanned a third of it.