[−][src]Struct aubio_rs::Notes
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 vocoderhop_size
Hop size for phase vocodersamplerate
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]
I: Into<FVec<'i>>,
O: Into<FVecMut<'o>>,
Execute note detection on an input signal frame
input
Input signal of sizehop_size
output
Output notes, fvec of length 3
The notes output is a vector of length 3 containing:
- the midi note value, or 0 if no note was found
- the note velocity
- 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]
I: Into<FVec<'i>>,
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,