Struct bliss_audio_aubio_rs::Notes [−][src]
pub struct Notes { /* fields omitted */ }
Expand description
Notes detection object
Implementations
impl Notes
[src]
impl Notes
[src]pub fn new(buf_size: usize, hop_size: usize, sample_rate: u32) -> Result<Self>
[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: Smpl) -> Self
[src]
pub fn with_silence(self, silence: Smpl) -> Self
[src]Set notes detection silence threshold
pub fn with_minioi_ms(self, minioi: Smpl) -> Self
[src]
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]
pub fn with_release_drop(self, release_drop: Smpl) -> Self
[src]Set note release drop level, in dB
pub fn do_<'i, 'o, I, O>(&mut self, input: I, output: O) -> Status where
I: Into<FVec<'i>>,
O: Into<FVecMut<'o>>,
[src]
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 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]
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]
pub fn set_silence(&mut self, silence: Smpl)
[src]Set notes detection silence threshold
pub fn get_silence(&self) -> Smpl
[src]
pub fn get_silence(&self) -> Smpl
[src]Get notes detection silence threshold
pub fn set_minioi_ms(&mut self, minioi: Smpl)
[src]
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]
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]
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]
pub fn get_release_drop(&self) -> Smpl
[src]Get notes release drop level, in dB