name property

String? name
final

Creates a Staff with the given measures list.

lineCount defaults to 5 (standard CMN staff). Set to 1 for percussion, 4 for 4-string tablature, or 6 for guitar tablature.

If measures is omitted an empty list is used, and measures can be added later via add. Display name of the part this staff carries, e.g. 'Violin I'.

Corresponds to MusicXML <score-part><part-name> and MEI <staffDef><label>. Null when the source did not name the part.

Implementation

final String? name;