[−][src]Struct pitch_calc::mel::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.
fn add(self, rhs: Mel) -> Mel
[src]
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.
fn div(self, rhs: Mel) -> Mel
[src]
impl Eq for Mel
[src]
impl From<Hz> for Mel
[src]
impl From<LetterOctave> for Mel
[src]
fn from(other: LetterOctave) -> Self
[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]
fn from(other: ScaledPerc) -> Self
[src]
impl From<Step> for Mel
[src]
impl Mul<Mel> for Mel
[src]
type Output = Mel
The resulting type after applying the *
operator.
fn mul(self, rhs: Mel) -> Mel
[src]
impl Neg for Mel
[src]
impl Ord for Mel
[src]
fn cmp(&self, other: &Mel) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Mel> for Mel
[src]
impl PartialOrd<Mel> for Mel
[src]
fn partial_cmp(&self, other: &Mel) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Rem<Mel> for Mel
[src]
type Output = Mel
The resulting type after applying the %
operator.
fn rem(self, rhs: Mel) -> Mel
[src]
impl Sub<Mel> for Mel
[src]
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]
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,