OpenSheetMusicDisplay
    Preparing search index...

    Class VexFlowMusicSystem

    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[] = []
    • creates an instrument group bracket for the given dimension. There can be cascaded brackets (e.g. a group of 2 in a group of 4): a nested group's bracket stands in the next column left of the outer group's (EngravingRules.GroupBracketColumnDistance), as does the brace of a multi-staff part inside the group (a brace is the outermost symbol, Gould, Behind Bars, p. 516; MuseScore and Dorico draw it so).

      Parameters

      • firstStaffLine: StaffLine

        the upper staff line of the bracket to create

      • lastStaffLine: StaffLine

        the lower staff line of the bracket to create

      • column: number

        the column of the bracket left of the staves, 0 beside them

      • groupSymbol: GroupSymbol

        the symbol to draw: bracket, brace, square (a thin line with right-angled hooks) or line

      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