Struct pitch_calc::hz::Hz [] [src]

pub struct Hz(pub Hz);

Pitch representation in the form of a frequency (hz).

Methods

impl Hz
[src]

Return the unit value of the Hz struct.

Convert to (Letter, Octave) tuple.

Convert to Letter.

Convert to Octave.

Convert to a LetterOctave struct with the same pitch.

Convert to the unit value of a Mel.

Convert to a Mel struct.

Convert to the unit value of a Perc struct.

Convert to a 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 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 Hz
[src]

Formats the value using the given formatter.

impl Copy for Hz
[src]

impl Clone for Hz
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Add for Hz
[src]

The resulting type after applying the + operator

The method for the + operator

impl Sub for Hz
[src]

The resulting type after applying the - operator

The method for the - operator

impl Mul for Hz
[src]

The resulting type after applying the * operator

The method for the * operator

impl Div for Hz
[src]

The resulting type after applying the / operator

The method for the / operator

impl Rem for Hz
[src]

The resulting type after applying the % operator

The method for the % operator

impl Neg for Hz
[src]

The resulting type after applying the - operator

The method for the unary - operator

impl PartialEq for Hz
[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 Hz
[src]

impl PartialOrd for Hz
[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 Hz
[src]

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

impl From<Mel> for Hz
[src]

Performs the conversion.

impl From<LetterOctave> for Hz
[src]

Performs the conversion.

impl From<ScaledPerc> for Hz
[src]

Performs the conversion.

impl From<Perc> for Hz
[src]

Performs the conversion.

impl From<Step> for Hz
[src]

Performs the conversion.

impl From<CalcHz> for Hz
[src]

Performs the conversion.