Add (the three basic) Notation Instructions to a list
Create the default ClefInstruction for the given staff index.
Create the default KeyInstruction in case no KeyInstruction is given in the whole Instrument.
In case of a Tuplet, read NoteDuration from type.
Called only when no noteDuration is given in XML.
Get or create the passing VoiceGenerator.
Check if the given attributesNode is at the begin of a XmlMeasure.
Check if the given attributesNode is at the end of a XmlMeasure.
Parse a color in XML format. Can be #ARGB or #RGB format, colors as byte hex values.
color in Vexflow format #[A]RGB or undefined for invalid xmlColorString
Calculate the divisions value from the type and duration of the first MeasureNote that makes sense (meaning itself hasn't any errors and it doesn't belong to a Tuplet).
If all the MeasureNotes belong to a Tuplet, then we read the next XmlMeasure (and so on...). If we have reached the end of the Instrument and still the divisions aren't set, we throw an exception
Main CreateSheet: read the next XML Measure and save all data to the given SourceMeasure.
Using this instead of currentMeasure.AbsoluteTimestamp as it isn't set yet
Software like Guitar Pro gives one octave too low, so we need to add one
Save the current AbstractInstructions to the corresponding [[StaffEntry]]s.
Save any ClefInstruction given - exceptionally - at the end of the currentMeasure.
Generated using TypeDoc
An InstrumentReader is used during the reading phase to keep parsing new measures from the MusicXML file with the readNextXmlMeasure method.