pub enum Simplification {
Exact,
MaxAccidental,
MostCommon,
}Expand description
How a scale respells pitches that would otherwise pile up accidentals:
music21’s IntervalNetwork.pitchSimplification.
Every named scale says which it uses. A scale given by its steps spells with at most one accidental unless it is told otherwise, which is what music21’s interval network does; a Scala scale is told to take the most common spelling of each note.
Variants§
Exact
Spell literally, however many accidentals that takes.
MaxAccidental
Cap at one accidental, respelling anything beyond it.
MostCommon
Respell to the most common spelling of the pitch class.
Implementations§
Source§impl Simplification
impl Simplification
Sourcepub fn music21_name(self) -> Option<&'static str>
pub fn music21_name(self) -> Option<&'static str>
The name music21 gives this rule on a network, or None for spelling
exactly, which music21 writes as None.
Trait Implementations§
Source§impl Clone for Simplification
impl Clone for Simplification
impl Copy for Simplification
Source§impl Debug for Simplification
impl Debug for Simplification
Source§impl<'de> Deserialize<'de> for Simplification
Available on crate feature serde only.
impl<'de> Deserialize<'de> for Simplification
Available on crate feature
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Simplification
Source§impl PartialEq for Simplification
impl PartialEq for Simplification
Source§impl Serialize for Simplification
Available on crate feature serde only.
impl Serialize for Simplification
Available on crate feature
serde only.impl StructuralPartialEq for Simplification
Auto Trait Implementations§
impl Freeze for Simplification
impl RefUnwindSafe for Simplification
impl Send for Simplification
impl Sync for Simplification
impl Unpin for Simplification
impl UnsafeUnpin for Simplification
impl UnwindSafe for Simplification
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,
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> ⓘ
Converts
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> ⓘ
Converts
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