Struct bliss_audio_aubio_rs::Pitch [−][src]
pub struct Pitch { /* fields omitted */ }
Expand description
Pitch detection object
Implementations
impl Pitch
[src]
impl Pitch
[src]pub fn new(
method: PitchMode,
buf_size: usize,
hop_size: usize,
sample_rate: u32
) -> Result<Self>
[src]
pub fn new(
method: PitchMode,
buf_size: usize,
hop_size: usize,
sample_rate: u32
) -> Result<Self>
[src]Creation of the pitch detection object
method
Pitch detection algorithmbuf_size
Size of the input buffer to analysehop_size
Step size between two consecutive analysis instantsample_rate
Sampling rate of the signal
pub fn with_tolerance(self, tolerance: Smpl) -> Self
[src]
pub fn with_tolerance(self, tolerance: Smpl) -> Self
[src]Change yin or yinfft tolerance threshold
pub fn with_silence(self, silence: Smpl) -> Self
[src]
pub fn with_silence(self, silence: Smpl) -> Self
[src]Set the silence threshold of the pitch detection object
pub fn with_unit(self, unit: PitchUnit) -> Self
[src]
pub fn with_unit(self, unit: PitchUnit) -> Self
[src]Set the output unit of the pitch detection object
pub fn do_<'i, 'o, I, O>(&mut self, input: I, output: O) -> Status where
I: Into<FVec<'i>>,
O: Into<FVecMut<'o>>,
[src]
pub fn do_<'i, 'o, I, O>(&mut self, input: I, output: O) -> Status where
I: Into<FVec<'i>>,
O: Into<FVecMut<'o>>,
[src]Execute pitch detection on an input signal frame
input
Input signal of sizehop_size
output
Output pitch candidates of size 1
pub fn do_result<'i, I>(&mut self, input: I) -> Result<Smpl> where
I: Into<FVec<'i>>,
[src]
pub fn do_result<'i, I>(&mut self, input: I) -> Result<Smpl> where
I: Into<FVec<'i>>,
[src]Execute pitch detection on an input signal frame
input
Input signal of sizehop_size
pub fn set_tolerance(&mut self, tolerance: Smpl)
[src]
pub fn set_tolerance(&mut self, tolerance: Smpl)
[src]Change yin or yinfft tolerance threshold
pub fn get_tolerance(&self) -> Smpl
[src]
pub fn get_tolerance(&self) -> Smpl
[src]Get yin or yinfft tolerance threshold
pub fn set_silence(&mut self, silence: Smpl)
[src]
pub fn set_silence(&mut self, silence: Smpl)
[src]Set the silence threshold of the pitch detection object
pub fn get_silence(&self) -> Smpl
[src]
pub fn get_silence(&self) -> Smpl
[src]Get the silence threshold of the pitch detection object
pub fn get_confidence(&self) -> Smpl
[src]
pub fn get_confidence(&self) -> Smpl
[src]Get the current confidence of the pitch algorithm