Trait PitchDetector

Source
pub trait PitchDetector {
    // Required method
    fn pitch(
        &mut self,
        audio_buffer: &[f64],
        frequency_range: Option<Range<f64>>,
    ) -> f64;
}

Required Methods§

Source

fn pitch( &mut self, audio_buffer: &[f64], frequency_range: Option<Range<f64>>, ) -> f64

Find the most significant fundamental pitch in the specified audio buffer, optionally within a given frequency range. Return 0.0 if no pitch is detected.

Implementors§