[−][src]Struct pitch_calc::hz::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]
impl Clone for Hz
[src]
impl Copy for Hz
[src]
impl Debug for Hz
[src]
impl Div<Hz> for Hz
[src]
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]
fn from(other: LetterOctave) -> Self
[src]
impl From<Mel> for Hz
[src]
impl From<Perc> for Hz
[src]
impl From<ScaledPerc> for Hz
[src]
fn from(other: ScaledPerc) -> Self
[src]
impl From<Step> for Hz
[src]
impl From<f32> for Hz
[src]
impl Mul<Hz> for Hz
[src]
impl Neg for Hz
[src]
impl Ord for Hz
[src]
fn cmp(&self, other: &Hz) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Hz> for Hz
[src]
impl PartialOrd<Hz> for Hz
[src]
fn partial_cmp(&self, other: &Hz) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Rem<Hz> for Hz
[src]
impl Sub<Hz> for Hz
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,