Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MusicSystemBuilder

Hierarchy

  • MusicSystemBuilder

Index

Properties

Private activeClefs

activeClefs: ClefInstruction[]

Private activeKeys

activeKeys: KeyInstruction[]

Private activeRhythm

activeRhythm: RhythmInstruction[]

Private currentMusicPage

currentMusicPage: GraphicalMusicPage

Private currentPageHeight

currentPageHeight: number

Private currentSystemParams

currentSystemParams: SystemBuildParameters

Private globalSystemIndex

globalSystemIndex: number = 0

Private graphicalMusicSheet

graphicalMusicSheet: GraphicalMusicSheet

Private leadSheet

leadSheet: boolean = false

Private measureList

measureList: StaffMeasure[]

Private measureListIndex

measureListIndex: number

Private numberOfVisibleStaffLines

numberOfVisibleStaffLines: number

Private rules

Private symbolFactory

Private visibleStaffIndices

visibleStaffIndices: number[]

Does the mapping from the currently visible staves to the global staff-list of the music sheet.

Methods

Private AddInstructionsAtMeasureBegin

  • AddInstructionsAtMeasureBegin(firstEntry: SourceStaffEntry, measure: StaffMeasure, visibleStaffIdx: number, isFirstSourceMeasure: boolean, isSystemStartMeasure: boolean): number

Private adaptRepetitionLineWithIfNeeded

  • adaptRepetitionLineWithIfNeeded(): void
  • If a line repetition is ending and a new line repetition is starting at the end of the system, the double repetition line has to be split into two: one at the currently ending system and one at the next system. (this should be refactored at some point to not use a combined end/start line but always separated lines)

    Returns void

Private addBeginInstructions

  • addBeginInstructions(measures: StaffMeasure[], isSystemFirstMeasure: boolean, isFirstSourceMeasure: boolean): number

Private addEndInstructions

Private addExtraInstructionMeasure

Private addInstructionsAtMeasureEnd

Private addMeasureToSystem

  • addMeasureToSystem(staffMeasures: StaffMeasure[], measureStartLine: SystemLinesEnum, measureEndLine: SystemLinesEnum, totalMeasureWidth: number, currentMeasureBeginInstructionsWidth: number, currentVarWidth: number, currentMeasureEndInstructionsWidth: number): void

Private addStaffLineToMusicSystem

  • addStaffLineToMusicSystem(musicSystem: MusicSystem, relativeYPosition: number, staff: Staff): void

Private addStaveMeasuresToSystem

  • addStaveMeasuresToSystem(staffMeasures: StaffMeasure[]): void

buildMusicSystems

  • buildMusicSystems(): void

Private calculateXScalingFactor

  • calculateXScalingFactor(systemFixWidth: number, systemVarWidth: number): number

Private checkAndCreateExtraInstructionMeasure

  • checkAndCreateExtraInstructionMeasure(measures: StaffMeasure[]): void

Private createMusicPage

Private decreaseMusicSystemBorders

  • decreaseMusicSystemBorders(): void

Private finalizeCurrentAndCreateNewSystem

  • finalizeCurrentAndCreateNewSystem(measures: StaffMeasure[], isPartEndingSystem?: boolean): void
  • When the actual source measure doesn't fit any more, this method finalizes the current system and opens up a new empty system, where the actual measure will be added in the next iteration.

    Parameters

    • measures: StaffMeasure[]
    • Default value isPartEndingSystem: boolean = false

    Returns void

Private getFullPageSystemWidth

  • getFullPageSystemWidth(): number

Private getLineWidth

Private getMeasureEndLine

Private getMeasureStartLine

Private getNextMeasureKeyInstruction

Private initMusicSystem

initialize

Private initializeActiveInstructions

  • initializeActiveInstructions(measureList: StaffMeasure[]): void

Private layoutSystemStaves

  • layoutSystemStaves(): void

Private nextMeasureBeginsLineRepetition

  • nextMeasureBeginsLineRepetition(): boolean

Private nextMeasureBeginsWordRepetition

  • nextMeasureBeginsWordRepetition(): boolean

Private nextMeasureHasKeyInstructionChange

  • nextMeasureHasKeyInstructionChange(): boolean

Private previousMeasureEndsLineRepetition

  • previousMeasureEndsLineRepetition(): boolean

Private setMeasureWidth

  • setMeasureWidth(staffMeasures: StaffMeasure[], width: number, beginInstrWidth: number, endInstrWidth: number): void

Private stretchMusicSystem

  • stretchMusicSystem(isPartEndingSystem: boolean): void

Private thisMeasureBeginsLineRepetition

  • thisMeasureBeginsLineRepetition(): boolean

Private thisMeasureEndsLineRepetition

  • thisMeasureEndsLineRepetition(): boolean

Private thisMeasureEndsWordRepetition

  • thisMeasureEndsWordRepetition(): boolean

Private transposeKeyInstruction

Private updateActiveClefs

Generated using TypeDoc