This module defines an object representation of MusicXML, used for converting to and from MusicXML and music21.
Accidental bases
Accidental read/write properties
Read/write properties inherited from XMLNode:
|
Accidental methods
Methods inherited from XMLNode:
|
|
|
Used inside an ornament definition; chardata holds the accidental type
AccidentalMark bases
AccidentalMark read/write properties
Read/write properties inherited from XMLNode:
|
AccidentalMark methods
Methods inherited from XMLNode:
|
|
|
This is not an XML object, but a container for all XML articulation tags.
ArticulationMark bases
ArticulationMark read/write properties
Read/write properties inherited from XMLNode:
|
ArticulationMark methods
Methods inherited from XMLNode:
|
|
|
Articulations bases
Articulations read/write properties
Read/write properties inherited from XMLNode:
|
Articulations methods
Methods inherited from MusicXMLElementList:
Methods inherited from XMLNode:
|
|
|
Attributes bases
Attributes read/write properties
Read/write properties inherited from XMLNode:
|
Attributes methods
Utility to just set the divisions parameters
Methods inherited from XMLNode:
|
|
|
Backup bases
Backup read/write properties
Read/write properties inherited from XMLNode:
|
Backup methods
Methods inherited from XMLNode:
|
|
|
Barline bases
Barline read/write properties
Read/write properties inherited from XMLNode:
|
Barline methods
Methods inherited from XMLNode:
|
|
|
A root defines a pitch, with a step and an alter
Bass bases
Bass read/write properties
Read/write properties inherited from XMLNode:
|
Bass methods
Methods inherited from XMLNode:
|
|
|
Beams are specified is individual objects for each beam, in order, where the beam number refers to its duration representation (8th, 16th, etc) and its character data specifies whether it is begin/continue/end (for normal beams) or backward hook/forward wook (for beams that do not continue are attached only to the staff). These character data values can be mixed: one beam can continue while another can hook or end.
1 = 8th 2 = 16th 3 = 32th 4 = 64th 5 = 128th 6 = 256th
From musicxml.xsd:
Beam values include begin, continue, end, forward hook, and backward hook. Up to six concurrent beam levels are available to cover up to 256th notes. The repeater attribute, used for tremolos, needs to be specified with a “yes” value for each beam using it. Beams that have a begin value can also have a fan attribute to indicate accelerandos and ritardandos using fanned beams. The fan attribute may also be used with a continue value if the fanning direction changes on that note. The value is “none” if not specified.
Note that the beam number does not distinguish sets of beams that overlap, as it does for slur and other elements. Beaming groups are distinguished by being in different voices and/or the presence or absence of grace and cue
Beam bases
Beam read/write properties
Read/write properties inherited from XMLNode:
|
Beam methods
Methods inherited from XMLNode:
|
|
|
BeatType bases
BeatType read/write properties
Read/write properties inherited from XMLNode:
|
BeatType methods
Methods inherited from XMLNode:
|
|
|
Part of <metronome> tags
BeatUnit bases
BeatUnit read/write properties
Read/write properties inherited from XMLNode:
|
BeatUnit methods
Methods inherited from XMLNode:
|
|
|
Part of <metronome> tags
BeatUnitDot bases
BeatUnitDot read/write properties
Read/write properties inherited from XMLNode:
|
BeatUnitDot methods
Methods inherited from XMLNode:
|
|
|
Beats bases
Beats read/write properties
Read/write properties inherited from XMLNode:
|
Beats methods
Methods inherited from XMLNode:
|
|
|
>>> b = musicxml.mxObjects.Bracket()
>>> b.tag
'bracket'
Bracket bases
Bracket read/write properties
Read/write properties inherited from XMLNode:
|
Bracket methods
Methods inherited from XMLNode:
|
|
|
Clef bases
Clef read/write properties
Read/write properties inherited from XMLNode:
|
Clef methods
Methods inherited from XMLNode:
|
|
|
Coda bases
Coda read/write properties
Read/write properties inherited from XMLNode:
|
Coda methods
Methods inherited from XMLNode:
|
|
|
Creator bases
Creator read/write properties
Read/write properties inherited from XMLNode:
|
Creator methods
Methods inherited from XMLNode:
|
|
|
The credit tag stores on or more credit-words tags, defining text positioned on a page.
Credit bases
Credit read/write properties
Read/write properties inherited from XMLNode:
|
Credit methods
Methods inherited from MusicXMLElementList:
Methods inherited from XMLNode:
|
|
|
CreditWords bases
CreditWords read/write properties
Read/write properties inherited from XMLNode:
|
CreditWords methods
Methods inherited from XMLNode:
|
|
|
>>> d = musicxml.mxObjects.Dashes()
>>> d.tag
'dashes'
Dashes bases
Dashes read/write properties
Read/write properties inherited from XMLNode:
|
Dashes methods
Methods inherited from XMLNode:
|
|
|
Defaults bases
Defaults read/write properties
Read/write properties inherited from XMLNode:
|
Defaults methods
Methods inherited from MusicXMLElementList:
Methods inherited from XMLNode:
|
|
|
The degree type is used to add, alter, or subtract individual notes in the chord.
Degree bases
Degree read/write properties
Read/write properties inherited from XMLNode:
|
Degree methods
Methods inherited from MusicXMLElementList:
Methods inherited from XMLNode:
|
|
|
Chromatic alteration of current degree
DegreeAlter bases
DegreeAlter read/write properties
Read/write properties inherited from XMLNode:
|
DegreeAlter methods
Methods inherited from XMLNode:
|
|
|
addition, alteration, subtraction relative to the kind of current chord
DegreeType bases
DegreeType read/write properties
Read/write properties inherited from XMLNode:
|
DegreeType methods
Methods inherited from XMLNode:
|
|
|
Stores 1 for root, 3 for third, etc
DegreeValue bases
DegreeValue read/write properties
Read/write properties inherited from XMLNode:
|
DegreeValue methods
Methods inherited from XMLNode:
|
|
|
DelayedTurn bases
DelayedTurn read/write properties
Read/write properties inherited from XMLNode:
|
DelayedTurn methods
Methods inherited from XMLNode:
|
|
|
One or more Direction objects are found in measures, after an attributes object. Within the Direction object may be a number of objects, including DirectionType, Sound.
Direction bases
Direction read/write properties
Read/write properties inherited from XMLNode:
|
Direction methods
Search this direction and determine if it contains a segno mark.
>>> a = musicxml.mxObjects.Direction()
>>> b = musicxml.mxObjects.DirectionType()
>>> c = musicxml.mxObjects.Bracket()
>>> b.append(c)
>>> a.append(b)
>>> a.getBracket() is not None
True
Search this direction and determine if it contains a coda mark.
>>> a = musicxml.mxObjects.Direction()
>>> b = musicxml.mxObjects.DirectionType()
>>> c = musicxml.mxObjects.Coda()
>>> b.append(c)
>>> a.append(b)
>>> a.getCoda() is not None
True
Search this direction and determine if it contains a segno mark.
>>> a = musicxml.mxObjects.Direction()
>>> b = musicxml.mxObjects.DirectionType()
>>> c = musicxml.mxObjects.Dashes()
>>> b.append(c)
>>> a.append(b)
>>> a.getDashes() is not None
True
Search this direction and determine if it contains a dynamic mark, return, otherwise, return None
>>> a = musicxml.mxObjects.Direction()
>>> b = musicxml.mxObjects.DirectionType()
>>> c = musicxml.mxObjects.Dynamics()
>>> d = musicxml.mxObjects.DynamicMark('f')
>>> c.append(d)
>>> b.append(c)
>>> a.append(b)
>>> a.getDynamicMark() is not None
True
Search this direction and determine if it contains a dynamic mark.
>>> a = musicxml.mxObjects.Direction()
>>> b = musicxml.mxObjects.DirectionType()
>>> c = musicxml.mxObjects.Metronome()
>>> b.append(c)
>>> a.append(b)
>>> a.getMetronome() is not None
True
Search this direction and determine if it contains a segno mark.
>>> a = musicxml.mxObjects.Direction()
>>> b = musicxml.mxObjects.DirectionType()
>>> c = musicxml.mxObjects.Segno()
>>> b.append(c)
>>> a.append(b)
>>> a.getSegno() is not None
True
Search this direction and determine if it contains a dynamic mark.
>>> a = musicxml.mxObjects.Direction()
>>> b = musicxml.mxObjects.DirectionType()
>>> c = musicxml.mxObjects.Wedge('crescendo')
>>> b.append(c)
>>> a.append(b)
>>> a.getWedge() is not None
True
Search this direction and determine if it contains a Words entity.
>>> a = musicxml.mxObjects.Direction()
>>> b = musicxml.mxObjects.DirectionType()
>>> c = musicxml.mxObjects.Words('crescendo')
>>> b.append(c)
>>> a.append(b)
>>> a.getWords() == [c]
True
>>> a.getWords()[0].charData
'crescendo'
Methods inherited from MusicXMLElementList:
Methods inherited from XMLNode:
|
|
|
DirectionType stores objects like Pedal, dynamics, wedge, and words
DirectionType bases
DirectionType read/write properties
Read/write properties inherited from XMLNode:
|
DirectionType methods
Methods inherited from MusicXMLElementList:
Methods inherited from XMLNode:
|
|
|
DisplayOctave bases
DisplayOctave read/write properties
Read/write properties inherited from XMLNode:
|
DisplayOctave methods
Methods inherited from XMLNode:
|
|
|
DisplayStep bases
DisplayStep read/write properties
Read/write properties inherited from XMLNode:
|
DisplayStep methods
Methods inherited from XMLNode:
|
|
|
Dot bases
Dot read/write properties
Read/write properties inherited from XMLNode:
|
Dot methods
Methods inherited from XMLNode:
|
|
|
This is not an XML object in the normal sense, but a container for all XML dynamic tags. Dynamic tags have no attributes or elements. Tags inlcude common marks such as p, pp, ff, etc.
DynamicMark bases
DynamicMark read/write properties
Read/write properties inherited from XMLNode:
|
DynamicMark methods
Methods inherited from XMLNode:
|
|
|
Dynamics bases
Dynamics read/write properties
Read/write properties inherited from XMLNode:
|
Dynamics methods
Methods inherited from MusicXMLElementList:
Methods inherited from XMLNode:
|
|
|
Encoding bases
Encoding read/write properties
Read/write properties inherited from XMLNode:
|
Encoding methods
Methods inherited from XMLNode:
|
|
|
Ending tags are stored in Barline tags to indicate the start ane end of a repeat bracket, used to designate an alternate repeat.
Ending bases
Ending read/write properties
Read/write properties inherited from XMLNode:
|
Ending methods
Methods inherited from XMLNode:
|
|
|
Fermata bases
Fermata read/write properties
Read/write properties inherited from XMLNode:
|
Fermata methods
Methods inherited from XMLNode:
|
|
|
Forward bases
Forward read/write properties
Read/write properties inherited from XMLNode:
|
Forward methods
Methods inherited from XMLNode:
|
|
|
>>> g = musicxml.mxObjects.Glissando()
>>> g.tag
'glissando'
Glissando bases
Glissando read/write properties
Read/write properties inherited from XMLNode:
|
Glissando methods
Methods inherited from XMLNode:
|
|
|
Grace bases
Grace read/write properties
Read/write properties inherited from XMLNode:
|
Grace methods
Methods inherited from XMLNode:
|
|
|
A harmony tag stores a root, kind – eventually becomes converted to a music21 ChordSymbol object (not Harmony; though ChordSymbol is a subclass of the music21 object called Harmony, which also deals with Figured bass and Roman Numerals.
Harmony bases
Harmony read/write properties
Read/write properties inherited from XMLNode:
|
Harmony methods
Methods inherited from MusicXMLElementList:
Methods inherited from XMLNode:
|
|
|
Identification bases
Identification read/write properties
Read/write properties inherited from XMLNode:
|
Identification methods
Methods inherited from XMLNode:
|
|
|
InvertedMordent bases
InvertedMordent read/write properties
Read/write properties inherited from XMLNode:
|
InvertedMordent methods
Methods inherited from XMLNode:
|
|
|
InvertedTurn bases
InvertedTurn read/write properties
Read/write properties inherited from XMLNode:
|
InvertedTurn methods
Methods inherited from XMLNode:
|
|
|
Key bases
Key read/write properties
Read/write properties inherited from XMLNode:
|
Key methods
Methods inherited from XMLNode:
|
|
|
KeyAlter bases
KeyAlter read/write properties
Read/write properties inherited from XMLNode:
|
KeyAlter methods
Methods inherited from XMLNode:
|
|
|
KeyOctave bases
KeyOctave read/write properties
Read/write properties inherited from XMLNode:
|
KeyOctave methods
Methods inherited from XMLNode:
|
|
|
KeyStep bases
KeyStep read/write properties
Read/write properties inherited from XMLNode:
|
KeyStep methods
Methods inherited from XMLNode:
|
|
|
A harmony tag stores a root, kind
Kind bases
Kind read/write properties
Read/write properties inherited from XMLNode:
|
Kind methods
Methods inherited from XMLNode:
|
|
|
Multiple Lyric objects can be defined within a single Note.
Lyric bases
Lyric read/write properties
Read/write properties inherited from XMLNode:
|
Lyric methods
Remove and fix character strings that cause problems in MusicXML
Methods inherited from XMLNode:
|
|
|
MIDIInstrument bases
MIDIInstrument read/write properties
Read/write properties inherited from XMLNode:
|
MIDIInstrument methods
Methods inherited from XMLNode:
|
|
|
Measure bases
Measure read/write properties
Read/write properties inherited from XMLNode:
|
Measure methods
Return the number of voices defined in this Measure; this must be called after update().
Return a list of unique sorted voice ids.
This method looks at all note, forward, and backup objects and updates divisons and attributes references
Methods inherited from MusicXMLElementList:
Methods inherited from XMLNode:
|
|
|
MeasureStyle bases
MeasureStyle read/write properties
Read/write properties inherited from XMLNode:
|
MeasureStyle methods
Methods inherited from XMLNode:
|
|
|
A direction type used to store tempo indications, consisting of a <beat-unit> tag (a duration) as well as a <per-unit> tag (a number). Also used to store metric modulations.
>>> m = musicxml.mxObjects.Metronome()
>>> bu1 = musicxml.mxObjects.BeatUnit('half')
>>> m.append(bu1)
>>> m.isMetricModulation()
False
Metronome bases
Metronome read/write properties
Read/write properties inherited from XMLNode:
|
Metronome methods
Return True if this Metronome defines a metric modulation. If there are more than on <beat-unit> tag, than this is True
>>> m = musicxml.mxObjects.Metronome()
>>> bu1 = musicxml.mxObjects.BeatUnit('half')
>>> bu2 = musicxml.mxObjects.BeatUnit('quarter')
>>> m.append(bu1)
>>> m.append(bu2)
>>> m.isMetricModulation()
True
Methods inherited from MusicXMLElementList:
Methods inherited from XMLNode:
|
|
|
Mordent bases
Mordent read/write properties
Read/write properties inherited from XMLNode:
|
Mordent methods
Methods inherited from XMLNode:
|
|
|
MusicXML elements are an abstraction of MusicXML into an object oriented framework. Some, not all, of MusicXML elements are represented as objects. Some sub-elements are much more simply placed as attributes of parent objects. These simple elements have only a tag and character data. Elements that have attributes and/or sub-elements, however, must be represented as objects.
MusicXMLElement bases
MusicXMLElement read/write properties
Read/write properties inherited from XMLNode:
|
MusicXMLElement methods
Methods inherited from XMLNode:
|
|
|
Note that design here mirrors that of node.py NodeList, but this needs to be a subclass of of MusicXMLElement
MusicXMLElementList bases
MusicXMLElementList read/write properties
Read/write properties inherited from XMLNode:
|
MusicXMLElementList methods
Methods inherited from XMLNode:
|
|
|
Notations contains many elements, including Ornaments. Most of these are stored in the .componentList
Notations bases
Notations read/write properties
Read/write properties inherited from XMLNode:
|
Notations methods
A quick way to get all articulations objects; there may be more than one.
Returns a list of ArticulationMark objects
Get all Fermatas from the componentList as a list
Get all glissandi objects stored on components. There can be more than one.
>>> g1 = musicxml.mxObjects.Glissando()
>>> g2 = musicxml.mxObjects.Glissando()
>>> n = musicxml.mxObjects.Notations()
>>> n.append(g1)
>>> n.append(g2)
>>> n.getGlissandi()
[<glissando >, <glissando >]
Get all ornament objects stored on componentList. There can be more than one.
Get all Slurs from the componentList as a list
A quick way to get all technical objects; there may be more than one.
Returns a list of TechnicalMark objects
A quick way to get all tied objects; there is likely only one, but we return a list anyhow.
Get one or more tremolo line objects Stored in Ornaments
>>> t = musicxml.mxObjects.Tremolo()
>>> o = musicxml.mxObjects.Ornaments()
>>> n = musicxml.mxObjects.Notations()
>>> o.append(t)
>>> n.append(o)
>>> n.getTremolos()
[<tremolo >]
A quick way to get all tuplets; there is likely only one, but we return a list anyhow.
Get one or more wavy line objects Stored in Ornaments
>>> wl = musicxml.mxObjects.WavyLine()
>>> o = musicxml.mxObjects.Ornaments()
>>> n = musicxml.mxObjects.Notations()
>>> o.append(wl)
>>> n.append(o)
>>> n.getWavyLines()
[<wavy-line >]
Methods inherited from MusicXMLElementList:
Methods inherited from XMLNode:
|
|
|
Note bases
Note read/write properties
Read/write properties inherited from XMLNode:
|
Note methods
Methods inherited from XMLNode:
|
|
|
Notehead bases
Notehead read/write properties
Read/write properties inherited from XMLNode:
|
Notehead methods
Methods inherited from XMLNode:
|
|
|
>>> os = musicxml.mxObjects.OctaveShift()
>>> os.tag
'octave-shift'
OctaveShift bases
OctaveShift read/write properties
Read/write properties inherited from XMLNode:
|
OctaveShift methods
Methods inherited from XMLNode:
|
|
|
A musicxml <offset> element can be found defined in the <direction> element. the charData stores a number that is the shift in divisions from the location of the tag.
Offset bases
Offset read/write properties
Read/write properties inherited from XMLNode:
|
Offset methods
Methods inherited from XMLNode:
|
|
|
The Ornaments tag wraps the following musicxml entities: trill-mark, turn, delayed-turn, inverted-turn, shake, wavy-line, mordent, inverted mordent, schleifer, tremolo, other-ornament.
Ornaments are stored on the notations object.
Ornaments bases
Ornaments read/write properties
Read/write properties inherited from XMLNode:
|
Ornaments methods
Methods inherited from MusicXMLElementList:
Methods inherited from XMLNode:
|
|
|
PageLayout bases
PageLayout read/write properties
Read/write properties inherited from XMLNode:
|
PageLayout methods
Methods inherited from MusicXMLElementList:
Methods inherited from XMLNode:
|
|
|
PageMargins bases
PageMargins read/write properties
Read/write properties inherited from XMLNode:
|
PageMargins methods
Methods inherited from XMLNode:
|
|
|
This assumes a part-wise part
Part bases
Part read/write properties
Read/write properties inherited from XMLNode:
|
Part methods
Look ahead into the measure Attributes and return the highest number of staves used in this part.
Methods inherited from MusicXMLElementList:
Methods inherited from XMLNode:
|
|
|
The PartGroup tag is stored in the PartList, intermingled with ScorePart tags and other definitions.
PartGroup bases
PartGroup read/write properties
Read/write properties inherited from XMLNode:
|
PartGroup methods
Methods inherited from XMLNode:
|
|
|
The PartList defines the parts, as well as their names and abbreviations.
It stores the parts in its .componentList list in order.
Additionally, the order of this list is used as a way specifying arrangements of brackets and/or braces that group parts in partGroup objects.
The order of this list thus matters.
The PartList for a score is usually accessed from the Score (musicxml.Score) object’s .partListObj parameter.
PartList bases
PartList read/write properties
Read/write properties inherited from XMLNode:
|
PartList methods
Methods inherited from MusicXMLElementList:
Methods inherited from XMLNode:
|
|
|
Part of <metronome> tags
PerMinute bases
PerMinute read/write properties
Read/write properties inherited from XMLNode:
|
PerMinute methods
Methods inherited from XMLNode:
|
|
|
Pitch bases
Pitch read/write properties
Read/write properties inherited from XMLNode:
|
Pitch methods
Methods inherited from XMLNode:
|
|
|
Print bases
Print read/write properties
Read/write properties inherited from XMLNode:
|
Print methods
Methods inherited from MusicXMLElementList:
Methods inherited from XMLNode:
|
|
|
Repeat bases
Repeat read/write properties
Read/write properties inherited from XMLNode:
|
Repeat methods
Methods inherited from XMLNode:
|
|
|
Rest bases
Rest read/write properties
Read/write properties inherited from XMLNode:
|
Rest methods
Methods inherited from MusicXMLElementList:
Methods inherited from XMLNode:
|
|
|
A root defines a pitch, with a step and an alter
Root bases
Root read/write properties
Read/write properties inherited from XMLNode:
|
Root methods
Methods inherited from XMLNode:
|
|
|
Scaling bases
Scaling read/write properties
Read/write properties inherited from XMLNode:
|
Scaling methods
Methods inherited from XMLNode:
|
|
|
Schleifer bases
Schleifer read/write properties
Read/write properties inherited from XMLNode:
|
Schleifer methods
Methods inherited from XMLNode:
|
|
|
Score is used to collect score header elements and, if available, all other MusicXML data. Score can be used for partwise or timewise scores. This object includes all MusicXML score information.
Score bases
Score read/write properties
Read/write properties inherited from XMLNode:
|
Score methods
Get a part, given an id.
>>> from music21.musicxml import testPrimitive
>>> from music21.musicxml import xmlHandler
>>> b = xmlHandler.Document()
>>> b.read(testPrimitive.ALL[0])
>>> spIdList = sorted(list(b.score.partIdToNameDict().keys()))
>>> c = b.score.getPart(spIdList[0])
>>> c
<part id=P1 <measure number=1 width=983 <print <system-layout...
>>> isinstance(c, musicxml.mxObjects.Part)
True
>>> isinstance(c, stream.Part)
False
Get part groups organized by part id in dictionaries.
Returns a list of dictionaries, each dictionary containing number, a list of part ids, and a mx PartGroup object.
A quick way to get all valid part ids in the componentList
A quick way to get all valid part ids in the partListObj for each one that is a ScorePart
Get an instrument, as defined in a ScorePart object, from a Score.
>>> a = musicxml.mxObjects.Score()
>>> a.setDefaults()
>>> a.getScorePart('P3') == None
True
>>> from music21.musicxml import testPrimitive
>>> from music21.musicxml import xmlHandler
>>> b = xmlHandler.Document()
>>> b.read(testPrimitive.pitches01a)
>>> spIdList = sorted(list(b.score.partIdToNameDict().keys()))
>>> b.score.getScorePart(spIdList[0])
<score-part id=P1 part-name=MusicXML Part>
A quick way to get a mapping of valid part ids to the part names from a Score (musicxml.Score) object in the .partListObj property.
Returns a dictionary mapping part id to part-name for each ScorePart in .partListObj.
Note that dictionaries are not sorted, so the order of .partListObj still needs to be used.
Methods inherited from MusicXMLElementList:
Methods inherited from XMLNode:
|
|
|
ScoreInstrument bases
ScoreInstrument read/write properties
Read/write properties inherited from XMLNode:
|
ScoreInstrument methods
Methods inherited from XMLNode:
|
|
|
Lives in a PartList
ScorePart bases
ScorePart read/write properties
Read/write properties inherited from XMLNode:
|
ScorePart methods
Methods inherited from XMLNode:
|
|
|
Segno bases
Segno read/write properties
Read/write properties inherited from XMLNode:
|
Segno methods
Methods inherited from XMLNode:
|
|
|
Shake bases
Shake read/write properties
Read/write properties inherited from XMLNode:
|
Shake methods
Methods inherited from XMLNode:
|
|
|
Slur bases
Slur read/write properties
Read/write properties inherited from XMLNode:
|
Slur methods
Methods inherited from XMLNode:
|
|
|
Defines the Software that created this MusicXML document.
Software bases
Software read/write properties
Read/write properties inherited from XMLNode:
|
Software methods
Methods inherited from XMLNode:
|
|
|
A direction type used to store a large variety of performance indications.
These tags seem to be found most often in <direction> tags, usually following a symbolic definition. For example, MetronomeMark definitions are often followed by a <sound> definition.
Other <sound> tags are found after the <attributes> tag in a measure, often defining tempo.
Sound bases
Sound read/write properties
Read/write properties inherited from XMLNode:
|
Sound methods
Methods inherited from XMLNode:
|
|
|
StaffDetails bases
StaffDetails read/write properties
Read/write properties inherited from XMLNode:
|
StaffDetails methods
Methods inherited from XMLNode:
|
|
|
StaffLayout bases
StaffLayout read/write properties
Read/write properties inherited from XMLNode:
|
StaffLayout methods
Methods inherited from MusicXMLElementList:
Methods inherited from XMLNode:
|
|
|
Defines what sorts of notation this encoding supports
Supports bases
Supports read/write properties
Read/write properties inherited from XMLNode:
|
Supports methods
Methods inherited from XMLNode:
|
|
|
SystemLayout bases
SystemLayout read/write properties
Read/write properties inherited from XMLNode:
|
SystemLayout methods
Methods inherited from MusicXMLElementList:
Methods inherited from XMLNode:
|
|
|
SystemMargins bases
SystemMargins read/write properties
Read/write properties inherited from XMLNode:
|
SystemMargins methods
Methods inherited from XMLNode:
|
|
|
Object to store tags as encountered by SAX. Tags can be open or closed based on the status attribute. Tags can store character data collected between their defined tags.
These objects are used only for finding and collecting tag attributes and elements. As we do not need character data for all tags, tags have an optional flag to select if the are to collect character data.
Tag bases
Tag methods
An object to store all MusicXML tags as Tag objects. Tag objects are used just to identify tags, store element contents and status in SAX parsing.
With this design some tags (called simple elements) can be used simply in SAX parsing as structural monitors, but not be instantiated as objects for content delivery.
TagLib methods
A way to check for errors in SAX parsing. Assumes that all start() calls have been paired with an end() call, and that all element data has been cleared.
Get the class or name, or None if none defined.
>>> tl = musicxml.mxObjects.TagLib()
>>> tl.getClassName('voice')
Class for the <technical> musicxml mark which contains things like <up-bow> etc. objects
Technical bases
Technical read/write properties
Read/write properties inherited from XMLNode:
|
Technical methods
Methods inherited from MusicXMLElementList:
Methods inherited from XMLNode:
|
|
|
This is not an XML object, but a container for all XML technical tags.
TechnicalMark bases
TechnicalMark read/write properties
Read/write properties inherited from XMLNode:
|
TechnicalMark methods
Methods inherited from XMLNode:
|
|
|
Tie bases
Tie read/write properties
Read/write properties inherited from XMLNode:
|
Tie methods
Methods inherited from XMLNode:
|
|
|
Tied bases
Tied read/write properties
Read/write properties inherited from XMLNode:
|
Tied methods
Methods inherited from XMLNode:
|
|
|
Time bases
Time read/write properties
Read/write properties inherited from XMLNode:
|
Time methods
Methods inherited from XMLNode:
|
|
|
TimeModification bases
TimeModification read/write properties
Read/write properties inherited from XMLNode:
|
TimeModification methods
Methods inherited from XMLNode:
|
|
|
Transpose bases
Transpose read/write properties
Read/write properties inherited from XMLNode:
|
Transpose methods
Methods inherited from XMLNode:
|
|
|
Tremolo may or may not extend over multiple notes. Char data may store integer number.
Tremolo bases
Tremolo read/write properties
Read/write properties inherited from XMLNode:
|
Tremolo methods
Methods inherited from XMLNode:
|
|
|
TrillMark bases
TrillMark read/write properties
Read/write properties inherited from XMLNode:
|
TrillMark methods
Methods inherited from XMLNode:
|
|
|
Stored in notations object and governs presentation and bracket.
Tuplet bases
Tuplet read/write properties
Read/write properties inherited from XMLNode:
|
Tuplet methods
Methods inherited from XMLNode:
|
|
|
Turn bases
Turn read/write properties
Read/write properties inherited from XMLNode:
|
Turn methods
Methods inherited from XMLNode:
|
|
|
A wavy line that extends across many notes or measures.
>>> wl = musicxml.mxObjects.WavyLine()
>>> wl.tag
'wavy-line'
WavyLine bases
WavyLine read/write properties
Read/write properties inherited from XMLNode:
|
WavyLine methods
Methods inherited from XMLNode:
|
|
|
>>> w = musicxml.mxObjects.Wedge()
>>> w.tag
'wedge'
Wedge bases
Wedge read/write properties
Read/write properties inherited from XMLNode:
|
Wedge methods
Methods inherited from XMLNode:
|
|
|
A direction type that can be used for arbitrary text expressions, and font formatting
Words bases
Words read/write properties
Read/write properties inherited from XMLNode:
|
Words methods
Methods inherited from XMLNode:
|
|
|