pub enum SpannerKind {
Slur,
Crescendo,
Diminuendo,
Ottava,
Line,
PedalMark,
TrillExtension,
ArpeggioMark,
Glissando,
TremoloSpanner,
Neume,
}Expand description
Which of music21’s spanner classes a spanner is.
Variants§
Slur
A curve joining notes played in one breath or bow: music21’s Slur.
Crescendo
A hairpin opening out, growing louder: music21’s Crescendo.
Diminuendo
A hairpin closing, growing softer: music21’s Diminuendo.
Ottava
An octave line, 8va or 15mb: music21’s Ottava.
Line
A bracket or line over notes, as a ligatura or a passage to be
played together: music21’s Line.
PedalMark
How long a pedal is held: music21’s PedalMark.
TrillExtension
The wavy line carrying a trill on past its note: music21’s
TrillExtension.
ArpeggioMark
One arpeggio across several chords, as across both hands’ staves:
music21’s ArpeggioMarkSpanner.
Glissando
A glissando or a slide from one note to the next: music21’s
Glissando.
TremoloSpanner
A tremolo alternating between two notes: music21’s TremoloSpanner.
Neume
Notes sung to one syllable as one figure, as chant writes them:
music21’s volpiano Neume.
Implementations§
Source§impl SpannerKind
impl SpannerKind
Sourcepub fn class_name(self) -> &'static str
pub fn class_name(self) -> &'static str
music21’s class name for the kind.
Sourcepub fn numbering_class(self) -> &'static str
pub fn numbering_class(self) -> &'static str
The class spanners of this kind are counted with where music21 numbers
them for a score: a crescendo and a diminuendo are both hairpins,
DynamicWedge, and share their numbers.
Trait Implementations§
Source§impl Clone for SpannerKind
impl Clone for SpannerKind
impl Copy for SpannerKind
Source§impl Debug for SpannerKind
impl Debug for SpannerKind
Source§impl<'de> Deserialize<'de> for SpannerKind
Available on crate feature serde only.
impl<'de> Deserialize<'de> for SpannerKind
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 SpannerKind
Source§impl Hash for SpannerKind
impl Hash for SpannerKind
Source§impl PartialEq for SpannerKind
impl PartialEq for SpannerKind
Source§impl Serialize for SpannerKind
Available on crate feature serde only.
impl Serialize for SpannerKind
serde only.impl StructuralPartialEq for SpannerKind
Auto Trait Implementations§
impl Freeze for SpannerKind
impl RefUnwindSafe for SpannerKind
impl Send for SpannerKind
impl Sync for SpannerKind
impl Unpin for SpannerKind
impl UnsafeUnpin for SpannerKind
impl UnwindSafe for SpannerKind
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