#[repr(u8)]
pub enum Modifier {
Minor,
Flat5,
Augmented5,
Major7,
Dominant(Degree),
Flat9,
Sharp9,
Sharp11,
Diminished,
}Expand description
An enum representing the modifier of a chord.
Modifiers are “special extensions” that essentially have the capacity to change how the chord is interpreted by the system. E.g., a dominant flat 9 chord is not just a dominant chord with a flat 9 extension, but rather a chord that is represented by an entirely specific scale (half/whole/half diminished).
Variants§
Minor
Minor modifier.
Flat5
Flat 5 modifier.
Augmented5
Sharp 5 modifier.
Major7
Major 7 modifier.
Dominant(Degree)
Dominant modifier with degree.
Flat9
Sharp9
Sharp11
Diminished
Trait Implementations§
source§impl HasIsDominant for Modifier
impl HasIsDominant for Modifier
source§fn is_dominant(&self) -> bool
fn is_dominant(&self) -> bool
Returns whether the type (usually the modifier enum) is dominant.
source§impl HasStaticName for Modifier
impl HasStaticName for Modifier
source§fn static_name(&self) -> &'static str
fn static_name(&self) -> &'static str
Returns the static name of the type.
source§impl Ord for Modifier
impl Ord for Modifier
source§impl PartialEq<Modifier> for Modifier
impl PartialEq<Modifier> for Modifier
source§impl PartialOrd<Modifier> for Modifier
impl PartialOrd<Modifier> for Modifier
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