OpenSheetMusicDisplay
    Preparing search index...

    Class VexFlowOctaveShift

    The vexflow adaptation of a graphical shift.

    Hierarchy (View Summary)

    Index
    boundingBox: BoundingBox
    dashesEnd: PointF2D
    dashesStart: PointF2D
    endMeasure: GraphicalMeasure

    The measure in which this OctaveShift (which can be a part/bracket of a multi-line shift) ends graphically.

    endNote: StemmableNote

    Defines the note where the octave shift ends

    endsOnDifferentStaffLine: boolean

    Whether the octave shift goes on after this bracket, in the next system or after the drawn range: no closing hook.

    getOctaveShift: OctaveShift
    graphicalEndAtMeasureEnd: boolean

    Whether the octave shift should be drawn until the end of the measure, instead of the current note.

    isFirstPart: boolean
    isSecondPart: boolean
    octaveSymbol: MusicSymbol
    startNote: StemmableNote

    Defines the note where the octave shift starts

    startStave: Stave

    Source staff, independent of a cross-staff horizontal start anchor.

    textPosition: number

    The stave text position the bracket is drawn at, in staff spaces like Vexflow's Stave options top_text_position (above) and bottom_text_position (below): set by the calculator from the skyline or bottom line, see getTextBracket(). Undefined: the start stave's own.

    • Set an end note using a staff entry.

      Parameters

      • graphicalStaffEntry: GraphicalStaffEntry

        the staff entry that holds the end note

      • maxVoiceEntryIndex: number = -1

        when >= 0, only consider voice entries before this index (used when an octave shift stop falls between grace notes sharing the same staff entry)

      Returns boolean