#[repr(u8)]pub enum ScaleKind {
Major = 0,
NaturalMinor = 1,
HarmonicMinor = 2,
MelodicMinor = 3,
WholeTone = 4,
Chromatic = 5,
DiminishedWholeHalf = 6,
DiminishedHalfWhole = 7,
MajorPentatonic = 8,
MinorPentatonic = 9,
Blues = 10,
}Expand description
An enum representing a scale kind (type of scale).
Each scale kind has an explicit list of intervals that define the scale.
Variants§
Major = 0
A major scale (Ionian mode root scale).
NaturalMinor = 1
A natural minor scale (Aeolian mode root scale).
HarmonicMinor = 2
A harmonic minor scale.
MelodicMinor = 3
A melodic minor scale (ascending).
WholeTone = 4
A whole tone scale.
Chromatic = 5
A chromatic scale (all 12 semitones).
DiminishedWholeHalf = 6
A diminished (whole-half) scale.
DiminishedHalfWhole = 7
A diminished (half-whole) scale.
MajorPentatonic = 8
A major pentatonic scale.
MinorPentatonic = 9
A minor pentatonic scale.
Blues = 10
A blues scale.
Implementations§
Trait Implementations§
impl Copy for ScaleKind
Source§impl<'de> Deserialize<'de> for ScaleKind
impl<'de> Deserialize<'de> for ScaleKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ScaleKind
Source§impl HasDescription for ScaleKind
impl HasDescription for ScaleKind
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
Returns the description of the type.
Source§impl HasIntervals for ScaleKind
impl HasIntervals for ScaleKind
Source§impl HasStaticName for ScaleKind
impl HasStaticName for ScaleKind
Source§fn static_name(&self) -> &'static str
fn static_name(&self) -> &'static str
Returns the static name of the type.
Source§impl Ord for ScaleKind
impl Ord for ScaleKind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for ScaleKind
impl PartialOrd for ScaleKind
impl StructuralPartialEq for ScaleKind
Auto Trait Implementations§
impl Freeze for ScaleKind
impl RefUnwindSafe for ScaleKind
impl Send for ScaleKind
impl Sync for ScaleKind
impl Unpin for ScaleKind
impl UnsafeUnpin for ScaleKind
impl UnwindSafe for ScaleKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.