OnsetMode

Enum OnsetMode 

Source
pub enum OnsetMode {
    Energy,
    Hfc,
    Complex,
    Phase,
    WPhase,
    SpecDiff,
    Kl,
    Mkl,
    SpecFlux,
}
Expand description

Onset detection function

Variants§

§

Energy

Energy based onset detection function

This function calculates the local energy of the input spectral frame.

§

Hfc

High Frequency Content onset detection function

This method computes the High Frequency Content (HFC) of the input spectral frame. The resulting function is efficient at detecting percussive onsets.

Paul Masri. Computer modeling of Sound for Transformation and Synthesis of Musical Signal. PhD dissertation, University of Bristol, UK, 1996.

§

Complex

Complex Domain Method onset detection function

Christopher Duxbury, Mike E. Davies, and Mark B. Sandler. Complex domain onset detection for musical signals. In Proceedings of the Digital Audio Effects Conference, DAFx-03, pages 90-93, London, UK, 2003.

§

Phase

Phase Based Method onset detection function

Juan-Pablo Bello, Mike P. Davies, and Mark B. Sandler. Phase-based note onset detection for music signals. In Proceedings of the IEEE International Conference on Acoustics Speech and Signal Processing, pages 441­444, Hong-Kong, 2003.

§

WPhase

Weighted Phase Deviation onset detection function

S. Dixon. Onset detection revisited. In Proceedings of the 9th International Conference on Digital Audio Ef- fects (DAFx) , pages 133–137, 2006.

See http://www.eecs.qmul.ac.uk/~simond/pub/2006/dafx.pdf

§

SpecDiff

Spectral difference method onset detection function

Jonhatan Foote and Shingo Uchihashi. The beat spectrum: a new approach to rhythm analysis. In IEEE International Conference on Multimedia and Expo (ICME 2001), pages 881­884, Tokyo, Japan, August 2001.

§

Kl

Kullback-Liebler onset detection function

Stephen Hainsworth and Malcom Macleod. Onset detection in music audio signals. In Proceedings of the International Computer Music Conference (ICMC), Singapore, 2003.

§

Mkl

Modified Kullback-Liebler onset detection function

Paul Brossier, “Automatic annotation of musical audio for interactive systems”, Chapter 2, Temporal segmentation, PhD thesis, Centre for Digital music, Queen Mary University of London, London, UK, 2006.

§

SpecFlux

Spectral Flux

Simon Dixon, Onset Detection Revisited, in “Proceedings of the 9th International Conference on Digital Audio Effects” (DAFx-06), Montreal, Canada, 2006.

Trait Implementations§

Source§

impl AsNativeStr for OnsetMode

Source§

fn as_native_str(&self) -> &'static str

Implementations should return strings ended with ‘\0’ (for ex.: "energy\0")
Source§

fn as_native_cstr(&self) -> *const c_char

Get constant as null-terminated C-string
Source§

fn as_rust_str(&self) -> &'static str

Get constant as rust string slice
Source§

impl AsRef<str> for OnsetMode

Source§

fn as_ref(&self) -> &str

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Clone for OnsetMode

Source§

fn clone(&self) -> OnsetMode

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for OnsetMode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for OnsetMode

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Display for OnsetMode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult

Formats the value using the given formatter. Read more
Source§

impl FromStr for OnsetMode

Source§

type Err = Error

The associated error which can be returned from parsing.
Source§

fn from_str(src: &str) -> Result<Self>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for OnsetMode

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for OnsetMode

Source§

fn eq(&self, other: &OnsetMode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for OnsetMode

Source§

impl Eq for OnsetMode

Source§

impl SpecMethod for OnsetMode

Source§

impl StructuralPartialEq for OnsetMode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.