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

    Constructors

    Properties

    pluginManager: ReaderPluginManager

    Accessors

    Methods

    • Parse a color in XML format. Can be #ARGB or #RGB format, colors as byte hex values.

      Parameters

      • xmlColorString: string

      Returns string

      color in Vexflow format #[A]RGB or undefined for invalid xmlColorString

    • 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

      Returns boolean