Options
All
  • Public
  • Public/Protected
  • All
Menu

Class VexFlowMusicSheetCalculator

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

Protected graphicalMusicSheet

graphicalMusicSheet: GraphicalMusicSheet

Protected rules

Protected staffEntriesWithChordSymbols

staffEntriesWithChordSymbols: GraphicalStaffEntry[] = []

Protected staffEntriesWithGraphicalTies

staffEntriesWithGraphicalTies: GraphicalStaffEntry[] = []

Protected staffEntriesWithOrnaments

staffEntriesWithOrnaments: GraphicalStaffEntry[] = []

Protected staffLinesWithGraphicalExpressions

staffLinesWithGraphicalExpressions: StaffLine[] = []

Protected staffLinesWithLyricWords

staffLinesWithLyricWords: StaffLine[] = []

Protected symbolFactory

Static Protected textMeasurer

textMeasurer: ITextMeasurer

Static transposeCalculator

transposeCalculator: ITransposeCalculator

Accessors

Protected leadSheet

  • get leadSheet(): boolean

Static TextMeasurer

Methods

Protected calcGraphicalRepetitionEndingsRecursively

  • calcGraphicalRepetitionEndingsRecursively(repetition: Repetition): void

calculate

  • calculate(): void

Protected calculateChordSymbols

  • calculateChordSymbols(): void

Protected calculateComments

  • calculateComments(): void

Protected calculateDynamicExpressionsForSingleMultiExpression

  • calculateDynamicExpressionsForSingleMultiExpression(multiExpression: MultiExpression, measureIndex: number, staffIndex: number): void

Protected calculateMarkedAreas

  • calculateMarkedAreas(): void

Protected calculateMeasureNumberPlacement

  • calculateMeasureNumberPlacement(musicSystem: MusicSystem): void

Protected calculateMeasureXLayout

  • 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.

    Parameters

    Returns number

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

Protected calculateMoodAndUnknownExpression

  • calculateMoodAndUnknownExpression(multiExpression: MultiExpression, measureIndex: number, staffIndex: number): void

Protected calculateMusicSystems

  • calculateMusicSystems(): void

Protected calculatePageLabels

Protected calculateRestNotePlacementWithinGraphicalBeam

Protected calculateSheetLabelBoundingBoxes

  • calculateSheetLabelBoundingBoxes(): void

Protected calculateSingleOctaveShift

  • calculateSingleOctaveShift(sourceMeasure: SourceMeasure, multiExpression: MultiExpression, measureIndex: number, staffIndex: number): void

Protected calculateSingleStaffLineLyricsPosition

  • calculateSingleStaffLineLyricsPosition(staffLine: StaffLine, lyricVersesNumber: number[]): void

Protected calculateSkyBottomLine

  • calculateSkyBottomLine(staffLine: StaffLine): void

Protected calculateSlurs

  • calculateSlurs(): void

Protected calculateSystemYLayout

  • calculateSystemYLayout(): void

Protected calculateTempoExpressionsForSingleMultiTempoExpression

Protected calculateTupletNumbers

  • calculateTupletNumbers(): void

Protected calculateWordRepetitionInstruction

  • calculateWordRepetitionInstruction(repetitionInstruction: RepetitionInstruction, measureIndex: number): void

calculateXLayout

  • calculateXLayout(graphicalMusicSheet: GraphicalMusicSheet, maxInstrNameLabelLength: number): void

Protected checkMeasuresForWholeRestNotes

  • checkMeasuresForWholeRestNotes(): void

Protected clearRecreatedObjects

  • clearRecreatedObjects(): void

Protected clearSystemsAndMeasures

  • clearSystemsAndMeasures(): void

Protected createGraphicalTie

Protected createGraphicalTies

  • createGraphicalTies(): void

Protected getRelativePositionInStaffLineFromTimestamp

  • getRelativePositionInStaffLineFromTimestamp(timestamp: Fraction, verticalIndex: number, staffLine: StaffLine, multiStaffInstrument: boolean, firstVisibleMeasureRelativeX?: number): PointF2D

Protected getRelativeXPositionFromTimestamp

  • getRelativeXPositionFromTimestamp(timestamp: Fraction): number

Protected handleBeam

Protected handleOpenTies

Protected handleStaffEntryLink

Protected handleTiedGraphicalNote

Protected handleTuplet

Protected handleVoiceEntry

Protected handleVoiceEntryArticulations

Protected handleVoiceEntryGraceNotes

Protected handleVoiceEntryLyrics

Protected handleVoiceEntryOrnaments

Protected initStaffMeasuresCreation

  • initStaffMeasuresCreation(): void

initialize

Protected layoutArticulationMarks

Protected layoutBeams

Protected layoutGraphicalTie

  • layoutGraphicalTie(tie: GraphicalTie, tieIsAtSystemBreak: boolean): void

Protected layoutMeasureWithWholeRest

Protected layoutOrnament

Protected layoutSingleRepetitionEnding

  • layoutSingleRepetitionEnding(start: StaffMeasure, end: StaffMeasure, numberText: string, offset: number, leftOpen: boolean, rightOpen: boolean): void

Protected layoutStaffEntry

Protected layoutVoiceEntries

Protected layoutVoiceEntry

Protected maxInstrNameLabelLength

  • maxInstrNameLabelLength(): number

Protected optimizeRestNotePlacement

Protected optimizeStaffLineDynamicExpressionsPositions

  • optimizeStaffLineDynamicExpressionsPositions(): void

prepareGraphicalMusicSheet

  • prepareGraphicalMusicSheet(): void

Protected resetYPositionForLeadSheet

Protected staffMeasureCreatedCalculations

  • staffMeasureCreatedCalculations(measure: StaffMeasure): void

Protected updateSkyBottomLine

  • updateSkyBottomLine(staffLine: StaffLine): void

Protected updateStaffLineBorders

  • updateStaffLineBorders(staffLine: StaffLine): void

Generated using TypeDoc