[][src]Struct aubio_rs::Tempo

pub struct Tempo { /* fields omitted */ }

Tempo detection object

Methods

impl Tempo[src]

pub fn new(buf_size: usize, hop_size: usize, sample_rate: u32) -> Result<Self>[src]

Create tempo detection object

  • buf_size Length of FFT
  • hop_size Number of frames between two consecutive runs
  • sample_rate Sampling rate of the signal to analyze

pub fn with_silence(self, silence: f32) -> Self[src]

Set tempo detection silence threshold

pub fn with_threshold(self, threshold: f32) -> Self[src]

Set tempo detection peak picking threshold

pub fn with_delay(self, delay: isize) -> Self[src]

Set current delay in samples

pub fn with_delay_s(self, delay: f32) -> Self[src]

Set current delay in seconds

pub fn with_delay_ms(self, delay: f32) -> Self[src]

Set current delay in milliseconds

pub fn get_hop(&self) -> usize[src]

Get hop size

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<f32> where
    I: Into<FVec<'i>>, 
[src]

Execute tempo detection

pub fn get_last(&self) -> usize[src]

Get the time of the latest beat detected, in samples

pub fn get_last_s(&self) -> f32[src]

Get the time of the latest beat detected, in seconds

pub fn get_last_ms(&self) -> f32[src]

Get the time of the latest beat detected, in milliseconds

pub fn set_silence(&mut self, silence: f32)[src]

Set tempo detection silence threshold

pub fn get_silence(&self) -> f32[src]

Get tempo detection silence threshold

pub fn set_threshold(&mut self, threshold: f32)[src]

Set tempo detection peak picking threshold

pub fn get_threshold(&self) -> f32[src]

Get tempo peak picking threshold

pub fn get_period(&self) -> usize[src]

Get the current beat period in samples

pub fn get_period_s(&self) -> f32[src]

Get the current beat period in seconds

pub fn get_bpm(&self) -> f32[src]

Get the current tempo

pub fn get_confidence(&self) -> f32[src]

Get the current tempo confidence

pub fn set_tatum_signature(&mut self, signature: u32)[src]

Set number of tatum per beat

pub fn was_tatum(&self) -> u32[src]

Check whether a tatum was detected in the current frame

pub fn get_last_tatum(&self) -> f32[src]

Get position of last tatum in samples

pub fn set_delay(&mut self, delay: isize)[src]

Set current delay in samples

pub fn get_delay(&self) -> usize[src]

Get current delay in samples

pub fn set_delay_s(&mut self, delay: f32)[src]

Set current delay in seconds

pub fn get_delay_s(&self) -> f32[src]

Get current delay in seconds

pub fn set_delay_ms(&mut self, delay: f32)[src]

Set current delay in milliseconds

pub fn get_delay_ms(&self) -> f32[src]

Get current delay in milliseconds

Trait Implementations

impl Drop for Tempo[src]

Auto Trait Implementations

impl RefUnwindSafe for Tempo

impl !Send for Tempo

impl !Sync for Tempo

impl Unpin for Tempo

impl UnwindSafe for Tempo

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.