pyin_rs/lib.rs
1mod core;
2mod fft;
3mod hmm;
4mod pyin;
5mod yin;
6
7use std::ops::Range;
8
9pub use pyin::Pyin;
10pub use yin::Yin;
11
12pub trait PitchDetector {
13 /**
14 * Find the most significant fundamental pitch in the specified audio buffer, optionally
15 * within a given frequency range.
16 * Return 0.0 if no pitch is detected.
17 */
18 fn pitch(&mut self, audio_buffer: &[f64], frequency_range: Option<Range<f64>>) -> f64;
19}