music_xml library
Classes
- Barline
- Internal representation of a MusicXML
- ChordSymbol
- Internal representation of a MusicXML chord symbol
- ClefSignature
- Internal representation of a MusicXML clef signature.
- KeySignature
- Internal representation of a MusicXML key signature.
- Lyric
- Internal representation of a MusicXML
- LyricItem
- Measure
- Internal represention of the MusicXML
- MusicXmlDocument
- Internal representation of a MusicXML Document. Represents the top level object which holds the MusicXML document Responsible for loading the .xml or .mxl file using the _get_score method If the file is .mxl, this class uncompresses it After the file is loaded, this class then parses the document into memory using the parse method.
- MusicXMLParserState
- Maintains internal state of the MusicXML parser.
- Note
- Internal representation of a MusicXML
- NoteDuration
- Part
- Internal represention of a MusicXML
- Pitch
- Representation of a MusicXml Pitch
- Internal representation of a MusicXML
- Root
- Internal representation of a MusicXML
- ScorePart
- Internal representation of a MusicXML
- Tempo
- Internal representation of a MusicXML tempo.
- Tie
- Internal representation of a MusicXML
- TimeSignature
- Internal representation of a MusicXML time signature. Does not support:
Enums
- BarStyle
- DegreeType
- https://www.w3.org/2021/06/musicxml40/musicxml-reference/data-types/degree-type-value/
- Kind
- RightLeftMiddle
- https://www.w3.org/2021/06/musicxml40/musicxml-reference/data-types/right-left-middle/
- SimpleKind
- StartStop
- https://www.w3.org/2021/06/musicxml40/musicxml-reference/data-types/start-stop/
- Step
- https://www.w3.org/2021/06/musicxml40/musicxml-reference/elements/root-step/
- Syllabic
- The value of the
Extensions
Constants
-
chordKindAbbreviations
→ const Map<
String, String> - The below dictionary maps chord kinds to an abbreviated string as would appear in a chord symbol in a standard lead sheet. There are often multiple standard abbreviations for the same chord type, e.g. "+" and "aug" both refer to an augmented chord, and "maj7", "M7", and a Delta character all refer to a major-seventh chord; this dictionary attempts to be consistent but the choice of abbreviation is somewhat arbitrary.
- defaultMidiChannel → const int
- Default MIDI Program (0 = grand piano)
- defaultMidiProgram → const int
- Default MIDI Channel (0 = first channel)
- defaultQuartersPerMinute → const double
- standardPpq → const int
- Standard pulses per quarter. https://en.wikipedia.org/wiki/Pulses_per_quarter_note
Functions
-
parseDegreeType(
String str) → DegreeType -
parseKind(
String str) → Kind -
parseRightLeftMiddle(
String str) → RightLeftMiddle -
parseStartStop(
String str) → StartStop -
parseStep(
String str) → Step -
parseYesNo(
String str) → bool - https://www.w3.org/2021/06/musicxml40/musicxml-reference/data-types/yes-no/
-
pitchToMidiPitch(
String step, double alter, String octave) → int - Convert MusicXML pitch representation to MIDI pitch number.