[−][src]Struct pitch_calc::letter_octave::LetterOctave
Pitch representation in the form of a frequency (hz).
Methods
impl LetterOctave
[src]
pub fn letter_octave(self) -> (Letter, Octave)
[src]
Return the value as (Letter, Octave).
pub fn letter(self) -> Letter
[src]
Return just the Letter.
pub fn octave(self) -> Octave
[src]
Return just the octave.
pub fn hz(self) -> Hz
[src]
Convert to the unit value of Hz with the equivalent pitch.
pub fn to_hz(self) -> Hz
[src]
Convert to a Hz with the equivalent pitch.
pub fn mel(self) -> Mel
[src]
Convert to the unit value of a Mel with equivalent pitch.
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.
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<LetterOctave> for LetterOctave
[src]
type Output = LetterOctave
The resulting type after applying the +
operator.
fn add(self, rhs: LetterOctave) -> LetterOctave
[src]
impl Clone for LetterOctave
[src]
fn clone(&self) -> LetterOctave
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for LetterOctave
[src]
impl Debug for LetterOctave
[src]
impl Div<LetterOctave> for LetterOctave
[src]
type Output = LetterOctave
The resulting type after applying the /
operator.
fn div(self, rhs: LetterOctave) -> LetterOctave
[src]
impl Eq for LetterOctave
[src]
impl From<Hz> for LetterOctave
[src]
impl From<LetterOctave> for Hz
[src]
fn from(other: LetterOctave) -> Self
[src]
impl From<LetterOctave> for Mel
[src]
fn from(other: LetterOctave) -> Self
[src]
impl From<LetterOctave> for ScaledPerc
[src]
fn from(other: LetterOctave) -> Self
[src]
impl From<LetterOctave> for Perc
[src]
fn from(other: LetterOctave) -> Self
[src]
impl From<LetterOctave> for Step
[src]
fn from(other: LetterOctave) -> Self
[src]
impl From<Mel> for LetterOctave
[src]
impl From<Perc> for LetterOctave
[src]
impl From<ScaledPerc> for LetterOctave
[src]
fn from(other: ScaledPerc) -> Self
[src]
impl From<Step> for LetterOctave
[src]
impl Mul<LetterOctave> for LetterOctave
[src]
type Output = LetterOctave
The resulting type after applying the *
operator.
fn mul(self, rhs: LetterOctave) -> LetterOctave
[src]
impl Neg for LetterOctave
[src]
type Output = LetterOctave
The resulting type after applying the -
operator.
fn neg(self) -> LetterOctave
[src]
impl Ord for LetterOctave
[src]
fn cmp(&self, other: &LetterOctave) -> 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<LetterOctave> for LetterOctave
[src]
fn eq(&self, other: &LetterOctave) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<LetterOctave> for LetterOctave
[src]
fn partial_cmp(&self, other: &LetterOctave) -> 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<LetterOctave> for LetterOctave
[src]
type Output = LetterOctave
The resulting type after applying the %
operator.
fn rem(self, rhs: LetterOctave) -> LetterOctave
[src]
impl Sub<LetterOctave> for LetterOctave
[src]
type Output = LetterOctave
The resulting type after applying the -
operator.
fn sub(self, rhs: LetterOctave) -> LetterOctave
[src]
Auto Trait Implementations
impl RefUnwindSafe for LetterOctave
impl Send for LetterOctave
impl Sync for LetterOctave
impl Unpin for LetterOctave
impl UnwindSafe for LetterOctave
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>,