Struct bliss_audio_aubio_rs::Pitch[][src]

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

Pitch detection object

Implementations

impl Pitch[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 algorithm
  • buf_size Size of the input buffer to analyse
  • hop_size Step size between two consecutive analysis instant
  • sample_rate Sampling rate of the signal

pub fn with_tolerance(self, tolerance: Smpl) -> Self[src]

Change yin or yinfft tolerance threshold

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]

Set the output unit of the pitch detection object

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 pitch detection on an input signal frame

  • input Input signal of size hop_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]

Execute pitch detection on an input signal frame

  • input Input signal of size hop_size

pub fn set_tolerance(&mut self, tolerance: Smpl)[src]

Change yin or yinfft tolerance threshold

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

Get yin or yinfft tolerance threshold

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]

Get the silence threshold of the pitch detection object

pub fn set_unit(&mut self, unit: PitchUnit)[src]

Set the output unit of the pitch detection object

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

Get the current confidence of the pitch algorithm

Trait Implementations

impl Drop for Pitch[src]

fn drop(&mut self)[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl RefUnwindSafe for Pitch

impl !Send for Pitch

impl !Sync for Pitch

impl Unpin for Pitch

impl UnwindSafe for Pitch

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.