Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Constructors

Properties

Accessors

Methods

Constructors

Properties

ExtraGraphicalMeasurePreviousMeasure: GraphicalMeasure
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.

ShowKeySignature: boolean = true
ShowTimeSignature: boolean = true
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.

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

Type declaration

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

      Parameters

      Returns void

hasError: boolean
hasMetronomeMark: boolean = false
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.

isTabMeasure: boolean = false
lastInstructionStaffEntry: GraphicalStaffEntry
minimumStaffEntriesWidth: number

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

multiRestElement: any
octaveOffset: number = 3

octaveOffset according to active clef

parentSourceMeasure: SourceMeasure
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: {} = {}

Intermediate object to construct tuplets

Type declaration

vfRepetitionWords: Repetition[] = []

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

vfTies: StaveTie[] = []

The VexFlow Ties in the measure

vfVoices: {} = {}

The VexFlow Voices in the measure

Type declaration

  • [voiceID: number]: VF.Voice

Accessors

  • get MeasureNumber(): number

Methods

  • addMeasureNumber(): void
  • addStaveTie(stavetie: StaveTie, graphicalTie: GraphicalTie): void
  • beginsWithLineRepetition(): boolean
  • beginsWithWordRepetition(): boolean
  • clean(): void
  • correctNotePositions(): void
  • createArticulations(): void
  • createOrnaments(): void
  • draw(ctx: IRenderContext): void
  • endsWithLineRepetition(): boolean
  • endsWithWordRepetition(): boolean
  • finalizeBeams(): void
  • finalizeTuplets(): void
  • format(): void
  • getGraphicalMeasureDurationFromStaffEntries(): Fraction
  • getTransposedHalftones(): number
  • getVFStave(): Stave
  • getVoicesWithinMeasure(): Voice[]
  • graphicalMeasureCreatedCalculations(): void
  • hasMultipleVoices(): boolean
  • hasSameDurationWithSourceMeasureParent(): boolean
  • isInstanceOfClass(className: string): boolean
  • isLowerStaffOfInstrument(): boolean
  • isPianoLeftHand(): boolean
  • isPianoRightHand(): boolean
  • isUpperStaffOfInstrument(): boolean
  • isVisible(): boolean
  • layoutSymbols(): void
  • resetLayout(): void
  • setAbsoluteCoordinates(x: number, y: number): void
  • setLineNumber(lineNumber: number): void
  • setPositionInStaffline(xPos: number): void
  • setWidth(width: number): void
  • updateInstructionWidth(): void

Generated using TypeDoc