Struct bliss_audio_aubio_rs::Tempo[][src]

pub struct Tempo { /* fields omitted */ }
Expand description

Tempo detection object

Implementations

impl Tempo[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 method
  • 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: Smpl) -> Self[src]

Set tempo detection silence threshold

pub fn with_threshold(self, threshold: Smpl) -> 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: Smpl) -> Self[src]

Set current delay in seconds

pub fn with_delay_ms(self, delay: Smpl) -> 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<Smpl> 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) -> Smpl[src]

Get the time of the latest beat detected, in seconds

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]

Set tempo detection silence threshold

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

Get tempo detection silence threshold

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

Set tempo detection peak picking threshold

pub fn get_threshold(&self) -> Smpl[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) -> Smpl[src]

Get the current beat period in seconds

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

Get the current tempo

pub fn get_confidence(&self) -> Smpl[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) -> Smpl[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: Smpl)[src]

Set current delay in seconds

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

Get current delay in seconds

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

Set current delay in milliseconds

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

Get current delay in milliseconds

Trait Implementations

impl Drop for Tempo[src]

fn drop(&mut self)[src]

Executes the destructor for this type. Read more

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]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.