OpenSheetMusicDisplay
    Preparing search index...

    Class VexFlowMultiRestMeasure

    A GraphicalMeasure drawing a multiple-rest measure in Vexflow. Mostly copied from VexFlowMeasure. Even though most of those functions aren't needed, apparently you can't remove the layoutStaffEntry function.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    beginInstructionsWidth: number

    The x-width of possibly existing: repetition start line, clef, key, rhythm.

    boundingBox: BoundingBox
    connectors: StaveConnector[] = []

    VexFlow StaveConnectors (vertical lines)

    endInstructionsWidth: number

    The x-width of possibly existing: repetition end line, clef.

    ExtraGraphicalMeasurePreviousMeasure: GraphicalMeasure
    firstInstructionStaffEntry: GraphicalStaffEntry
    formatVoices?: (width: number, parent: VexFlowMeasure) => void

    Call this function (if present) to x-format all the voices in the measure

    hasError: boolean
    hasMetronomeMark: boolean = false

    Whether a metronome mark is drawn on this staff measure (they are drawn on the first visible staff).

    hasOnlyRests: boolean = false

    Whether or not this measure is nothing but rest(s). Also see SourceMeasure.allRests, which is not the same, because a source measure can have multiple staffs/graphicalMeasures.

    InitiallyActiveClef: ClefInstruction

    The clef of the first note of the measure (the clef the measure starts with).

    IsExtraGraphicalMeasure: boolean

    Used to show key, rhythm changes at the end of the system, has MeasureNumber < 0, because never set.

    isTabMeasure: boolean = false
    lastInstructionStaffEntry: GraphicalStaffEntry
    MeasureRepeat: VexFlowMeasureRepeat

    Repeat unit drawn in place of this measure's note content, if any.

    minimumStaffEntriesWidth: number

    The minimum possible x-width of all staff entries without overlapping.

    multiRestElement: any

    Only exists on multiple rest measure (VexFlowMultiRestMeasure). See isMultiRestMeasure() function.

    multiRestElementSVG: SVGGElement
    octaveOffset: number = 3

    octaveOffset according to active clef

    parentSourceMeasure: SourceMeasure
    ShowKeySignature: boolean = true
    ShowTimeSignature: boolean = true
    staffEntries: GraphicalStaffEntry[]
    staffEntriesScaleFactor: number

    Will be set by music system builder while building systems.

    stave: Stave

    The VexFlow Stave (= one measure in a staffline)

    tuplets: { [voiceID: number]: [Tuplet, VexFlowVoiceEntry[]][] } = {}

    Intermediate object to construct tuplets

    vfRepetitionWords: Repetition[] = []

    The repetition instructions given as words or symbols (coda, dal segno..)

    vfTies: StaveTie[] = []

    The VexFlow Ties in the measure

    vfVoices: { [voiceID: number]: Voice } = {}

    The VexFlow Voices in the measure

    Accessors

    Methods

    • Places each note at the height of its drawn note head, relative to its voice entry, e.g. where a click finds it (GraphicalMusicSheet.GetNearestNote()). A voice entry is at the top of its Vexflow note's bounding box (see VexFlowVoiceEntry.applyBordersFromVexflow()), e.g. the stem tip of a note with its stem up, and stems differ in length: the stems of grace notes and cue notes are shorter, those of 32nd notes longer. A note's x: see VexFlowStaffEntry.calculateXPosition(). Called at the end of draw() (note.setIndex() needs to have been called).

      Returns void