[−][src]Enum musictheory::types::Interval
Interval is the distance between two PitchClasses.
Variants
First(PerfectQuality)
Second(MajorQuality)
Third(MajorQuality)
Fourth(PerfectQuality)
Fifth(PerfectQuality)
Sixth(MajorQuality)
Seventh(MajorQuality)
Octave(PerfectQuality)
Ninth(MajorQuality)
Tenth(MajorQuality)
Eleventh(PerfectQuality)
Twelfth(PerfectQuality)
Thirteenth(MajorQuality)
Fourteenth(MajorQuality)
Methods
impl Interval
[src]
pub fn degree(&self) -> Degree
[src]
pub fn steps(&self) -> Steps
[src]
pub fn distance(l: Note, r: Note) -> Option<Interval>
[src]
Interval Mappings for Notes
pub fn cents(&self) -> Cents
[src]
Trait Implementations
impl Add<Interval> for Note
[src]
type Output = Option<Self>
The resulting type after applying the +
operator.
fn add(self, interval: Interval) -> Self::Output
[src]
impl Add<Interval> for Pitch
[src]
type Output = Option<Self>
The resulting type after applying the +
operator.
fn add(self, interval: Interval) -> Self::Output
[src]
impl Add<Interval> for PitchClass
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, interval: Interval) -> Self::Output
[src]
impl Add<Interval> for Tone
[src]
type Output = Option<Self>
The resulting type after applying the +
operator.
fn add(self, interval: Interval) -> Self::Output
[src]
impl Clone for Interval
[src]
impl Copy for Interval
[src]
impl Debug for Interval
[src]
impl Display for Interval
[src]
impl PartialEq<Interval> for Interval
[src]
impl PartialOrd<Interval> for Interval
[src]
fn partial_cmp(&self, other: &Interval) -> Option<Ordering>
[src]
fn lt(&self, other: &Interval) -> bool
[src]
fn le(&self, other: &Interval) -> bool
[src]
fn gt(&self, other: &Interval) -> bool
[src]
fn ge(&self, other: &Interval) -> bool
[src]
impl StructuralPartialEq for Interval
[src]
impl Sub<Interval> for Note
[src]
type Output = Option<Self>
The resulting type after applying the -
operator.
fn sub(self, interval: Interval) -> Self::Output
[src]
impl Sub<Interval> for Pitch
[src]
type Output = Option<Self>
The resulting type after applying the -
operator.
fn sub(self, interval: Interval) -> Self::Output
[src]
impl Sub<Interval> for PitchClass
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, interval: Interval) -> Self::Output
[src]
impl Sub<Interval> for Tone
[src]
Auto Trait Implementations
impl RefUnwindSafe for Interval
impl Send for Interval
impl Sync for Interval
impl Unpin for Interval
impl UnwindSafe for Interval
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,