[−][src]Struct pitch_calc::scaled_perc::ScaledPerc
Pitch representation in the form of a scaled percentage between the min and max hz.
Methods
impl ScaledPerc
[src]
pub fn new(perc: Perc) -> ScaledPerc
[src]
A constructor for a ScaledPerc that uses the default weight.
pub fn scaled_perc(&self) -> Perc
[src]
Return the value as a scaled percentage.
pub fn scale_weight(&self) -> ScaleWeight
[src]
Return the scale weight.
pub fn hz(&self) -> Hz
[src]
Convert to the 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 (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 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 perc(&self) -> Perc
[src]
Convert to the unit value of a Perc struct.
pub fn to_perc(&self) -> Perc
[src]
Convert to Perc.
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<ScaledPerc> for ScaledPerc
[src]
type Output = ScaledPerc
The resulting type after applying the +
operator.
fn add(self, rhs: ScaledPerc) -> ScaledPerc
[src]
impl Clone for ScaledPerc
[src]
fn clone(&self) -> ScaledPerc
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ScaledPerc
[src]
impl Debug for ScaledPerc
[src]
impl Div<ScaledPerc> for ScaledPerc
[src]
type Output = ScaledPerc
The resulting type after applying the /
operator.
fn div(self, rhs: ScaledPerc) -> ScaledPerc
[src]
impl Eq for ScaledPerc
[src]
impl From<Hz> for ScaledPerc
[src]
impl From<LetterOctave> for ScaledPerc
[src]
fn from(other: LetterOctave) -> Self
[src]
impl From<Mel> for ScaledPerc
[src]
impl From<Perc> for ScaledPerc
[src]
impl From<ScaledPerc> for Hz
[src]
fn from(other: ScaledPerc) -> Self
[src]
impl From<ScaledPerc> for Mel
[src]
fn from(other: ScaledPerc) -> Self
[src]
impl From<ScaledPerc> for LetterOctave
[src]
fn from(other: ScaledPerc) -> Self
[src]
impl From<ScaledPerc> for Perc
[src]
fn from(other: ScaledPerc) -> Self
[src]
impl From<ScaledPerc> for Step
[src]
fn from(other: ScaledPerc) -> Self
[src]
impl From<Step> for ScaledPerc
[src]
impl Mul<ScaledPerc> for ScaledPerc
[src]
type Output = ScaledPerc
The resulting type after applying the *
operator.
fn mul(self, rhs: ScaledPerc) -> ScaledPerc
[src]
impl Neg for ScaledPerc
[src]
type Output = ScaledPerc
The resulting type after applying the -
operator.
fn neg(self) -> ScaledPerc
[src]
impl Ord for ScaledPerc
[src]
fn cmp(&self, other: &ScaledPerc) -> 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<ScaledPerc> for ScaledPerc
[src]
impl PartialOrd<ScaledPerc> for ScaledPerc
[src]
fn partial_cmp(&self, other: &ScaledPerc) -> 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<ScaledPerc> for ScaledPerc
[src]
type Output = ScaledPerc
The resulting type after applying the %
operator.
fn rem(self, rhs: ScaledPerc) -> ScaledPerc
[src]
impl Sub<ScaledPerc> for ScaledPerc
[src]
type Output = ScaledPerc
The resulting type after applying the -
operator.
fn sub(self, rhs: ScaledPerc) -> ScaledPerc
[src]
Auto Trait Implementations
impl RefUnwindSafe for ScaledPerc
impl Send for ScaledPerc
impl Sync for ScaledPerc
impl Unpin for ScaledPerc
impl UnwindSafe for ScaledPerc
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>,