This module defines numerous subclasses of Clef, providing object representations for all commonly used clefs. Clef objects are often found within Measure objects.
Returns a Clef object given a string like “G2” or “F4” etc.
>>> tc = clef.clefFromString("G2")
>>> tc
<music21.clef.TrebleClef>
>>> nonStandard1 = clef.clefFromString("F1")
>>> nonStandard1
<music21.clef.FClef>
>>> nonStandard1.line
1
>>> nonStandard2 = clef.clefFromString("D4")
>>> nonStandard2
<music21.clef.PitchClef>
>>> nonStandard2.sign
'D'
>>> nonStandard2.line
4
>>> tc8vb = clef.clefFromString("G2", -1)
>>> tc8vb
<music21.clef.Treble8vbClef>
>>> tabClef = clef.clefFromString("TAB")
>>> tabClef
<music21.clef.TabClef>
A Clef is a basic music21 object for representing musical clefs (Treble, Bass, etc.)
Some clefs only represent the graphical element of the clef, such as G clef, which is subclassed by TrebleClef() and FrenchViolinClef().
>>> tc = clef.TrebleClef()
>>> tc.sign
'G'
>>> tc.line
2
Most clefs also have a “lowest note” function which represents the diatonicNoteNum of the note. (Where C4,C#4,C##4,C-4 etc. = 29, all types of D4 = 30, etc.)
>>> tc.lowestLine
31
Clef bases
Clef read-only properties
Read-only properties inherited from Music21Object:
Clef read/write properties
Read/write properties inherited from Music21Object:
Clef methods
Methods inherited from Music21Object:
Clef instance variables
Property which returns an number (int or otherwise) depending on the class of the Music21Object that represents a priority for an object based on its class alone – used as a tie for stream sorting in case two objects have the same offset and priority. Lower numbers are sorted to the left of higher numbers. For instance, Clef, KeySignature, TimeSignature all come (in that order) before Note.
All undefined classes have classSortOrder of 20 – same as note.Note
>>> m21o = base.Music21Object()
>>> m21o.classSortOrder
20
>>> tc = clef.TrebleClef()
>>> tc.classSortOrder
0
>>> ks = key.KeySignature(3)
>>> ks.classSortOrder
1
New classes can define their own default classSortOrder
>>> class ExampleClass(base.Music21Object):
... classSortOrderDefault = 5
...
>>> ec1 = ExampleClass()
>>> ec1.classSortOrder
5
An instance of a Group object which describes arbitrary Groups that this object belongs to.
if set to True will not print upon output (only used in MusicXML output at this point and Lilypond for notes, chords, and rests).
A unique identification string (not to be confused with the default .id() method.
if set, defines the display x-position from the start of the container (in musicxml “tenths” by default)
Instance variables inherited from Music21Object:
TrebleClef bases
TrebleClef read-only properties
Read-only properties inherited from Music21Object:
TrebleClef read/write properties
Read/write properties inherited from Music21Object:
TrebleClef methods
Methods inherited from Music21Object:
TrebleClef instance variables
Property which returns an number (int or otherwise) depending on the class of the Music21Object that represents a priority for an object based on its class alone – used as a tie for stream sorting in case two objects have the same offset and priority. Lower numbers are sorted to the left of higher numbers. For instance, Clef, KeySignature, TimeSignature all come (in that order) before Note.
All undefined classes have classSortOrder of 20 – same as note.Note
>>> m21o = base.Music21Object()
>>> m21o.classSortOrder
20
>>> tc = clef.TrebleClef()
>>> tc.classSortOrder
0
>>> ks = key.KeySignature(3)
>>> ks.classSortOrder
1
New classes can define their own default classSortOrder
>>> class ExampleClass(base.Music21Object):
... classSortOrderDefault = 5
...
>>> ec1 = ExampleClass()
>>> ec1.classSortOrder
5
An instance of a Group object which describes arbitrary Groups that this object belongs to.
if set to True will not print upon output (only used in MusicXML output at this point and Lilypond for notes, chords, and rests).
A unique identification string (not to be confused with the default .id() method.
if set, defines the display x-position from the start of the container (in musicxml “tenths” by default)
Instance variables inherited from GClef:
Instance variables inherited from PitchClef:
Instance variables inherited from Clef:
Instance variables inherited from Music21Object:
BassClef bases
BassClef read-only properties
Read-only properties inherited from Music21Object:
BassClef read/write properties
Read/write properties inherited from Music21Object:
BassClef methods
Methods inherited from Music21Object:
BassClef instance variables
Property which returns an number (int or otherwise) depending on the class of the Music21Object that represents a priority for an object based on its class alone – used as a tie for stream sorting in case two objects have the same offset and priority. Lower numbers are sorted to the left of higher numbers. For instance, Clef, KeySignature, TimeSignature all come (in that order) before Note.
All undefined classes have classSortOrder of 20 – same as note.Note
>>> m21o = base.Music21Object()
>>> m21o.classSortOrder
20
>>> tc = clef.TrebleClef()
>>> tc.classSortOrder
0
>>> ks = key.KeySignature(3)
>>> ks.classSortOrder
1
New classes can define their own default classSortOrder
>>> class ExampleClass(base.Music21Object):
... classSortOrderDefault = 5
...
>>> ec1 = ExampleClass()
>>> ec1.classSortOrder
5
An instance of a Group object which describes arbitrary Groups that this object belongs to.
if set to True will not print upon output (only used in MusicXML output at this point and Lilypond for notes, chords, and rests).
A unique identification string (not to be confused with the default .id() method.
if set, defines the display x-position from the start of the container (in musicxml “tenths” by default)
Instance variables inherited from FClef:
Instance variables inherited from PitchClef:
Instance variables inherited from Clef:
Instance variables inherited from Music21Object:
AltoClef bases
AltoClef read-only properties
Read-only properties inherited from Music21Object:
AltoClef read/write properties
Read/write properties inherited from Music21Object:
AltoClef methods
Methods inherited from Music21Object:
AltoClef instance variables
Property which returns an number (int or otherwise) depending on the class of the Music21Object that represents a priority for an object based on its class alone – used as a tie for stream sorting in case two objects have the same offset and priority. Lower numbers are sorted to the left of higher numbers. For instance, Clef, KeySignature, TimeSignature all come (in that order) before Note.
All undefined classes have classSortOrder of 20 – same as note.Note
>>> m21o = base.Music21Object()
>>> m21o.classSortOrder
20
>>> tc = clef.TrebleClef()
>>> tc.classSortOrder
0
>>> ks = key.KeySignature(3)
>>> ks.classSortOrder
1
New classes can define their own default classSortOrder
>>> class ExampleClass(base.Music21Object):
... classSortOrderDefault = 5
...
>>> ec1 = ExampleClass()
>>> ec1.classSortOrder
5
An instance of a Group object which describes arbitrary Groups that this object belongs to.
if set to True will not print upon output (only used in MusicXML output at this point and Lilypond for notes, chords, and rests).
A unique identification string (not to be confused with the default .id() method.
if set, defines the display x-position from the start of the container (in musicxml “tenths” by default)
Instance variables inherited from CClef:
Instance variables inherited from PitchClef:
Instance variables inherited from Clef:
Instance variables inherited from Music21Object:
Bass8vaClef bases
Bass8vaClef read-only properties
Read-only properties inherited from Music21Object:
Bass8vaClef read/write properties
Read/write properties inherited from Music21Object:
Bass8vaClef methods
Methods inherited from Music21Object:
Bass8vaClef instance variables
Property which returns an number (int or otherwise) depending on the class of the Music21Object that represents a priority for an object based on its class alone – used as a tie for stream sorting in case two objects have the same offset and priority. Lower numbers are sorted to the left of higher numbers. For instance, Clef, KeySignature, TimeSignature all come (in that order) before Note.
All undefined classes have classSortOrder of 20 – same as note.Note
>>> m21o = base.Music21Object()
>>> m21o.classSortOrder
20
>>> tc = clef.TrebleClef()
>>> tc.classSortOrder
0
>>> ks = key.KeySignature(3)
>>> ks.classSortOrder
1
New classes can define their own default classSortOrder
>>> class ExampleClass(base.Music21Object):
... classSortOrderDefault = 5
...
>>> ec1 = ExampleClass()
>>> ec1.classSortOrder
5
An instance of a Group object which describes arbitrary Groups that this object belongs to.
if set to True will not print upon output (only used in MusicXML output at this point and Lilypond for notes, chords, and rests).
A unique identification string (not to be confused with the default .id() method.
if set, defines the display x-position from the start of the container (in musicxml “tenths” by default)
Instance variables inherited from FClef:
Instance variables inherited from PitchClef:
Instance variables inherited from Clef:
Instance variables inherited from Music21Object:
Bass8vbClef bases
Bass8vbClef read-only properties
Read-only properties inherited from Music21Object:
Bass8vbClef read/write properties
Read/write properties inherited from Music21Object:
Bass8vbClef methods
Methods inherited from Music21Object:
Bass8vbClef instance variables
Property which returns an number (int or otherwise) depending on the class of the Music21Object that represents a priority for an object based on its class alone – used as a tie for stream sorting in case two objects have the same offset and priority. Lower numbers are sorted to the left of higher numbers. For instance, Clef, KeySignature, TimeSignature all come (in that order) before Note.
All undefined classes have classSortOrder of 20 – same as note.Note
>>> m21o = base.Music21Object()
>>> m21o.classSortOrder
20
>>> tc = clef.TrebleClef()
>>> tc.classSortOrder
0
>>> ks = key.KeySignature(3)
>>> ks.classSortOrder
1
New classes can define their own default classSortOrder
>>> class ExampleClass(base.Music21Object):
... classSortOrderDefault = 5
...
>>> ec1 = ExampleClass()
>>> ec1.classSortOrder
5
An instance of a Group object which describes arbitrary Groups that this object belongs to.
if set to True will not print upon output (only used in MusicXML output at this point and Lilypond for notes, chords, and rests).
A unique identification string (not to be confused with the default .id() method.
if set, defines the display x-position from the start of the container (in musicxml “tenths” by default)
Instance variables inherited from FClef:
Instance variables inherited from PitchClef:
Instance variables inherited from Clef:
Instance variables inherited from Music21Object:
CBaritoneClef bases
CBaritoneClef read-only properties
Read-only properties inherited from Music21Object:
CBaritoneClef read/write properties
Read/write properties inherited from Music21Object:
CBaritoneClef methods
Methods inherited from Music21Object:
CBaritoneClef instance variables
Property which returns an number (int or otherwise) depending on the class of the Music21Object that represents a priority for an object based on its class alone – used as a tie for stream sorting in case two objects have the same offset and priority. Lower numbers are sorted to the left of higher numbers. For instance, Clef, KeySignature, TimeSignature all come (in that order) before Note.
All undefined classes have classSortOrder of 20 – same as note.Note
>>> m21o = base.Music21Object()
>>> m21o.classSortOrder
20
>>> tc = clef.TrebleClef()
>>> tc.classSortOrder
0
>>> ks = key.KeySignature(3)
>>> ks.classSortOrder
1
New classes can define their own default classSortOrder
>>> class ExampleClass(base.Music21Object):
... classSortOrderDefault = 5
...
>>> ec1 = ExampleClass()
>>> ec1.classSortOrder
5
An instance of a Group object which describes arbitrary Groups that this object belongs to.
if set to True will not print upon output (only used in MusicXML output at this point and Lilypond for notes, chords, and rests).
A unique identification string (not to be confused with the default .id() method.
if set, defines the display x-position from the start of the container (in musicxml “tenths” by default)
Instance variables inherited from CClef:
Instance variables inherited from PitchClef:
Instance variables inherited from Clef:
Instance variables inherited from Music21Object:
CClef bases
CClef read-only properties
Read-only properties inherited from Music21Object:
CClef read/write properties
Read/write properties inherited from Music21Object:
CClef methods
Methods inherited from Music21Object:
CClef instance variables
Property which returns an number (int or otherwise) depending on the class of the Music21Object that represents a priority for an object based on its class alone – used as a tie for stream sorting in case two objects have the same offset and priority. Lower numbers are sorted to the left of higher numbers. For instance, Clef, KeySignature, TimeSignature all come (in that order) before Note.
All undefined classes have classSortOrder of 20 – same as note.Note
>>> m21o = base.Music21Object()
>>> m21o.classSortOrder
20
>>> tc = clef.TrebleClef()
>>> tc.classSortOrder
0
>>> ks = key.KeySignature(3)
>>> ks.classSortOrder
1
New classes can define their own default classSortOrder
>>> class ExampleClass(base.Music21Object):
... classSortOrderDefault = 5
...
>>> ec1 = ExampleClass()
>>> ec1.classSortOrder
5
An instance of a Group object which describes arbitrary Groups that this object belongs to.
if set to True will not print upon output (only used in MusicXML output at this point and Lilypond for notes, chords, and rests).
A unique identification string (not to be confused with the default .id() method.
if set, defines the display x-position from the start of the container (in musicxml “tenths” by default)
Instance variables inherited from PitchClef:
Instance variables inherited from Clef:
Instance variables inherited from Music21Object:
FBaritoneClef bases
FBaritoneClef read-only properties
Read-only properties inherited from Music21Object:
FBaritoneClef read/write properties
Read/write properties inherited from Music21Object:
FBaritoneClef methods
Methods inherited from Music21Object:
FBaritoneClef instance variables
Property which returns an number (int or otherwise) depending on the class of the Music21Object that represents a priority for an object based on its class alone – used as a tie for stream sorting in case two objects have the same offset and priority. Lower numbers are sorted to the left of higher numbers. For instance, Clef, KeySignature, TimeSignature all come (in that order) before Note.
All undefined classes have classSortOrder of 20 – same as note.Note
>>> m21o = base.Music21Object()
>>> m21o.classSortOrder
20
>>> tc = clef.TrebleClef()
>>> tc.classSortOrder
0
>>> ks = key.KeySignature(3)
>>> ks.classSortOrder
1
New classes can define their own default classSortOrder
>>> class ExampleClass(base.Music21Object):
... classSortOrderDefault = 5
...
>>> ec1 = ExampleClass()
>>> ec1.classSortOrder
5
An instance of a Group object which describes arbitrary Groups that this object belongs to.
if set to True will not print upon output (only used in MusicXML output at this point and Lilypond for notes, chords, and rests).
A unique identification string (not to be confused with the default .id() method.
if set, defines the display x-position from the start of the container (in musicxml “tenths” by default)
Instance variables inherited from FClef:
Instance variables inherited from PitchClef:
Instance variables inherited from Clef:
Instance variables inherited from Music21Object:
FClef bases
FClef read-only properties
Read-only properties inherited from Music21Object:
FClef read/write properties
Read/write properties inherited from Music21Object:
FClef methods
Methods inherited from Music21Object:
FClef instance variables
Property which returns an number (int or otherwise) depending on the class of the Music21Object that represents a priority for an object based on its class alone – used as a tie for stream sorting in case two objects have the same offset and priority. Lower numbers are sorted to the left of higher numbers. For instance, Clef, KeySignature, TimeSignature all come (in that order) before Note.
All undefined classes have classSortOrder of 20 – same as note.Note
>>> m21o = base.Music21Object()
>>> m21o.classSortOrder
20
>>> tc = clef.TrebleClef()
>>> tc.classSortOrder
0
>>> ks = key.KeySignature(3)
>>> ks.classSortOrder
1
New classes can define their own default classSortOrder
>>> class ExampleClass(base.Music21Object):
... classSortOrderDefault = 5
...
>>> ec1 = ExampleClass()
>>> ec1.classSortOrder
5
An instance of a Group object which describes arbitrary Groups that this object belongs to.
if set to True will not print upon output (only used in MusicXML output at this point and Lilypond for notes, chords, and rests).
A unique identification string (not to be confused with the default .id() method.
if set, defines the display x-position from the start of the container (in musicxml “tenths” by default)
Instance variables inherited from PitchClef:
Instance variables inherited from Clef:
Instance variables inherited from Music21Object:
FrenchViolinClef bases
FrenchViolinClef read-only properties
Read-only properties inherited from Music21Object:
FrenchViolinClef read/write properties
Read/write properties inherited from Music21Object:
FrenchViolinClef methods
Methods inherited from Music21Object:
FrenchViolinClef instance variables
Property which returns an number (int or otherwise) depending on the class of the Music21Object that represents a priority for an object based on its class alone – used as a tie for stream sorting in case two objects have the same offset and priority. Lower numbers are sorted to the left of higher numbers. For instance, Clef, KeySignature, TimeSignature all come (in that order) before Note.
All undefined classes have classSortOrder of 20 – same as note.Note
>>> m21o = base.Music21Object()
>>> m21o.classSortOrder
20
>>> tc = clef.TrebleClef()
>>> tc.classSortOrder
0
>>> ks = key.KeySignature(3)
>>> ks.classSortOrder
1
New classes can define their own default classSortOrder
>>> class ExampleClass(base.Music21Object):
... classSortOrderDefault = 5
...
>>> ec1 = ExampleClass()
>>> ec1.classSortOrder
5
An instance of a Group object which describes arbitrary Groups that this object belongs to.
if set to True will not print upon output (only used in MusicXML output at this point and Lilypond for notes, chords, and rests).
A unique identification string (not to be confused with the default .id() method.
Boolean value for quickly identifying Spanner objects (False by default).
Boolean value for quickly identifying Variant objects (False by default).
if set, defines the display x-position from the start of the container (in musicxml “tenths” by default)
Instance variables inherited from GClef:
Instance variables inherited from PitchClef:
Instance variables inherited from Clef:
Instance variables inherited from Music21Object:
GClef bases
GClef read-only properties
Read-only properties inherited from Music21Object:
GClef read/write properties
Read/write properties inherited from Music21Object:
GClef methods
Methods inherited from Music21Object:
GClef instance variables
Property which returns an number (int or otherwise) depending on the class of the Music21Object that represents a priority for an object based on its class alone – used as a tie for stream sorting in case two objects have the same offset and priority. Lower numbers are sorted to the left of higher numbers. For instance, Clef, KeySignature, TimeSignature all come (in that order) before Note.
All undefined classes have classSortOrder of 20 – same as note.Note
>>> m21o = base.Music21Object()
>>> m21o.classSortOrder
20
>>> tc = clef.TrebleClef()
>>> tc.classSortOrder
0
>>> ks = key.KeySignature(3)
>>> ks.classSortOrder
1
New classes can define their own default classSortOrder
>>> class ExampleClass(base.Music21Object):
... classSortOrderDefault = 5
...
>>> ec1 = ExampleClass()
>>> ec1.classSortOrder
5
An instance of a Group object which describes arbitrary Groups that this object belongs to.
if set to True will not print upon output (only used in MusicXML output at this point and Lilypond for notes, chords, and rests).
A unique identification string (not to be confused with the default .id() method.
if set, defines the display x-position from the start of the container (in musicxml “tenths” by default)
Instance variables inherited from PitchClef:
Instance variables inherited from Clef:
Instance variables inherited from Music21Object:
GSopranoClef bases
GSopranoClef read-only properties
Read-only properties inherited from Music21Object:
GSopranoClef read/write properties
Read/write properties inherited from Music21Object:
GSopranoClef methods
Methods inherited from Music21Object:
GSopranoClef instance variables
Property which returns an number (int or otherwise) depending on the class of the Music21Object that represents a priority for an object based on its class alone – used as a tie for stream sorting in case two objects have the same offset and priority. Lower numbers are sorted to the left of higher numbers. For instance, Clef, KeySignature, TimeSignature all come (in that order) before Note.
All undefined classes have classSortOrder of 20 – same as note.Note
>>> m21o = base.Music21Object()
>>> m21o.classSortOrder
20
>>> tc = clef.TrebleClef()
>>> tc.classSortOrder
0
>>> ks = key.KeySignature(3)
>>> ks.classSortOrder
1
New classes can define their own default classSortOrder
>>> class ExampleClass(base.Music21Object):
... classSortOrderDefault = 5
...
>>> ec1 = ExampleClass()
>>> ec1.classSortOrder
5
An instance of a Group object which describes arbitrary Groups that this object belongs to.
if set to True will not print upon output (only used in MusicXML output at this point and Lilypond for notes, chords, and rests).
A unique identification string (not to be confused with the default .id() method.
if set, defines the display x-position from the start of the container (in musicxml “tenths” by default)
Instance variables inherited from GClef:
Instance variables inherited from PitchClef:
Instance variables inherited from Clef:
Instance variables inherited from Music21Object:
MezzoSopranoClef bases
MezzoSopranoClef read-only properties
Read-only properties inherited from Music21Object:
MezzoSopranoClef read/write properties
Read/write properties inherited from Music21Object:
MezzoSopranoClef methods
Methods inherited from Music21Object:
MezzoSopranoClef instance variables
Property which returns an number (int or otherwise) depending on the class of the Music21Object that represents a priority for an object based on its class alone – used as a tie for stream sorting in case two objects have the same offset and priority. Lower numbers are sorted to the left of higher numbers. For instance, Clef, KeySignature, TimeSignature all come (in that order) before Note.
All undefined classes have classSortOrder of 20 – same as note.Note
>>> m21o = base.Music21Object()
>>> m21o.classSortOrder
20
>>> tc = clef.TrebleClef()
>>> tc.classSortOrder
0
>>> ks = key.KeySignature(3)
>>> ks.classSortOrder
1
New classes can define their own default classSortOrder
>>> class ExampleClass(base.Music21Object):
... classSortOrderDefault = 5
...
>>> ec1 = ExampleClass()
>>> ec1.classSortOrder
5
An instance of a Group object which describes arbitrary Groups that this object belongs to.
if set to True will not print upon output (only used in MusicXML output at this point and Lilypond for notes, chords, and rests).
A unique identification string (not to be confused with the default .id() method.
Boolean value for quickly identifying Spanner objects (False by default).
Boolean value for quickly identifying Variant objects (False by default).
if set, defines the display x-position from the start of the container (in musicxml “tenths” by default)
Instance variables inherited from CClef:
Instance variables inherited from PitchClef:
Instance variables inherited from Clef:
Instance variables inherited from Music21Object:
represents the absence of a Clef.
NoClef bases
NoClef read-only properties
Read-only properties inherited from Music21Object:
NoClef read/write properties
Read/write properties inherited from Music21Object:
NoClef methods
Methods inherited from Music21Object:
NoClef instance variables
Property which returns an number (int or otherwise) depending on the class of the Music21Object that represents a priority for an object based on its class alone – used as a tie for stream sorting in case two objects have the same offset and priority. Lower numbers are sorted to the left of higher numbers. For instance, Clef, KeySignature, TimeSignature all come (in that order) before Note.
All undefined classes have classSortOrder of 20 – same as note.Note
>>> m21o = base.Music21Object()
>>> m21o.classSortOrder
20
>>> tc = clef.TrebleClef()
>>> tc.classSortOrder
0
>>> ks = key.KeySignature(3)
>>> ks.classSortOrder
1
New classes can define their own default classSortOrder
>>> class ExampleClass(base.Music21Object):
... classSortOrderDefault = 5
...
>>> ec1 = ExampleClass()
>>> ec1.classSortOrder
5
An instance of a Group object which describes arbitrary Groups that this object belongs to.
if set to True will not print upon output (only used in MusicXML output at this point and Lilypond for notes, chords, and rests).
A unique identification string (not to be confused with the default .id() method.
if set, defines the display x-position from the start of the container (in musicxml “tenths” by default)
Instance variables inherited from Clef:
Instance variables inherited from Music21Object:
represents a Percussion clef.
PercussionClef bases
PercussionClef read-only properties
Read-only properties inherited from Music21Object:
PercussionClef read/write properties
Read/write properties inherited from Music21Object:
PercussionClef methods
Methods inherited from Music21Object:
PercussionClef instance variables
Property which returns an number (int or otherwise) depending on the class of the Music21Object that represents a priority for an object based on its class alone – used as a tie for stream sorting in case two objects have the same offset and priority. Lower numbers are sorted to the left of higher numbers. For instance, Clef, KeySignature, TimeSignature all come (in that order) before Note.
All undefined classes have classSortOrder of 20 – same as note.Note
>>> m21o = base.Music21Object()
>>> m21o.classSortOrder
20
>>> tc = clef.TrebleClef()
>>> tc.classSortOrder
0
>>> ks = key.KeySignature(3)
>>> ks.classSortOrder
1
New classes can define their own default classSortOrder
>>> class ExampleClass(base.Music21Object):
... classSortOrderDefault = 5
...
>>> ec1 = ExampleClass()
>>> ec1.classSortOrder
5
An instance of a Group object which describes arbitrary Groups that this object belongs to.
if set to True will not print upon output (only used in MusicXML output at this point and Lilypond for notes, chords, and rests).
A unique identification string (not to be confused with the default .id() method.
if set, defines the display x-position from the start of the container (in musicxml “tenths” by default)
Instance variables inherited from Clef:
Instance variables inherited from Music21Object:
superclass for all other clef subclasses.
PitchClef bases
PitchClef read-only properties
Read-only properties inherited from Music21Object:
PitchClef read/write properties
Read/write properties inherited from Music21Object:
PitchClef methods
Methods inherited from Music21Object:
PitchClef instance variables
Property which returns an number (int or otherwise) depending on the class of the Music21Object that represents a priority for an object based on its class alone – used as a tie for stream sorting in case two objects have the same offset and priority. Lower numbers are sorted to the left of higher numbers. For instance, Clef, KeySignature, TimeSignature all come (in that order) before Note.
All undefined classes have classSortOrder of 20 – same as note.Note
>>> m21o = base.Music21Object()
>>> m21o.classSortOrder
20
>>> tc = clef.TrebleClef()
>>> tc.classSortOrder
0
>>> ks = key.KeySignature(3)
>>> ks.classSortOrder
1
New classes can define their own default classSortOrder
>>> class ExampleClass(base.Music21Object):
... classSortOrderDefault = 5
...
>>> ec1 = ExampleClass()
>>> ec1.classSortOrder
5
An instance of a Group object which describes arbitrary Groups that this object belongs to.
if set to True will not print upon output (only used in MusicXML output at this point and Lilypond for notes, chords, and rests).
A unique identification string (not to be confused with the default .id() method.
if set, defines the display x-position from the start of the container (in musicxml “tenths” by default)
Instance variables inherited from Clef:
Instance variables inherited from Music21Object:
SopranoClef bases
SopranoClef read-only properties
Read-only properties inherited from Music21Object:
SopranoClef read/write properties
Read/write properties inherited from Music21Object:
SopranoClef methods
Methods inherited from Music21Object:
SopranoClef instance variables
Property which returns an number (int or otherwise) depending on the class of the Music21Object that represents a priority for an object based on its class alone – used as a tie for stream sorting in case two objects have the same offset and priority. Lower numbers are sorted to the left of higher numbers. For instance, Clef, KeySignature, TimeSignature all come (in that order) before Note.
All undefined classes have classSortOrder of 20 – same as note.Note
>>> m21o = base.Music21Object()
>>> m21o.classSortOrder
20
>>> tc = clef.TrebleClef()
>>> tc.classSortOrder
0
>>> ks = key.KeySignature(3)
>>> ks.classSortOrder
1
New classes can define their own default classSortOrder
>>> class ExampleClass(base.Music21Object):
... classSortOrderDefault = 5
...
>>> ec1 = ExampleClass()
>>> ec1.classSortOrder
5
An instance of a Group object which describes arbitrary Groups that this object belongs to.
if set to True will not print upon output (only used in MusicXML output at this point and Lilypond for notes, chords, and rests).
A unique identification string (not to be confused with the default .id() method.
if set, defines the display x-position from the start of the container (in musicxml “tenths” by default)
Instance variables inherited from CClef:
Instance variables inherited from PitchClef:
Instance variables inherited from Clef:
Instance variables inherited from Music21Object:
SubBassClef bases
SubBassClef read-only properties
Read-only properties inherited from Music21Object:
SubBassClef read/write properties
Read/write properties inherited from Music21Object:
SubBassClef methods
Methods inherited from Music21Object:
SubBassClef instance variables
Property which returns an number (int or otherwise) depending on the class of the Music21Object that represents a priority for an object based on its class alone – used as a tie for stream sorting in case two objects have the same offset and priority. Lower numbers are sorted to the left of higher numbers. For instance, Clef, KeySignature, TimeSignature all come (in that order) before Note.
All undefined classes have classSortOrder of 20 – same as note.Note
>>> m21o = base.Music21Object()
>>> m21o.classSortOrder
20
>>> tc = clef.TrebleClef()
>>> tc.classSortOrder
0
>>> ks = key.KeySignature(3)
>>> ks.classSortOrder
1
New classes can define their own default classSortOrder
>>> class ExampleClass(base.Music21Object):
... classSortOrderDefault = 5
...
>>> ec1 = ExampleClass()
>>> ec1.classSortOrder
5
An instance of a Group object which describes arbitrary Groups that this object belongs to.
if set to True will not print upon output (only used in MusicXML output at this point and Lilypond for notes, chords, and rests).
A unique identification string (not to be confused with the default .id() method.
if set, defines the display x-position from the start of the container (in musicxml “tenths” by default)
Instance variables inherited from FClef:
Instance variables inherited from PitchClef:
Instance variables inherited from Clef:
Instance variables inherited from Music21Object:
represents a Tablature clef (not used).
TabClef bases
TabClef read-only properties
Read-only properties inherited from Music21Object:
TabClef read/write properties
Read/write properties inherited from Music21Object:
TabClef methods
Methods inherited from Music21Object:
TabClef instance variables
Property which returns an number (int or otherwise) depending on the class of the Music21Object that represents a priority for an object based on its class alone – used as a tie for stream sorting in case two objects have the same offset and priority. Lower numbers are sorted to the left of higher numbers. For instance, Clef, KeySignature, TimeSignature all come (in that order) before Note.
All undefined classes have classSortOrder of 20 – same as note.Note
>>> m21o = base.Music21Object()
>>> m21o.classSortOrder
20
>>> tc = clef.TrebleClef()
>>> tc.classSortOrder
0
>>> ks = key.KeySignature(3)
>>> ks.classSortOrder
1
New classes can define their own default classSortOrder
>>> class ExampleClass(base.Music21Object):
... classSortOrderDefault = 5
...
>>> ec1 = ExampleClass()
>>> ec1.classSortOrder
5
An instance of a Group object which describes arbitrary Groups that this object belongs to.
if set to True will not print upon output (only used in MusicXML output at this point and Lilypond for notes, chords, and rests).
A unique identification string (not to be confused with the default .id() method.
if set, defines the display x-position from the start of the container (in musicxml “tenths” by default)
Instance variables inherited from Clef:
Instance variables inherited from Music21Object:
TenorClef bases
TenorClef read-only properties
Read-only properties inherited from Music21Object:
TenorClef read/write properties
Read/write properties inherited from Music21Object:
TenorClef methods
Methods inherited from Music21Object:
TenorClef instance variables
Property which returns an number (int or otherwise) depending on the class of the Music21Object that represents a priority for an object based on its class alone – used as a tie for stream sorting in case two objects have the same offset and priority. Lower numbers are sorted to the left of higher numbers. For instance, Clef, KeySignature, TimeSignature all come (in that order) before Note.
All undefined classes have classSortOrder of 20 – same as note.Note
>>> m21o = base.Music21Object()
>>> m21o.classSortOrder
20
>>> tc = clef.TrebleClef()
>>> tc.classSortOrder
0
>>> ks = key.KeySignature(3)
>>> ks.classSortOrder
1
New classes can define their own default classSortOrder
>>> class ExampleClass(base.Music21Object):
... classSortOrderDefault = 5
...
>>> ec1 = ExampleClass()
>>> ec1.classSortOrder
5
An instance of a Group object which describes arbitrary Groups that this object belongs to.
if set to True will not print upon output (only used in MusicXML output at this point and Lilypond for notes, chords, and rests).
A unique identification string (not to be confused with the default .id() method.
if set, defines the display x-position from the start of the container (in musicxml “tenths” by default)
Instance variables inherited from CClef:
Instance variables inherited from PitchClef:
Instance variables inherited from Clef:
Instance variables inherited from Music21Object:
Treble8vaClef bases
Treble8vaClef read-only properties
Read-only properties inherited from Music21Object:
Treble8vaClef read/write properties
Read/write properties inherited from Music21Object:
Treble8vaClef methods
Methods inherited from Music21Object:
Treble8vaClef instance variables
Property which returns an number (int or otherwise) depending on the class of the Music21Object that represents a priority for an object based on its class alone – used as a tie for stream sorting in case two objects have the same offset and priority. Lower numbers are sorted to the left of higher numbers. For instance, Clef, KeySignature, TimeSignature all come (in that order) before Note.
All undefined classes have classSortOrder of 20 – same as note.Note
>>> m21o = base.Music21Object()
>>> m21o.classSortOrder
20
>>> tc = clef.TrebleClef()
>>> tc.classSortOrder
0
>>> ks = key.KeySignature(3)
>>> ks.classSortOrder
1
New classes can define their own default classSortOrder
>>> class ExampleClass(base.Music21Object):
... classSortOrderDefault = 5
...
>>> ec1 = ExampleClass()
>>> ec1.classSortOrder
5
An instance of a Group object which describes arbitrary Groups that this object belongs to.
if set to True will not print upon output (only used in MusicXML output at this point and Lilypond for notes, chords, and rests).
A unique identification string (not to be confused with the default .id() method.
if set, defines the display x-position from the start of the container (in musicxml “tenths” by default)
Instance variables inherited from TrebleClef:
Instance variables inherited from GClef:
Instance variables inherited from PitchClef:
Instance variables inherited from Clef:
Instance variables inherited from Music21Object:
Treble8vbClef bases
Treble8vbClef read-only properties
Read-only properties inherited from Music21Object:
Treble8vbClef read/write properties
Read/write properties inherited from Music21Object:
Treble8vbClef methods
Methods inherited from Music21Object:
Treble8vbClef instance variables
Property which returns an number (int or otherwise) depending on the class of the Music21Object that represents a priority for an object based on its class alone – used as a tie for stream sorting in case two objects have the same offset and priority. Lower numbers are sorted to the left of higher numbers. For instance, Clef, KeySignature, TimeSignature all come (in that order) before Note.
All undefined classes have classSortOrder of 20 – same as note.Note
>>> m21o = base.Music21Object()
>>> m21o.classSortOrder
20
>>> tc = clef.TrebleClef()
>>> tc.classSortOrder
0
>>> ks = key.KeySignature(3)
>>> ks.classSortOrder
1
New classes can define their own default classSortOrder
>>> class ExampleClass(base.Music21Object):
... classSortOrderDefault = 5
...
>>> ec1 = ExampleClass()
>>> ec1.classSortOrder
5
An instance of a Group object which describes arbitrary Groups that this object belongs to.
if set to True will not print upon output (only used in MusicXML output at this point and Lilypond for notes, chords, and rests).
A unique identification string (not to be confused with the default .id() method.
if set, defines the display x-position from the start of the container (in musicxml “tenths” by default)
Instance variables inherited from TrebleClef:
Instance variables inherited from GClef:
Instance variables inherited from PitchClef:
Instance variables inherited from Clef:
Instance variables inherited from Music21Object: