OpenSheetMusicDisplay
    Preparing search index...

    Class RepetitionInstructionReader

    Index

    Constructors

    Properties

    repetitionInstructions: RepetitionInstruction[]

    A global list of all repetition instructions in the musicsheet.

    xmlMeasureList: IXmlElement[][]

    Accessors

    Methods

    • Reads a repetition instruction (e.g. D.S., Fine, a segno sign) from a direction.

      Parameters

      • directionTypeNode: IXmlElement

        the direction-type element (words, segno or coda)

      • relativeMeasurePosition: number

        the position of the direction in the measure (not used)

      • OptionalsoundNode: IXmlElement

        the direction's sound element, if any: marks a segno as the target of a D.S. Its dacapo, dalsegno, fine, tocoda, segno and coda attributes say which instruction the direction is when its words don't name one themselves, e.g. "Fin", "Da Capo bis Ende" or "D.C. senza replica".

      Returns boolean

      true if the direction is a repetition instruction, false if it is drawn as text