[][src]Struct pitch_calc::step::Step

pub struct Step(pub Step);

Pitch representation in the form of a MIDI-esque Step.

Methods

impl Step[src]

pub fn step(self) -> Step[src]

Return the value in steps.

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

Return the unit value of the equivalent frequency 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 the closest equivalent (Letter, Octave).

pub fn letter(self) -> Letter[src]

Convert to the closest equivalent Letter.

pub fn octave(self) -> Octave[src]

Convert to the closest equivalent Octave.

pub fn to_letter_octave(self) -> LetterOctave[src]

Convert to the closest equivalent LetterOctave.

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

Convert to a Mel unit value.

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

Convert to a Mel struct.

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

Convert to the unit value of the equivalent Perc.

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.

Trait Implementations

impl Add<Step> for Step[src]

type Output = Step

The resulting type after applying the + operator.

impl Clone for Step[src]

impl Copy for Step[src]

impl Debug for Step[src]

impl Div<Step> for Step[src]

type Output = Step

The resulting type after applying the / operator.

impl Eq for Step[src]

impl From<Hz> for Step[src]

impl From<LetterOctave> for Step[src]

impl From<Mel> for Step[src]

impl From<Perc> for Step[src]

impl From<ScaledPerc> for Step[src]

impl From<Step> for Hz[src]

impl From<Step> for Mel[src]

impl From<Step> for LetterOctave[src]

impl From<Step> for ScaledPerc[src]

impl From<Step> for Perc[src]

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

impl Mul<Step> for Step[src]

type Output = Step

The resulting type after applying the * operator.

impl Neg for Step[src]

type Output = Step

The resulting type after applying the - operator.

impl Ord for Step[src]

impl PartialEq<Step> for Step[src]

impl PartialOrd<Step> for Step[src]

impl Rem<Step> for Step[src]

type Output = Step

The resulting type after applying the % operator.

impl Sub<Step> for Step[src]

type Output = Step

The resulting type after applying the - operator.

Auto Trait Implementations

impl RefUnwindSafe for Step

impl Send for Step

impl Sync for Step

impl Unpin for Step

impl UnwindSafe for Step

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.