Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MusicSystem Abstract

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

Hierarchy

Index

Constructors

Properties

boundingBox: BoundingBox
breaksPage: boolean = false
graphicalComments: GraphicalComment[] = []
graphicalMarkedAreas: GraphicalMarkedArea[] = []
graphicalMeasures: GraphicalMeasure[][] = []
groupBrackets: GraphicalObject[] = []
id: number
instrumentBrackets: GraphicalObject[] = []
labels: default<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().

maxLabelLength: number
measureNumberLabels: GraphicalLabel[] = []
needsToBeRedrawn: boolean = true
objectsToRedraw: [Object[], Object][] = []
staffLines: StaffLine[] = []
systemLines: SystemLine[] = []

Accessors

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

Methods

  • GetLeftBorderAbsoluteXPosition(): number
  • GetRightBorderAbsoluteXPosition(): number
  • alignBeginInstructions(): void
  • calcBracketsWidth(): number
  • checkStaffEntriesForStaffEntryLink(): boolean
  • createGroupBracket(firstStaffLine: StaffLine, lastStaffLine: StaffLine, recursionDepth: number): void
  • createGroupBrackets(instrumentGroups: InstrumentalGroup[], staffHeight: number, recursionDepth: number): void
  • createInstrumentBrackets(instruments: Instrument[], staffHeight: number): void
  • createLinesForSystemLine(systemLine: SystemLine): void
  • createMusicSystemLabel(instrumentLabelTextHeight: number, systemLabelsRightMargin: number, labelMarginBorderFactor: number, isFirstSystem?: boolean): void
  • Create the Instrument's Labels (only for the first MusicSystem of the first MusicPage).

    Parameters

    • instrumentLabelTextHeight: number
    • systemLabelsRightMargin: number
    • labelMarginBorderFactor: number
    • isFirstSystem: boolean = false

    Returns void

  • createSystemLeftLine(lineWidth: number, systemLabelsRightMargin: number, isFirstSystem: boolean): void
  • isInstanceOfClass(className: string): boolean
  • setMusicSystemLabelsYPosition(): void
  • setYPositionsToVerticalLineObjectsAndCreateLines(rules: EngravingRules): void
  • updateMusicSystemStaffLineXPosition(systemLabelsRightMargin: number): void

Generated using TypeDoc