[−][src]Struct pitch_calc::perc::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.
fn add(self, rhs: Perc) -> Perc
[src]
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.
fn div(self, rhs: Perc) -> Perc
[src]
impl Eq for Perc
[src]
impl From<Hz> for Perc
[src]
impl From<LetterOctave> for Perc
[src]
fn from(other: LetterOctave) -> Self
[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]
fn from(other: ScaledPerc) -> Self
[src]
impl From<Step> for Perc
[src]
impl Mul<Perc> for Perc
[src]
type Output = Perc
The resulting type after applying the *
operator.
fn mul(self, rhs: Perc) -> Perc
[src]
impl Neg for Perc
[src]
impl Ord for Perc
[src]
fn cmp(&self, other: &Perc) -> 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<Perc> for Perc
[src]
impl PartialOrd<Perc> for Perc
[src]
fn partial_cmp(&self, other: &Perc) -> 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<Perc> for Perc
[src]
type Output = Perc
The resulting type after applying the %
operator.
fn rem(self, rhs: Perc) -> Perc
[src]
impl Sub<Perc> for Perc
[src]
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]
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>,