[][src]Struct aubio_rs::Notes

pub struct Notes { /* fields omitted */ }

Notes detection object

Methods

impl Notes[src]

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

Create notes detection object

  • buf_size Buffer size for phase vocoder
  • hop_size Hop size for phase vocoder
  • samplerate Sampling rate of the input signal

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

Set notes detection silence threshold

pub fn with_minioi_ms(self, minioi: f32) -> Self[src]

Set notes detection minimum inter-onset interval, in millisecond

pub fn with_release_drop(self, release_drop: f32) -> Self[src]

Set note release drop level, in dB

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

  • input Input signal of size hop_size
  • output Output notes, fvec of length 3

The notes output is a vector of length 3 containing:

  1. the midi note value, or 0 if no note was found
  2. the note velocity
  3. the midi note to turn off

pub fn do_result<'i, I>(&mut self, input: I) -> Result<Vec<Note>> where
    I: Into<FVec<'i>>, 
[src]

Execute note detection on an input signal frame

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

Set notes detection silence threshold

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

Get notes detection silence threshold

pub fn set_minioi_ms(&mut self, minioi: f32)[src]

Set notes detection minimum inter-onset interval, in millisecond

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

Get notes detection minimum inter-onset interval, in millisecond

pub fn set_release_drop(&mut self, release_drop: f32)[src]

Set note release drop level, in dB

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

Get notes release drop level, in dB

Trait Implementations

impl Drop for Notes[src]

Auto Trait Implementations

impl RefUnwindSafe for Notes

impl !Send for Notes

impl !Sync for Notes

impl Unpin for Notes

impl UnwindSafe for Notes

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.