Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • MusicSystemBuilder

Index

Constructors

Properties

activeClefs: ClefInstruction[]
activeKeys: KeyInstruction[]
activeRhythm: RhythmInstruction[]
currentSystemParams: SystemBuildParameters
globalSystemIndex: number = 0
graphicalMusicSheet: GraphicalMusicSheet
leadSheet: boolean = false
measureList: GraphicalMeasure[][]
measureListIndex: number
musicSystems: MusicSystem[] = []
numberOfVisibleStaffLines: number
visibleStaffIndices: number[]

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

Methods

  • AddInstructionsAtMeasureBegin(firstEntry: SourceStaffEntry, measure: GraphicalMeasure, visibleStaffIdx: number, isFirstSourceMeasure: boolean, isSystemStartMeasure: boolean): number
  • 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

  • addBeginInstructions(measures: GraphicalMeasure[], isSystemFirstMeasure: boolean, isFirstSourceMeasure: boolean): number
  • addMeasureToSystem(graphicalMeasures: GraphicalMeasure[], measureStartLine: SystemLinesEnum, measureEndLine: SystemLinesEnum, totalMeasureWidth: number, currentMeasureBeginInstructionsWidth: number, currentVarWidth: number, currentMeasureEndInstructionsWidth: number): void
  • addStaffLineToMusicSystem(musicSystem: MusicSystem, relativeYPosition: number, staff: Staff): void
  • calculateMusicSystemsRelativePositions(): void
  • calculateSystemYLayout(): void
  • calculateXScalingFactor(systemFixWidth: number, systemVarWidth: number): number
  • decreaseMusicSystemBorders(): void
  • finalizeCurrentAndCreateNewSystem(measures: GraphicalMeasure[], systemEndsPart?: boolean, checkExtraInstructionMeasure?: boolean, startNewPage?: 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: GraphicalMeasure[]
    • systemEndsPart: boolean = false
    • checkExtraInstructionMeasure: boolean = true
    • startNewPage: boolean = false

    Returns void

  • finalizeCurrentSystem(measures: GraphicalMeasure[], systemEndsPart?: boolean, checkExtraInstructionMeasure?: boolean, startNewPage?: boolean): void
  • getFullPageSystemWidth(): number
  • nextMeasureBeginsLineRepetition(): boolean
  • nextMeasureBeginsWordRepetition(): boolean
  • nextMeasureHasKeyInstructionChange(): boolean
  • optimizeDistanceBetweenStaffLines(musicSystem: MusicSystem): void
  • previousMeasureEndsLineRepetition(): boolean
  • setMeasureWidth(graphicalMeasures: GraphicalMeasure[], width: number, beginInstrWidth: number, endInstrWidth: number): void
  • stretchMusicSystem(systemEndsPart: boolean): void
  • thisMeasureBeginsLineRepetition(): boolean
  • thisMeasureEndsLineRepetition(): boolean
  • thisMeasureEndsWordRepetition(): boolean
  • updateStaffLinesRelativePosition(musicSystem: MusicSystem, index: number, value: number): void

Generated using TypeDoc