#[repr(u8)]
pub enum Interval {
Show 35 variants
PerfectUnison,
DiminishedSecond,
AugmentedUnison,
MinorSecond,
MajorSecond,
DiminishedThird,
AugmentedSecond,
MinorThird,
MajorThird,
DiminishedFourth,
AugmentedThird,
PerfectFourth,
AugmentedFourth,
DiminishedFifth,
PerfectFifth,
DiminishedSixth,
AugmentedFifth,
MinorSixth,
MajorSixth,
DiminishedSeventh,
AugmentedSixth,
MinorSeventh,
MajorSeventh,
DiminishedOctave,
AugmentedSeventh,
PerfectOctave,
MinorNinth,
MajorNinth,
AugmentedNinth,
DiminishedEleventh,
PerfectEleventh,
AugmentedEleventh,
MinorThirteenth,
MajorThirteenth,
AugmentedThirteenth,
}Expand description
An enum representing the interval between two notes.
Variants§
PerfectUnison
DiminishedSecond
AugmentedUnison
MinorSecond
MajorSecond
DiminishedThird
AugmentedSecond
MinorThird
MajorThird
DiminishedFourth
AugmentedThird
PerfectFourth
AugmentedFourth
DiminishedFifth
PerfectFifth
DiminishedSixth
AugmentedFifth
MinorSixth
MajorSixth
DiminishedSeventh
AugmentedSixth
MinorSeventh
MajorSeventh
DiminishedOctave
AugmentedSeventh
PerfectOctave
MinorNinth
MajorNinth
AugmentedNinth
DiminishedEleventh
PerfectEleventh
AugmentedEleventh
MinorThirteenth
MajorThirteenth
AugmentedThirteenth
Trait Implementations§
source§impl AddAssign<Interval> for Note
impl AddAssign<Interval> for Note
source§fn add_assign(&mut self, rhs: Interval)
fn add_assign(&mut self, rhs: Interval)
Performs the
+= operation. Read moresource§impl CanReduceFrame for Interval
impl CanReduceFrame for Interval
source§fn reduce_frame(self) -> Self
fn reduce_frame(self) -> Self
Returns the reduced frame of the type.
source§impl HasEnharmonicDistance for Interval
impl HasEnharmonicDistance for Interval
source§fn enharmonic_distance(&self) -> i8
fn enharmonic_distance(&self) -> i8
Returns the enharmonic distance of the type (most likely an interval). Read more
source§impl Ord for Interval
impl Ord for Interval
source§impl PartialEq<Interval> for Interval
impl PartialEq<Interval> for Interval
source§impl PartialOrd<Interval> for Interval
impl PartialOrd<Interval> for Interval
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more