Struct bliss_audio_aubio_rs::Tempo [−][src]
pub struct Tempo { /* fields omitted */ }
Expand description
Tempo detection object
Implementations
impl Tempo
[src]
impl Tempo
[src]pub fn new(
method: OnsetMode,
buf_size: usize,
hop_size: usize,
sample_rate: u32
) -> Result<Self>
[src]
pub fn new(
method: OnsetMode,
buf_size: usize,
hop_size: usize,
sample_rate: u32
) -> Result<Self>
[src]Create tempo detection object
method
Beat tracking methodbuf_size
Length of FFThop_size
Number of frames between two consecutive runssample_rate
Sampling rate of the signal to analyze
pub fn with_silence(self, silence: Smpl) -> Self
[src]
pub fn with_silence(self, silence: Smpl) -> Self
[src]Set tempo detection silence threshold
pub fn with_threshold(self, threshold: Smpl) -> Self
[src]
pub fn with_threshold(self, threshold: Smpl) -> Self
[src]Set tempo detection peak picking threshold
pub fn with_delay(self, delay: isize) -> Self
[src]
pub fn with_delay(self, delay: isize) -> Self
[src]Set current delay in samples
pub fn with_delay_s(self, delay: Smpl) -> Self
[src]
pub fn with_delay_s(self, delay: Smpl) -> Self
[src]Set current delay in seconds
pub fn with_delay_ms(self, delay: Smpl) -> Self
[src]
pub fn with_delay_ms(self, delay: Smpl) -> Self
[src]Set current delay in milliseconds
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 tempo detection
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 tempo detection
pub fn get_last_s(&self) -> Smpl
[src]
pub fn get_last_s(&self) -> Smpl
[src]Get the time of the latest beat detected, in seconds
pub fn get_last_ms(&self) -> Smpl
[src]
pub fn get_last_ms(&self) -> Smpl
[src]Get the time of the latest beat detected, in milliseconds
pub fn set_silence(&mut self, silence: Smpl)
[src]
pub fn set_silence(&mut self, silence: Smpl)
[src]Set tempo detection silence threshold
pub fn get_silence(&self) -> Smpl
[src]
pub fn get_silence(&self) -> Smpl
[src]Get tempo detection silence threshold
pub fn set_threshold(&mut self, threshold: Smpl)
[src]
pub fn set_threshold(&mut self, threshold: Smpl)
[src]Set tempo detection peak picking threshold
pub fn get_threshold(&self) -> Smpl
[src]
pub fn get_threshold(&self) -> Smpl
[src]Get tempo peak picking threshold
pub fn get_period(&self) -> usize
[src]
pub fn get_period(&self) -> usize
[src]Get the current beat period in samples
pub fn get_period_s(&self) -> Smpl
[src]
pub fn get_period_s(&self) -> Smpl
[src]Get the current beat period in seconds
pub fn get_confidence(&self) -> Smpl
[src]
pub fn get_confidence(&self) -> Smpl
[src]Get the current tempo confidence
pub fn set_tatum_signature(&mut self, signature: u32)
[src]
pub fn set_tatum_signature(&mut self, signature: u32)
[src]Set number of tatum per beat
pub fn get_last_tatum(&self) -> Smpl
[src]
pub fn get_last_tatum(&self) -> Smpl
[src]Get position of last tatum in samples
pub fn set_delay_s(&mut self, delay: Smpl)
[src]
pub fn set_delay_s(&mut self, delay: Smpl)
[src]Set current delay in seconds
pub fn get_delay_s(&self) -> Smpl
[src]
pub fn get_delay_s(&self) -> Smpl
[src]Get current delay in seconds
pub fn set_delay_ms(&mut self, delay: Smpl)
[src]
pub fn set_delay_ms(&mut self, delay: Smpl)
[src]Set current delay in milliseconds
pub fn get_delay_ms(&self) -> Smpl
[src]
pub fn get_delay_ms(&self) -> Smpl
[src]Get current delay in milliseconds