Options
All
  • Public
  • Public/Protected
  • All
Menu

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
autoTupletVfBeams: Beam[] = []

Beams of tuplet notes created by (optional) autoBeam function.

autoVfBeams: Beam[] = []

Beams created by (optional) autoBeam function.

beams: {} = {}

Intermediate object to construct beams

Type declaration

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.

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

VexFlow Beams

Type declaration

  • [voiceID: number]: VF.Beam[]
vftuplets: {} = {}

VexFlow Tuplets

Type declaration

  • [voiceID: number]: VF.Tuplet[]

Accessors

  • get MeasureNumber(): number

Methods

  • addMeasureNumber(): void
  • addStaveTie(stavetie: StaveTie, graphicalTie: GraphicalTie): void
  • autoBeamNotes(beamedNotes: StemmableNote[]): void
  • Automatically creates beams for notes except beamedNotes, using Vexflow's Beam.generateBeams(). Takes options from this.rules.AutoBeamOptions.

    Parameters

    • beamedNotes: StemmableNote[]

      notes that will not be autobeamed (usually because they are already beamed)

    Returns void

  • beginsWithLineRepetition(): boolean
  • beginsWithWordRepetition(): boolean
  • clean(): void
  • correctNotePositions(): void
  • createArticulations(): void
  • Creates vexflow fingering elements. Note that this is currently only used for Left and Right fingering positions, not Above and Below, in which case they are instead added via MusicSheetCalculator.calculateFingerings() as Labels with bounding boxes.

    Parameters

    Returns void

  • createOrnaments(): void
  • draw(ctx: IRenderContext): void
  • endsWithLineRepetition(): boolean
  • endsWithWordRepetition(): boolean
  • finalizeBeams(): void
  • finalizeTuplets(): void
  • format(): void
  • getGraphicalMeasureDurationFromStaffEntries(): Fraction
  • Finds the gaps between the existing notes within a measure. Problem here is, that the graphicalVoiceEntry does not exist yet and that Tied notes are not present in the normal voiceEntries. To handle this, calculation with absolute timestamps is needed. And the graphical notes have to be analysed directly (and not the voiceEntries, as it actually should be -> needs refactoring)

    Parameters

    • voice: Voice

      the voice for which the ghost notes shall be searched.

    Returns GraphicalVoiceEntry[]

  • 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
  • setStemDirectionFromVexFlow(): void
  • setWidth(width: number): void
  • updateInstructionWidth(): void

Generated using TypeDoc