OpenSheetMusicDisplay
    Preparing search index...

    Class VexFlowMusicSheetCalculator

    Class used to do all the calculations in a MusicSheet, which in the end populates a GraphicalMusicSheet.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Accessors

    Methods

    calcGraphicalRepetitionEndingsRecursively calculate calculateAlignedChordSymbolsOffset calculateChordSymbols calculateComments calculateDynamicExpressionsForMultiExpression calculateElongationFactorFromStaffEntries calculateExpressionAlignements calculateFingerings calculateGlissandi calculateGraphicalContinuousDynamic calculateGraphicalInstantaneousDynamicExpression calculateGraphicalVerbalContinuousDynamic calculateLabel calculateLyricsExtendsAndDashes calculateMarkedAreas calculateMeasureNumberPlacement calculateMeasureWidthFromStaffEntries calculateMeasureXLayout calculateMoodAndUnknownExpression calculateMusicSystems calculatePageLabels calculateRehearsalMark calculateRestNotePlacementWithinGraphicalBeam calculateSheetLabelBoundingBoxes calculateSingleOctaveShift calculateSinglePedal calculateSingleStaffLineLyricsPosition calculateSkyBottomLines calculateSlurs calculateTempoExpressionsForMultiTempoExpression calculateTupletNumbers calculateWordRepetitionInstruction calculateXLayout checkMeasuresForWholeRestNotes clearRecreatedObjects clearSystemsAndMeasures createGraphicalTie createGraphicalTies createMetronomeMark findIndexGraphicalSlurFromSlur findLastStafflineMeasure formatMeasures getRelativePositionInStaffLineFromTimestamp getRelativeXPositionFromTimestamp graphicalMeasureCreatedCalculations handleBeam handleStaffEntryLink handleTiedGraphicalNote handleTuplet handleVoiceEntry handleVoiceEntryArticulations handleVoiceEntryLyrics handleVoiceEntryOrnaments handleVoiceEntryTechnicalInstructions indexOfGraphicalGlissFromGliss initGraphicalMeasuresCreation initialize layoutArticulationMarks layoutBeams layoutGraphicalTie layoutMeasureWithWholeRest layoutOrnament layoutSingleRepetitionEnding layoutStaffEntry layoutVoiceEntries layoutVoiceEntry maxInstrNameLabelLength optimizeRestNotePlacement prepareGraphicalMusicSheet resetYPositionForLeadSheet updateStaffLineBorders setMeasuresMinStaffEntriesWidth

    Constructors

    Properties

    beamsNeedUpdate: boolean = false
    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

    Methods

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