pub fn max_to_total(envelope: &[f32]) -> Result<f32, AudioError>Expand description
Position of the maximum of envelope, normalised to [0, 1) by the total
length (argmax / len). A value near 0 indicates an early peak (percussive
onset); near 1, a late peak.
ยงErrors
AudioError::InvalidParameterifenvelopeis empty.