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

pub struct Hz(pub Hz);

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

Methods

impl Hz[src]

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

Return the unit value of the Hz struct.

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

Convert to (Letter, Octave) tuple.

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 a LetterOctave struct with the same pitch.

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 perc(self) -> Perc[src]

Convert to the unit value of a Perc struct.

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

Convert to a percentage of the human hearing range.

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

type Output = Hz

The resulting type after applying the + operator.

impl Clone for Hz[src]

impl Copy for Hz[src]

impl Debug for Hz[src]

impl Div<Hz> for Hz[src]

type Output = Hz

The resulting type after applying the / operator.

impl Eq for Hz[src]

impl From<Hz> for Mel[src]

impl From<Hz> for LetterOctave[src]

impl From<Hz> for ScaledPerc[src]

impl From<Hz> for Perc[src]

impl From<Hz> for Step[src]

impl From<LetterOctave> for Hz[src]

impl From<Mel> for Hz[src]

impl From<Perc> for Hz[src]

impl From<ScaledPerc> for Hz[src]

impl From<Step> for Hz[src]

impl From<f32> for Hz[src]

impl Mul<Hz> for Hz[src]

type Output = Hz

The resulting type after applying the * operator.

impl Neg for Hz[src]

type Output = Hz

The resulting type after applying the - operator.

impl Ord for Hz[src]

impl PartialEq<Hz> for Hz[src]

impl PartialOrd<Hz> for Hz[src]

impl Rem<Hz> for Hz[src]

type Output = Hz

The resulting type after applying the % operator.

impl Sub<Hz> for Hz[src]

type Output = Hz

The resulting type after applying the - operator.

Auto Trait Implementations

impl RefUnwindSafe for Hz

impl Send for Hz

impl Sync for Hz

impl Unpin for Hz

impl UnwindSafe for Hz

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.