Options
All
  • Public
  • Public/Protected
  • All
Menu

Class VexFlowMusicSheetCalculator

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

Private dashSpace

dashSpace: number

space needed for a dash for lyrics spacing, calculated once

Protected graphicalLyricWords

graphicalLyricWords: GraphicalLyricWord[] = []

Protected graphicalMusicSheet

graphicalMusicSheet: GraphicalMusicSheet

Protected rules

Protected staffEntriesWithChordSymbols

staffEntriesWithChordSymbols: GraphicalStaffEntry[] = []

Protected staffEntriesWithGraphicalTies

staffEntriesWithGraphicalTies: GraphicalStaffEntry[] = []

Protected staffEntriesWithOrnaments

staffEntriesWithOrnaments: GraphicalStaffEntry[] = []

Protected staffLinesWithLyricWords

staffLinesWithLyricWords: StaffLine[] = []

Static 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 calculateDynamicExpressionsForMultiExpression

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

Protected calculateExpressionAlignements

  • calculateExpressionAlignements(): void

calculateGraphicalContinuousDynamic

Protected calculateGraphicalInstantaneousDynamicExpression

Protected calculateGraphicalVerbalContinuousDynamic

Protected calculateLabel

Protected calculateLyricsExtendsAndDashes

Protected calculateMarkedAreas

  • calculateMarkedAreas(): void

Protected calculateMeasureNumberPlacement

  • calculateMeasureNumberPlacement(musicSystem: MusicSystem): void

calculateMeasureWidthFromLyrics

  • calculateMeasureWidthFromLyrics(measuresVertical: GraphicalMeasure[], oldMinimumStaffEntriesWidth: number): number

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

Protected calculateMoodAndUnknownExpression

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

Protected calculateMusicSystems

  • calculateMusicSystems(): void

Protected calculateMusicSystemsRelativePositions

Protected calculatePageLabels

Protected calculateRestNotePlacementWithinGraphicalBeam

Protected calculateSheetLabelBoundingBoxes

  • calculateSheetLabelBoundingBoxes(): void

Protected calculateSingleOctaveShift

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

Protected calculateSingleStaffLineLyricsPosition

Protected calculateSlurs

  • calculateSlurs(): void

Protected calculateSystemYLayout

  • calculateSystemYLayout(): void

Protected calculateTempoExpressionsForMultiTempoExpression

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 createMetronomeMark

findIndexGraphicalSlurFromSlur

Protected formatMeasures

  • formatMeasures(): void

Protected getRelativePositionInStaffLineFromTimestamp

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

Protected getRelativeXPositionFromTimestamp

  • getRelativeXPositionFromTimestamp(timestamp: Fraction): number

Protected graphicalMeasureCreatedCalculations

Protected handleBeam

Protected handleStaffEntryLink

Protected handleTiedGraphicalNote

Protected handleTuplet

Protected handleVoiceEntry

Protected handleVoiceEntryArticulations

Protected handleVoiceEntryLyrics

Protected handleVoiceEntryOrnaments

Protected handleVoiceEntryTechnicalInstructions

Protected initGraphicalMeasuresCreation

  • initGraphicalMeasuresCreation(): void

initialize

Protected layoutArticulationMarks

Protected layoutBeams

Protected layoutGraphicalTie

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

Protected layoutMeasureWithWholeRest

Protected layoutOrnament

Protected layoutSingleRepetitionEnding

Protected layoutStaffEntry

Protected layoutVoiceEntries

Protected layoutVoiceEntry

Protected maxInstrNameLabelLength

  • maxInstrNameLabelLength(): number

Protected optimizeDistanceBetweenStaffLines

  • optimizeDistanceBetweenStaffLines(musicSystem: MusicSystem): void

Protected optimizeRestNotePlacement

prepareGraphicalMusicSheet

  • prepareGraphicalMusicSheet(): void

Protected resetYPositionForLeadSheet

Protected updateStaffLineBorders

  • updateStaffLineBorders(staffLine: StaffLine): void

Protected updateStaffLinesRelativePosition

  • updateStaffLinesRelativePosition(musicSystem: MusicSystem, index: number, value: number): void

Static Protected setMeasuresMinStaffEntriesWidth

  • setMeasuresMinStaffEntriesWidth(measures: GraphicalMeasure[], minimumStaffEntriesWidth: number): void

Generated using TypeDoc