Skip to main content

am_depth

Function am_depth 

Source
pub fn am_depth(envelope: &[f64]) -> Option<Normalized>
Expand description

The modulation depth of an envelope, (max - min) / (max + min). Returns None for an empty or all-zero envelope.