[][src]Enum musictheory::types::PitchMode

pub enum PitchMode {
    Ionian([PitchClass; 7]),
    Dorian([PitchClass; 7]),
    Phrygian([PitchClass; 7]),
    Lydian([PitchClass; 7]),
    Mixolydian([PitchClass; 7]),
    Aeolian([PitchClass; 7]),
    Locrian([PitchClass; 7]),
}

Sequence of PitchClasses in modal order for a given PitchGroup.

Variants

Ionian([PitchClass; 7])
Dorian([PitchClass; 7])
Phrygian([PitchClass; 7])
Lydian([PitchClass; 7])
Mixolydian([PitchClass; 7])
Aeolian([PitchClass; 7])
Locrian([PitchClass; 7])

Methods

impl PitchMode[src]

pub fn tonic(&self) -> PitchClass[src]

Get PitchClass in the Tonic position of this PitchMode.

pub fn supertonic(&self) -> PitchClass[src]

Get PitchClass in the Supertonic position of this PitchMode.

pub fn mediant(&self) -> PitchClass[src]

Get PitchClass in the Mediant position of this PitchMode.

pub fn subdominant(&self) -> PitchClass[src]

Get PitchClass in the Subdominant position of this PitchMode.

pub fn dominant(&self) -> PitchClass[src]

Get PitchClass in the Dominant position of this PitchMode.

pub fn submediant(&self) -> PitchClass[src]

Get PitchClass in the Submediant position of this PitchMode.

pub fn subtonic(&self) -> PitchClass[src]

Get PitchClass in the Subtonic position of this PitchMode.

Trait Implementations

impl Clone for PitchMode[src]

impl Copy for PitchMode[src]

impl Debug for PitchMode[src]

impl Display for PitchMode[src]

impl PartialEq<PitchMode> for PitchMode[src]

impl PartialOrd<PitchMode> for PitchMode[src]

impl StructuralPartialEq for PitchMode[src]

Auto Trait Implementations

impl RefUnwindSafe for PitchMode

impl Send for PitchMode

impl Sync for PitchMode

impl Unpin for PitchMode

impl UnwindSafe for PitchMode

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.