Struct bliss_audio_aubio_rs::Notes[][src]

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

Notes detection object

Implementations

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: Smpl) -> Self[src]

Set notes detection silence threshold

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

Set notes detection minimum inter-onset interval, in millisecond

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

Set notes detection silence threshold

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

Get notes detection silence threshold

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

Set notes detection minimum inter-onset interval, in millisecond

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

Get notes detection minimum inter-onset interval, in millisecond

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

Set note release drop level, in dB

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

Get notes release drop level, in dB

Trait Implementations

impl Drop for Notes[src]

fn drop(&mut self)[src]

Executes the destructor for this type. Read more

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]

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.