pub enum ClefKind {
Show 24 variants
Clef,
NoClef,
PercussionClef,
PitchClef,
CClef,
FClef,
GClef,
JianpuClef,
TabClef,
AltoClef,
Bass8vaClef,
Bass8vbClef,
BassClef,
CBaritoneClef,
FBaritoneClef,
FrenchViolinClef,
GSopranoClef,
MezzoSopranoClef,
SopranoClef,
SubBassClef,
TenorClef,
TrebleClef,
Treble8vaClef,
Treble8vbClef,
}Expand description
One of music21’s clef classes.
Variants§
Clef
The base class, which says nothing.
NoClef
No clef at all.
PercussionClef
A clef for unpitched percussion.
PitchClef
Any clef that places pitches.
CClef
A C clef on no particular line.
FClef
An F clef on no particular line.
GClef
A G clef on no particular line.
JianpuClef
The clef of jianpu, numbered notation, which is no clef.
TabClef
A tablature clef.
AltoClef
C clef on the third line.
Bass8vaClef
F clef on the fourth line, an octave up.
Bass8vbClef
F clef on the fourth line, an octave down.
BassClef
F clef on the fourth line.
CBaritoneClef
C clef on the fifth line.
FBaritoneClef
F clef on the third line.
FrenchViolinClef
G clef on the first line.
GSopranoClef
G clef on the third line.
MezzoSopranoClef
C clef on the second line.
SopranoClef
C clef on the first line.
SubBassClef
F clef on the fifth line.
TenorClef
C clef on the fourth line.
TrebleClef
G clef on the second line.
Treble8vaClef
G clef on the second line, an octave up.
Treble8vbClef
G clef on the second line, an octave down.
Implementations§
Source§impl ClefKind
impl ClefKind
Sourcepub fn class_name(self) -> &'static str
pub fn class_name(self) -> &'static str
music21’s class name for the kind: "TrebleClef".
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.
Trait Implementations§
impl Copy for ClefKind
Source§impl<'de> Deserialize<'de> for ClefKind
Available on crate feature serde only.
impl<'de> Deserialize<'de> for ClefKind
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 ClefKind
impl StructuralPartialEq for ClefKind
Auto Trait Implementations§
impl Freeze for ClefKind
impl RefUnwindSafe for ClefKind
impl Send for ClefKind
impl Sync for ClefKind
impl Unpin for ClefKind
impl UnsafeUnpin for ClefKind
impl UnwindSafe for ClefKind
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