Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MusicSystem

A MusicSystem contains the StaffLines for all instruments, until a line break

Hierarchy

Index

Constructors

constructor

Properties

Protected boundingBox

boundingBox: BoundingBox

Protected graphicalComments

graphicalComments: GraphicalComment[] = []

Protected graphicalMarkedAreas

graphicalMarkedAreas: GraphicalMarkedArea[] = []

Protected graphicalMeasures

graphicalMeasures: GraphicalMeasure[][] = []

Protected groupBrackets

groupBrackets: GraphicalObject[] = []

Protected id

id: number

Protected instrumentBrackets

instrumentBrackets: GraphicalObject[] = []

Protected labels

labels: Dictionary<Instrument, GraphicalLabel> = new Dictionary<Instrument, GraphicalLabel>()

Dictionary of (Instruments and) labels. note that the key needs to be unique, GraphicalLabel is not unique yet. That is why the labels are labels.values() and not labels.keys().

Protected maxLabelLength

maxLabelLength: number

Protected measureNumberLabels

measureNumberLabels: GraphicalLabel[] = []

needsToBeRedrawn

needsToBeRedrawn: boolean = true

Protected objectsToRedraw

objectsToRedraw: [Object[], Object][] = []

Protected parent

Protected rules

Protected staffLines

staffLines: StaffLine[] = []

Protected systemLines

systemLines: SystemLine[] = []

Accessors

GraphicalComments

GraphicalMarkedAreas

GraphicalMeasures

GroupBrackets

Id

  • get Id(): number

InstrumentBrackets

Labels

MeasureNumberLabels

NextSystem

ObjectsToRedraw

  • get ObjectsToRedraw(): [Object[], Object][]

Parent

PositionAndShape

StaffLines

SystemLines

Methods

AddGraphicalMeasures

GetLeftBorderAbsoluteXPosition

  • GetLeftBorderAbsoluteXPosition(): number

GetRightBorderAbsoluteXPosition

  • GetRightBorderAbsoluteXPosition(): number

GetSystemsFirstTimeStamp

GetSystemsLastTimeStamp

alignBeginInstructions

  • alignBeginInstructions(): void

Protected calcBracketsWidth

  • calcBracketsWidth(): number

calculateBorders

checkStaffEntriesForStaffEntryLink

  • checkStaffEntriesForStaffEntryLink(): boolean

Protected createGroupBracket

  • createGroupBracket(firstStaffLine: StaffLine, lastStaffLine: StaffLine, recursionDepth: number): void

createGroupBrackets

  • createGroupBrackets(instrumentGroups: InstrumentalGroup[], staffHeight: number, recursionDepth: number): void

Protected createInstrumentBracket

createInstrumentBrackets

  • createInstrumentBrackets(instruments: Instrument[], staffHeight: number): void

Protected createLinesForSystemLine

  • createLinesForSystemLine(systemLine: SystemLine): void

createMusicSystemLabel

  • createMusicSystemLabel(instrumentLabelTextHeight: number, systemLabelsRightMargin: number, labelMarginBorderFactor: number): void
  • Create the Instrument's Labels (only for the first MusicSystem of the first MusicPage).

    Parameters

    • instrumentLabelTextHeight: number
    • systemLabelsRightMargin: number
    • labelMarginBorderFactor: number

    Returns void

createSystemLeftLine

  • createSystemLeftLine(lineWidth: number, systemLabelsRightMargin: number): void

Protected createSystemLine

createVerticalLineForMeasure

Private findFirstVisibleInstrumentInInstrumentalGroup

Private findLastVisibleInstrumentInInstrumentalGroup

getBottomStaffLine

setMusicSystemLabelsYPosition

  • setMusicSystemLabelsYPosition(): void

setYPositionsToVerticalLineObjectsAndCreateLines

  • setYPositionsToVerticalLineObjectsAndCreateLines(rules: EngravingRules): void

Private updateMusicSystemStaffLineXPosition

  • updateMusicSystemStaffLineXPosition(systemLabelsRightMargin: number): void

Generated using TypeDoc