[−][src]Struct rustchord::Notefinder
Implementations
impl Notefinder
[src]
pub fn new(samplerate: i32) -> Notefinder
[src]
pub fn run(&mut self, data: &[f32])
[src]
pub fn get_notes(&self) -> Vec<Note>
[src]
pub fn get_folded<'a>(&'a self) -> &'a [f32]
[src]
pub fn set_dft_algorithm(&mut self, algo: DFTAlgorithm)
[src]
pub fn set_octaves(
&self,
octaves: i32
) -> Result<(), NoteFinderValidationError<i32>>
[src]
&self,
octaves: i32
) -> Result<(), NoteFinderValidationError<i32>>
pub fn set_frequency_bins(
&self,
frequency_bins: i32
) -> Result<(), NoteFinderValidationError<i32>>
[src]
&self,
frequency_bins: i32
) -> Result<(), NoteFinderValidationError<i32>>
pub fn set_base_hz(
&self,
base_hz: f32
) -> Result<(), NoteFinderValidationError<f32>>
[src]
&self,
base_hz: f32
) -> Result<(), NoteFinderValidationError<f32>>
pub fn set_filter_strength(
&self,
filter_strength: f32
) -> Result<(), NoteFinderValidationError<f32>>
[src]
&self,
filter_strength: f32
) -> Result<(), NoteFinderValidationError<f32>>
pub fn set_filter_iterations(
&self,
filter_iterations: i32
) -> Result<(), NoteFinderValidationError<i32>>
[src]
&self,
filter_iterations: i32
) -> Result<(), NoteFinderValidationError<i32>>
pub fn set_decompose_iterations(
&self,
decompose_iterations: i32
) -> Result<(), NoteFinderValidationError<i32>>
[src]
&self,
decompose_iterations: i32
) -> Result<(), NoteFinderValidationError<i32>>
pub fn set_amplification(
&self,
amplification: f32
) -> Result<(), NoteFinderValidationError<f32>>
[src]
&self,
amplification: f32
) -> Result<(), NoteFinderValidationError<f32>>
pub fn set_compress_exponent(
&self,
compress_exponent: f32
) -> Result<(), NoteFinderValidationError<f32>>
[src]
&self,
compress_exponent: f32
) -> Result<(), NoteFinderValidationError<f32>>
pub fn set_compress_coefficient(
&self,
compress_coefficient: f32
) -> Result<(), NoteFinderValidationError<f32>>
[src]
&self,
compress_coefficient: f32
) -> Result<(), NoteFinderValidationError<f32>>
pub fn set_dft_speedup(
&self,
dft_speedup: f32
) -> Result<(), NoteFinderValidationError<f32>>
[src]
&self,
dft_speedup: f32
) -> Result<(), NoteFinderValidationError<f32>>
pub fn set_dft_q(
&self,
dft_q: f32
) -> Result<(), NoteFinderValidationError<f32>>
[src]
&self,
dft_q: f32
) -> Result<(), NoteFinderValidationError<f32>>
pub fn set_default_sigma(
&self,
default_sigma: f32
) -> Result<(), NoteFinderValidationError<f32>>
[src]
&self,
default_sigma: f32
) -> Result<(), NoteFinderValidationError<f32>>
pub fn set_note_jumpability(
&self,
note_jumpability: f32
) -> Result<(), NoteFinderValidationError<f32>>
[src]
&self,
note_jumpability: f32
) -> Result<(), NoteFinderValidationError<f32>>
pub fn set_note_combine_distance(
&self,
note_combine_distance: f32
) -> Result<(), NoteFinderValidationError<f32>>
[src]
&self,
note_combine_distance: f32
) -> Result<(), NoteFinderValidationError<f32>>
pub fn set_slope(
&self,
slope: f32
) -> Result<(), NoteFinderValidationError<f32>>
[src]
&self,
slope: f32
) -> Result<(), NoteFinderValidationError<f32>>
pub fn set_note_attach_freq_iir(
&self,
note_attach_freq_iir: f32
) -> Result<(), NoteFinderValidationError<f32>>
[src]
&self,
note_attach_freq_iir: f32
) -> Result<(), NoteFinderValidationError<f32>>
pub fn set_note_attach_amp_iir(
&self,
note_attach_amp_iir: f32
) -> Result<(), NoteFinderValidationError<f32>>
[src]
&self,
note_attach_amp_iir: f32
) -> Result<(), NoteFinderValidationError<f32>>
pub fn set_note_attach_amp_iir2(
&self,
note_attach_amp_iir2: f32
) -> Result<(), NoteFinderValidationError<f32>>
[src]
&self,
note_attach_amp_iir2: f32
) -> Result<(), NoteFinderValidationError<f32>>
pub fn set_note_minimum_new_distribution_value(
&self,
note_minimum_new_distribution_value: f32
) -> Result<(), NoteFinderValidationError<f32>>
[src]
&self,
note_minimum_new_distribution_value: f32
) -> Result<(), NoteFinderValidationError<f32>>
pub fn set_note_out_chop(
&self,
note_out_chop: f32
) -> Result<(), NoteFinderValidationError<f32>>
[src]
&self,
note_out_chop: f32
) -> Result<(), NoteFinderValidationError<f32>>
pub fn set_dft_iir(
&self,
dft_iir: f32
) -> Result<(), NoteFinderValidationError<f32>>
[src]
&self,
dft_iir: f32
) -> Result<(), NoteFinderValidationError<f32>>
Trait Implementations
impl Send for Notefinder
[src]
Auto Trait Implementations
impl RefUnwindSafe for Notefinder
[src]
impl !Sync for Notefinder
[src]
impl Unpin for Notefinder
[src]
impl UnwindSafe for Notefinder
[src]
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
[src]
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
pub fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
pub fn adapt_into(self) -> D
[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> ConvertInto<U> for T where
U: ConvertFrom<T>,
[src]
U: ConvertFrom<T>,
pub fn convert_into(self) -> U
[src]
pub fn convert_unclamped_into(self) -> U
[src]
pub fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
[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.
pub 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>,