Struct pitch_calc::scaled_perc::ScaledPerc [] [src]

pub struct ScaledPerc(pub Perc, pub ScaleWeight);

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

Methods

impl ScaledPerc
[src]

A constructor for a ScaledPerc that uses the default weight.

Return the value as a scaled percentage.

Return the scale weight.

Convert to the unit value of the equivalent frequency in Hz.

Convert to the equivalent frequency in Hz.

Convert to (Letter, Octave) tuple.

Convert to Letter.

Convert to Octave.

Convert to LetterOctave.

Convert to the unit value of a Mel.

Convert to a Mel struct.

Convert to the unit value of a Perc struct.

Convert to Perc.

Convert to the unit value of a Step.

Convert to a floating point MIDI-esque Step.

Trait Implementations

impl Debug for ScaledPerc
[src]

Formats the value using the given formatter.

impl Copy for ScaledPerc
[src]

impl Clone for ScaledPerc
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Add for ScaledPerc
[src]

The resulting type after applying the + operator

The method for the + operator

impl Sub for ScaledPerc
[src]

The resulting type after applying the - operator

The method for the - operator

impl Mul for ScaledPerc
[src]

The resulting type after applying the * operator

The method for the * operator

impl Div for ScaledPerc
[src]

The resulting type after applying the / operator

The method for the / operator

impl Rem for ScaledPerc
[src]

The resulting type after applying the % operator

The method for the % operator

impl Neg for ScaledPerc
[src]

The resulting type after applying the - operator

The method for the unary - operator

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

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

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

impl From<Hz> for ScaledPerc
[src]

Performs the conversion.

impl From<Mel> for ScaledPerc
[src]

Performs the conversion.

impl From<LetterOctave> for ScaledPerc
[src]

Performs the conversion.

impl From<Perc> for ScaledPerc
[src]

Performs the conversion.

impl From<Step> for ScaledPerc
[src]

Performs the conversion.