Struct novation_remote_25sl::LetterOctave
[−]
[src]
pub struct LetterOctave(pub Letter, pub i32);
Pitch representation in the form of a frequency (hz).
Methods
impl LetterOctave
[src]
fn letter_octave(&self) -> (Letter, i32)
Return the value as (Letter, Octave).
fn letter(&self) -> Letter
Return just the Letter.
fn octave(&self) -> i32
Return just the octave.
fn hz(&self) -> f32
Convert to the unit value of Hz with the equivalent pitch.
fn to_hz(&self) -> Hz
Convert to a Hz with the equivalent pitch.
fn mel(&self) -> f32
Convert to the unit value of a Mel with equivalent pitch.
fn to_mel(&self) -> Mel
Convert to a Mel struct.
fn perc(&self) -> f64
Convert to the unit value of a Perc.
fn to_perc(&self) -> Perc
Convert to a percentage of the human hearing range.
fn scaled_perc_with_weight(&self, weight: f32) -> f64
Convert to a scaled percentage of the human hearing range with a given weight.
fn scaled_perc(&self) -> f64
Convert to a scaled percentage of the human hearing range.
fn to_scaled_perc_with_weight(&self, weight: f32) -> ScaledPerc
Convert to a scaled percentage of the human hearing range with a given weight.
fn to_scaled_perc(&self) -> ScaledPerc
Convert to a scaled percentage of the human hearing range.
fn step(&self) -> f32
Convert to the unit value of a Step.
fn to_step(&self) -> Step
Convert to a floating point MIDI-esque Step.
Trait Implementations
impl Neg for LetterOctave
[src]
type Output = LetterOctave
fn neg(self) -> LetterOctave
impl Clone for LetterOctave
[src]
fn clone(&self) -> LetterOctave
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialOrd<LetterOctave> for LetterOctave
[src]
fn partial_cmp(&self, other: &LetterOctave) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Sub<LetterOctave> for LetterOctave
[src]
type Output = LetterOctave
fn sub(self, rhs: LetterOctave) -> LetterOctave
impl Copy for LetterOctave
[src]
impl Add<LetterOctave> for LetterOctave
[src]
type Output = LetterOctave
fn add(self, rhs: LetterOctave) -> LetterOctave
impl From<Step> for LetterOctave
[src]
fn from(other: Step) -> LetterOctave
Performs the conversion.
impl From<Perc> for LetterOctave
[src]
fn from(other: Perc) -> LetterOctave
Performs the conversion.
impl From<ScaledPerc> for LetterOctave
[src]
fn from(other: ScaledPerc) -> LetterOctave
Performs the conversion.
impl From<Hz> for LetterOctave
[src]
fn from(other: Hz) -> LetterOctave
Performs the conversion.
impl From<Mel> for LetterOctave
[src]
fn from(other: Mel) -> LetterOctave
Performs the conversion.
impl Div<LetterOctave> for LetterOctave
[src]
type Output = LetterOctave
fn div(self, rhs: LetterOctave) -> LetterOctave
impl Ord for LetterOctave
[src]
fn cmp(&self, other: &LetterOctave) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl Rem<LetterOctave> for LetterOctave
[src]
type Output = LetterOctave
fn rem(self, rhs: LetterOctave) -> LetterOctave
impl Mul<LetterOctave> for LetterOctave
[src]
type Output = LetterOctave
fn mul(self, rhs: LetterOctave) -> LetterOctave
impl Eq for LetterOctave
[src]
impl Hash for LetterOctave
[src]
fn hash<__H>(&self, __arg_0: &mut __H) where
__H: Hasher,
__H: Hasher,
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq<LetterOctave> for LetterOctave
[src]
fn eq(&self, other: &LetterOctave) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.