pub enum OrnamentKind {
Show 24 variants
Ornament,
GeneralAppoggiatura,
GeneralMordent,
Schleifer,
Tremolo,
Trill,
Turn,
Appoggiatura,
HalfStepTrill,
InvertedAppoggiatura,
InvertedMordent,
InvertedTrill,
InvertedTurn,
Mordent,
Shake,
WholeStepTrill,
HalfStepAppoggiatura,
HalfStepInvertedAppoggiatura,
HalfStepInvertedMordent,
HalfStepMordent,
WholeStepAppoggiatura,
WholeStepInvertedAppoggiatura,
WholeStepInvertedMordent,
WholeStepMordent,
}Expand description
One of music21’s ornament classes.
Variants§
Ornament
The base class, which plays the note as written.
GeneralAppoggiatura
An appoggiatura that has not said which way it resolves.
GeneralMordent
A mordent that has not said which way it goes.
Schleifer
A slide of two notes into the main one.
Tremolo
Rapid repetitions of the note.
Trill
A trill to the note above.
Turn
The note above, the note, the note below, the note.
Appoggiatura
A note a step above, resolving down.
HalfStepTrill
A trill a half step up.
InvertedAppoggiatura
A note a step below, resolving up.
InvertedMordent
The note and the note above.
InvertedTrill
A trill to the note below.
InvertedTurn
The note below, the note, the note above, the note.
Mordent
The note and the note below.
Shake
A trill in shorter notes.
WholeStepTrill
A trill a whole step up.
HalfStepAppoggiatura
An appoggiatura a half step above.
HalfStepInvertedAppoggiatura
An appoggiatura a half step below.
HalfStepInvertedMordent
An inverted mordent a half step up.
HalfStepMordent
A mordent a half step down.
WholeStepAppoggiatura
An appoggiatura a whole step above.
WholeStepInvertedAppoggiatura
An appoggiatura a whole step below.
WholeStepInvertedMordent
An inverted mordent a whole step up.
WholeStepMordent
A mordent a whole step down.
Implementations§
Source§impl OrnamentKind
impl OrnamentKind
Sourcepub const ALL: [OrnamentKind; 24]
pub const ALL: [OrnamentKind; 24]
Every kind, parents before children.
Sourcepub fn class_name(self) -> &'static str
pub fn class_name(self) -> &'static str
music21’s class name for the kind: "InvertedMordent".
Sourcepub fn from_class_name(class: &str) -> Option<Self>
pub fn from_class_name(class: &str) -> Option<Self>
The kind music21 names by that class.
Sourcepub fn parents(self) -> &'static [&'static str]
pub fn parents(self) -> &'static [&'static str]
The classes above this one, nearest first, up to Ornament.
Sourcepub fn has_fixed_size(self) -> bool
pub fn has_fixed_size(self) -> bool
Whether the kind always uses one interval, as the half-step and whole-step mordents and trills do, and so takes no accidental.
Trait Implementations§
Source§impl Clone for OrnamentKind
impl Clone for OrnamentKind
impl Copy for OrnamentKind
Source§impl Debug for OrnamentKind
impl Debug for OrnamentKind
Source§impl<'de> Deserialize<'de> for OrnamentKind
Available on crate feature serde only.
impl<'de> Deserialize<'de> for OrnamentKind
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 OrnamentKind
Source§impl Hash for OrnamentKind
impl Hash for OrnamentKind
Source§impl PartialEq for OrnamentKind
impl PartialEq for OrnamentKind
Source§impl Serialize for OrnamentKind
Available on crate feature serde only.
impl Serialize for OrnamentKind
serde only.impl StructuralPartialEq for OrnamentKind
Auto Trait Implementations§
impl Freeze for OrnamentKind
impl RefUnwindSafe for OrnamentKind
impl Send for OrnamentKind
impl Sync for OrnamentKind
impl Unpin for OrnamentKind
impl UnsafeUnpin for OrnamentKind
impl UnwindSafe for OrnamentKind
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