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

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]

fn mel(&self) -> Mel

Return the unit value of the Mel struct.

fn hz(&self) -> Hz

Convert to hz.

fn to_hz(&self) -> Hz

Convert to a Hz struct.

fn letter_octave(&self) -> (Letter, Octave)

Convert to (Letter, Octave) tuple.

fn letter(&self) -> Letter

Convert to Letter.

fn octave(&self) -> Octave

Convert to Octave.

fn to_letter_octave(&self) -> LetterOctave

Convert to LetterOctave struct with the closest pitch.

fn perc(&self) -> Perc

Convert to a percentage of the human hearing range.

fn to_perc(&self) -> Perc

Convert to a Perc struct.

fn scaled_perc_with_weight(&self, weight: ScaleWeight) -> Perc

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

fn scaled_perc(&self) -> Perc

Convert to a scaled percentage of the human hearing range.

fn to_scaled_perc_with_weight(&self, weight: ScaleWeight) -> ScaledPerc

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

fn to_scaled_perc(&self) -> ScaledPerc

Convert to a scaled percentage of the human hearing range.

fn step(&self) -> Step

Convert to the unit value of a Step.

fn to_step(&self) -> Step

Convert to a Step struct.

Trait Implementations

impl Decodable for Mel
[src]

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Mel, __D::Error>

impl Encodable for Mel
[src]

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl Clone for Mel
[src]

fn clone(&self) -> Mel

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Copy for Mel
[src]

impl Debug for Mel
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Add for Mel
[src]

type Output = Mel

The resulting type after applying the + operator

fn add(self, rhs: Mel) -> Mel

The method for the + operator

impl Sub for Mel
[src]

type Output = Mel

The resulting type after applying the - operator

fn sub(self, rhs: Mel) -> Mel

The method for the - operator

impl Mul for Mel
[src]

type Output = Mel

The resulting type after applying the * operator

fn mul(self, rhs: Mel) -> Mel

The method for the * operator

impl Div for Mel
[src]

type Output = Mel

The resulting type after applying the / operator

fn div(self, rhs: Mel) -> Mel

The method for the / operator

impl Rem for Mel
[src]

type Output = Mel

The resulting type after applying the % operator

fn rem(self, rhs: Mel) -> Mel

The method for the % operator

impl Neg for Mel
[src]

type Output = Mel

The resulting type after applying the - operator

fn neg(self) -> Mel

The method for the unary - operator

impl PartialEq for Mel
[src]

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

This method tests for self and other values to be equal, and is used by ==. Read more

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

This method tests for !=.

impl Eq for Mel
[src]

impl PartialOrd for Mel
[src]

fn partial_cmp(&self, other: &Mel) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more

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

This method tests less than (for self and other) and is used by the < operator. Read more

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

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

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

This method tests greater than (for self and other) and is used by the > operator. Read more

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for Mel
[src]

fn cmp(&self, other: &Mel) -> Ordering

This method returns an Ordering between self and other. Read more