pub enum ImpliedQuality {
Unstated,
Major,
Minor,
Diminished,
HalfDiminished,
Augmented,
DominantSeventh,
}Expand description
The quality a figure says its chord has, whatever the scale spells.
music21’s impliedQuality: the symbol in front of the inversion digits,
or — when there is none — the case the numeral was written in. What it is
for is respelling the third, the fifth and the seventh once they have been
read off the scale.
Variants§
Unstated
No quality was implied, and the scale’s own spelling stands.
Major
A major triad.
Minor
A minor triad.
Diminished
A diminished triad, or a fully diminished seventh.
HalfDiminished
A half-diminished seventh: a diminished triad under a minor seventh.
Augmented
An augmented triad.
DominantSeventh
A major triad under a minor seventh.
Implementations§
Source§impl ImpliedQuality
impl ImpliedQuality
Sourcepub fn from_name(name: &str) -> Self
pub fn from_name(name: &str) -> Self
The quality music21 names in a string, as it writes the names.
Sourcepub fn name(self) -> &'static str
pub fn name(self) -> &'static str
The name music21 writes it under, which is the empty string for a quality nobody stated.
Sourcepub fn correct_semitones(self) -> &'static [u8] ⓘ
pub fn correct_semitones(self) -> &'static [u8] ⓘ
How many semitones the third, the fifth and — where the quality says so — the seventh stand above the root.
Trait Implementations§
Source§impl Clone for ImpliedQuality
impl Clone for ImpliedQuality
Source§fn clone(&self) -> ImpliedQuality
fn clone(&self) -> ImpliedQuality
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ImpliedQuality
Source§impl Debug for ImpliedQuality
impl Debug for ImpliedQuality
Source§impl Default for ImpliedQuality
impl Default for ImpliedQuality
Source§fn default() -> ImpliedQuality
fn default() -> ImpliedQuality
Source§impl<'de> Deserialize<'de> for ImpliedQuality
Available on crate feature serde only.
impl<'de> Deserialize<'de> for ImpliedQuality
serde only.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>,
impl Eq for ImpliedQuality
Source§impl PartialEq for ImpliedQuality
impl PartialEq for ImpliedQuality
Source§impl Serialize for ImpliedQuality
Available on crate feature serde only.
impl Serialize for ImpliedQuality
serde only.impl StructuralPartialEq for ImpliedQuality
Auto Trait Implementations§
impl Freeze for ImpliedQuality
impl RefUnwindSafe for ImpliedQuality
impl Send for ImpliedQuality
impl Sync for ImpliedQuality
impl Unpin for ImpliedQuality
impl UnsafeUnpin for ImpliedQuality
impl UnwindSafe for ImpliedQuality
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more