OpenSheetMusicDisplay
    Preparing search index...

    Class MusicSystemAbstract

    A MusicSystem contains the [[StaffLine]]s for all instruments, until a line break

    Hierarchy (View Summary)

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

    maxLabelLength: number
    measureNumberLabels: GraphicalLabel[] = []
    needsToBeRedrawn: boolean = true
    objectsToRedraw: [object[], object][] = []
    staffLines: StaffLine[] = []
    systemLines: SystemLine[] = []
    • Check if two "adjacent" StaffLines have BOTH a StaffEntry with a StaffEntryLink. This is needed for the y-spacing algorithm.

      Returns boolean

    • Creates the bracket of a part group, from the given first staffline to the last one, in the given column left of the staves (see createGroupBrackets()): VexFlow's bracket, a brace, or a thin line with right-angled hooks (square) or without them (line), as the group symbol says.

      Parameters

      Returns void

    • Create a GroupBracket for each [[InstrumentalGroup]] with a group symbol (MusicXML group-symbol: a group without one draws nothing), and for the groups nested in it, which stand a column further left (EngravingRules.GroupBracketColumnDistance).

      Parameters

      • instrumentGroups: InstrumentalGroup[]
      • staffHeight: number
      • column: number

        the column of the brackets, left of the staves: 0 beside the staves, 1 for the groups nested in a bracketed group, and so on (the brackets drawn around the groups)

      Returns void

    • Create the system's labels left of its staves: the part names on the first system, the part abbreviations on later systems, and the names or abbreviations of part groups. Labels created before are replaced.

      Parameters

      • instrumentLabelTextHeight: number
      • systemLabelsRightMargin: number
      • labelMarginBorderFactor: number
      • isFirstSystem: boolean = false
      • labelsType: SystemLabelsEnum = SystemLabelsEnum.Default

        other labels than the default ones, e.g. when the part names leave the system's measures too little room (see EngravingRules.FitPartLabelsToMeasures)

      Returns void

    • Create the left vertical Line connecting all staves of the [[MusicSystem]].

      Parameters

      • lineWidth: number
      • systemLabelsRightMargin: number
      • isFirstSystem: boolean

      Returns void