Struct pitch_calc::perc::Perc [] [src]

pub struct Perc(pub Perc);

Pitch representation in the form of a percentage between the min and max hz.

Methods

impl Perc
[src]

Return the value as a percentage.

Convert to unit value of the equivalent frequency in Hz.

Convert to the equivalent frequency in Hz.

Convert to a (Letter, Octave).

Convert to Letter.

Convert to Octave.

Convert to LetterOctave.

Convert to the unit value of a Mel.

Convert to a Mel struct.

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

Convert to a scaled percentage of the human hearing range.

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

Convert to a scaled percentage of the human hearing range.

Convert to the unit value of a Step.

Convert to a floating point MIDI-esque Step.

Trait Implementations

impl Debug for Perc
[src]

Formats the value using the given formatter.

impl Copy for Perc
[src]

impl Clone for Perc
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Add for Perc
[src]

The resulting type after applying the + operator

The method for the + operator

impl Sub for Perc
[src]

The resulting type after applying the - operator

The method for the - operator

impl Mul for Perc
[src]

The resulting type after applying the * operator

The method for the * operator

impl Div for Perc
[src]

The resulting type after applying the / operator

The method for the / operator

impl Rem for Perc
[src]

The resulting type after applying the % operator

The method for the % operator

impl Neg for Perc
[src]

The resulting type after applying the - operator

The method for the unary - operator

impl PartialEq for Perc
[src]

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

This method tests for !=.

impl Eq for Perc
[src]

impl PartialOrd for Perc
[src]

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

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

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

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

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

impl Ord for Perc
[src]

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

impl From<Hz> for Perc
[src]

Performs the conversion.

impl From<Mel> for Perc
[src]

Performs the conversion.

impl From<LetterOctave> for Perc
[src]

Performs the conversion.

impl From<ScaledPerc> for Perc
[src]

Performs the conversion.

impl From<Step> for Perc
[src]

Performs the conversion.