OpenSheetMusicDisplay
    Preparing search index...

    Class InstrumentReader

    An InstrumentReader is used during the reading phase to keep parsing new measures from the MusicXML file with the readNextXmlMeasure method.

    Index
    pluginManager: ReaderPluginManager
    • Keep a key at the actual measure end for the following measure, including pickups. The last measure keeps it at its end, where it is drawn after the notes.

      Returns void

    • Parse a color in XML format: #RRGGBB or #AARRGGBB (alpha first), or #RRGGBBAA from MuseScore (see MusicSheet.XmlColorAlphaLast).

      Parameters

      • xmlColorString: string

      Returns string

      the color in CSS format (#RRGGBB or #RRGGBBAA), as used by OSMD's options and passed to SVG/canvas

    • Main CreateSheet: read the next XML Measure and save all data to the given [[SourceMeasure]].

      Parameters

      • currentMeasure: SourceMeasure
      • measureStartAbsoluteTimestamp: Fraction

        Using this instead of currentMeasure.AbsoluteTimestamp as it isn't set yet

      • octavePlusOne: boolean

        Software like Guitar Pro gives one octave too low, so we need to add one

      • readNotationDynamics: boolean = true

        Whether to read the <dynamics> in a note's <notations> (not those of Guitar Pro 5, which gives every note its dynamic there, its velocity)

      Returns boolean