Skip to main content

harmonics

Function harmonics 

Source
pub fn harmonics(magnitude: &[f64], fraction: f64) -> Vec<usize>
Expand description

The peaks at or above fraction of the strongest one, in bin order.

fraction is a share of the largest magnitude in the spectrum, so 0.1 keeps everything within 20 dB of the peak.