[][src]Struct pitch_calc::mel::Mel

pub struct Mel(pub Mel);

Mel value representation

  • based on the Mel scale coined by Stevens, Volkmann and Newman in 1937.

Methods

impl Mel[src]

pub fn mel(self) -> Mel[src]

Return the unit value of the Mel struct.

pub fn hz(self) -> Hz[src]

Convert to hz.

pub fn to_hz(self) -> Hz[src]

Convert to a Hz struct.

pub fn letter_octave(self) -> (Letter, Octave)[src]

Convert to (Letter, Octave) tuple.

pub fn letter(self) -> Letter[src]

Convert to Letter.

pub fn octave(self) -> Octave[src]

Convert to Octave.

pub fn to_letter_octave(self) -> LetterOctave[src]

Convert to LetterOctave struct with the closest pitch.

pub fn perc(self) -> Perc[src]

Convert to a percentage of the human hearing range.

pub fn to_perc(self) -> Perc[src]

Convert to a Perc struct.

pub fn scaled_perc_with_weight(self, weight: ScaleWeight) -> Perc[src]

Convert to a scaled percentage of the human hearing range with a given weight.

pub fn scaled_perc(self) -> Perc[src]

Convert to a scaled percentage of the human hearing range.

pub fn to_scaled_perc_with_weight(self, weight: ScaleWeight) -> ScaledPerc[src]

Convert to a scaled percentage of the human hearing range with a given weight.

pub fn to_scaled_perc(self) -> ScaledPerc[src]

Convert to a scaled percentage of the human hearing range.

pub fn step(self) -> Step[src]

Convert to the unit value of a Step.

pub fn to_step(self) -> Step[src]

Convert to a Step struct.

Trait Implementations

impl Add<Mel> for Mel[src]

type Output = Mel

The resulting type after applying the + operator.

impl Clone for Mel[src]

impl Copy for Mel[src]

impl Debug for Mel[src]

impl Div<Mel> for Mel[src]

type Output = Mel

The resulting type after applying the / operator.

impl Eq for Mel[src]

impl From<Hz> for Mel[src]

impl From<LetterOctave> for Mel[src]

impl From<Mel> for Hz[src]

impl From<Mel> for LetterOctave[src]

impl From<Mel> for ScaledPerc[src]

impl From<Mel> for Perc[src]

impl From<Mel> for Step[src]

impl From<Perc> for Mel[src]

impl From<ScaledPerc> for Mel[src]

impl From<Step> for Mel[src]

impl Mul<Mel> for Mel[src]

type Output = Mel

The resulting type after applying the * operator.

impl Neg for Mel[src]

type Output = Mel

The resulting type after applying the - operator.

impl Ord for Mel[src]

impl PartialEq<Mel> for Mel[src]

impl PartialOrd<Mel> for Mel[src]

impl Rem<Mel> for Mel[src]

type Output = Mel

The resulting type after applying the % operator.

impl Sub<Mel> for Mel[src]

type Output = Mel

The resulting type after applying the - operator.

Auto Trait Implementations

impl RefUnwindSafe for Mel

impl Send for Mel

impl Sync for Mel

impl Unpin for Mel

impl UnwindSafe for Mel

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

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.