pub enum Mode {
Show 13 variants
Major,
MinorNatural,
MinorHarmonic,
MinorMelodic,
Dorian,
Phrygian,
Lydian,
Mixolydian,
Aeolian,
Locrian,
WholeTone,
Diminished,
Chromatic,
}Expand description
A scale mode, defined by its semitone interval pattern from the tonic.
Variants§
Major
The Ionian / major scale.
MinorNatural
The natural minor scale (equivalent to Mode::Aeolian).
MinorHarmonic
The harmonic minor scale (raised seventh).
MinorMelodic
The ascending melodic minor scale (raised sixth and seventh).
Dorian
The Dorian mode.
Phrygian
The Phrygian mode.
Lydian
The Lydian mode.
Mixolydian
The Mixolydian mode.
Aeolian
The Aeolian mode (equivalent to Mode::MinorNatural).
Locrian
The Locrian mode.
WholeTone
The symmetric whole-tone scale (six notes).
Diminished
The symmetric octatonic / diminished scale (eight notes).
Chromatic
The full chromatic scale (all twelve pitch classes).
Implementations§
Trait Implementations§
impl Copy for Mode
impl Eq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnsafeUnpin for Mode
impl UnwindSafe for Mode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more