Options
All
  • Public
  • Public/Protected
  • All
Menu

Class VexFlowMusicSheetCalculator

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

Properties

beamsNeedUpdate: boolean = false
dashSpace: number

space needed for a dash for lyrics spacing, calculated once

dynamicExpressionMap: Map<number, BoundingBox> = ...
graphicalLyricWords: GraphicalLyricWord[] = []
graphicalMusicSheet: GraphicalMusicSheet
musicSystems: MusicSystem[]
staffEntriesWithChordSymbols: GraphicalStaffEntry[] = []
staffEntriesWithGraphicalTies: GraphicalStaffEntry[] = []
staffEntriesWithOrnaments: GraphicalStaffEntry[] = []
staffLinesWithLyricWords: StaffLine[] = []
stafflineNoteCalculator: IStafflineNoteCalculator
textMeasurer: ITextMeasurer
transposeCalculator: ITransposeCalculator

Accessors

  • get leadSheet(): boolean

Methods

  • calcGraphicalRepetitionEndingsRecursively(repetition: Repetition): void
  • calculate(): void
  • calculateChordSymbols(): void
  • calculateComments(): void
  • calculateDynamicExpressionsForMultiExpression(multiExpression: MultiExpression, measureIndex: number, staffIndex: number): void
  • calculateElongationFactorFromStaffEntries(staffEntries: GraphicalStaffEntry[], oldMinimumStaffEntriesWidth: number, elongationFactorForMeasureWidth: number, measureNumber: number): number
  • calculateExpressionAlignements(): void
  • calculateFingerings(): void
  • calculateGlissandi(): void
  • calculateMarkedAreas(): void
  • calculateMeasureNumberPlacement(musicSystem: MusicSystem): void
  • calculateMeasureWidthFromStaffEntries(measuresVertical: GraphicalMeasure[], oldMinimumStaffEntriesWidth: number): number
  • Calculates the x layout of the staff entries within the staff measures belonging to one source measure. All staff entries are x-aligned throughout all vertically aligned staff measures. This method is called within calculateXLayout. The staff entries are aligned with minimum needed x distances. The MinimumStaffEntriesWidth of every measure will be set - needed for system building. Prepares the VexFlow formatter for later formatting Does not calculate measure width from lyrics (which is called from MusicSheetCalculator)

    Parameters

    Returns number

    the minimum required x width of the source measure (=list of staff measures)

  • calculateMoodAndUnknownExpression(multiExpression: MultiExpression, measureIndex: number, staffIndex: number): void
  • calculateMusicSystems(): void
  • calculateSheetLabelBoundingBoxes(): void
  • calculateSingleOctaveShift(sourceMeasure: SourceMeasure, multiExpression: MultiExpression, measureIndex: number, staffIndex: number): void
  • calculateSinglePedal(sourceMeasure: SourceMeasure, multiExpression: MultiExpression, measureIndex: number, staffIndex: number): void
  • calculateSkyBottomLines(): void
  • calculateSlurs(): void
  • calculateTempoExpressionsForMultiTempoExpression(sourceMeasure: SourceMeasure, multiTempoExpression: MultiTempoExpression, measureIndex: number): void
  • calculateTupletNumbers(): void
  • calculateWordRepetitionInstruction(repetitionInstruction: RepetitionInstruction, measureIndex: number): void
  • calculateXLayout(graphicalMusicSheet: GraphicalMusicSheet, maxInstrNameLabelLength: number): void
  • checkMeasuresForWholeRestNotes(): void
  • clearRecreatedObjects(): void
  • clearSystemsAndMeasures(): void
  • createGraphicalTies(): void
  • createMetronomeMark(metronomeExpression: InstantaneousTempoExpression): void
  • findIndexGraphicalSlurFromSlur(gSlurs: GraphicalSlur[], slur: Slur): number
  • formatMeasures(): void
  • getRelativePositionInStaffLineFromTimestamp(timestamp: Fraction, verticalIndex: number, staffLine: StaffLine, multiStaffInstrument: boolean, firstVisibleMeasureRelativeX?: number, useLeftStaffEntryBorder?: boolean): PointF2D
  • getRelativeXPositionFromTimestamp(timestamp: Fraction): number
  • initGraphicalMeasuresCreation(): void
  • layoutGraphicalTie(tie: GraphicalTie, tieIsAtSystemBreak: boolean, isTab: boolean): void
  • maxInstrNameLabelLength(): number
  • prepareGraphicalMusicSheet(): void
  • updateStaffLineBorders(staffLine: StaffLine): void
  • setMeasuresMinStaffEntriesWidth(measures: GraphicalMeasure[], minimumStaffEntriesWidth: number): void

Generated using TypeDoc