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

pub struct Perc(pub Perc);

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

Methods

impl Perc[src]

pub fn perc(self) -> Perc[src]

Return the value as a percentage.

pub fn hz(self) -> Hz[src]

Convert to unit value of the equivalent frequency in Hz.

pub fn to_hz(self) -> Hz[src]

Convert to the equivalent frequency in Hz.

pub fn letter_octave(self) -> (Letter, Octave)[src]

Convert to a (Letter, Octave).

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.

pub fn mel(self) -> Mel[src]

Convert to the unit value of a Mel.

pub fn to_mel(self) -> Mel[src]

Convert to a Mel 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 floating point MIDI-esque Step.

Trait Implementations

impl Add<Perc> for Perc[src]

type Output = Perc

The resulting type after applying the + operator.

impl Clone for Perc[src]

impl Copy for Perc[src]

impl Debug for Perc[src]

impl Div<Perc> for Perc[src]

type Output = Perc

The resulting type after applying the / operator.

impl Eq for Perc[src]

impl From<Hz> for Perc[src]

impl From<LetterOctave> for Perc[src]

impl From<Mel> for Perc[src]

impl From<Perc> for Hz[src]

impl From<Perc> for Mel[src]

impl From<Perc> for LetterOctave[src]

impl From<Perc> for ScaledPerc[src]

impl From<Perc> for Step[src]

impl From<ScaledPerc> for Perc[src]

impl From<Step> for Perc[src]

impl Mul<Perc> for Perc[src]

type Output = Perc

The resulting type after applying the * operator.

impl Neg for Perc[src]

type Output = Perc

The resulting type after applying the - operator.

impl Ord for Perc[src]

impl PartialEq<Perc> for Perc[src]

impl PartialOrd<Perc> for Perc[src]

impl Rem<Perc> for Perc[src]

type Output = Perc

The resulting type after applying the % operator.

impl Sub<Perc> for Perc[src]

type Output = Perc

The resulting type after applying the - operator.

Auto Trait Implementations

impl RefUnwindSafe for Perc

impl Send for Perc

impl Sync for Perc

impl Unpin for Perc

impl UnwindSafe for Perc

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.