Methods
addMeasure(measure)
Adds a measure to the list of measures
Parameters:
Name | Type | Description |
---|---|---|
measure |
Measure | Measure object to be added |
- Source:
copyAttributes(source)
Copies attributes from source
Parameters:
Name | Type | Description |
---|---|---|
source |
object | Source must have attributesStr |
Properties:
Name | Type | Description |
---|---|---|
source.attributesStr |
Map | Map relating String attributes to String values |
- Source:
copyMeasures(source)
Copies measures from source
Parameters:
Name | Type | Description |
---|---|---|
source |
object | Source must have measures array |
Properties:
Name | Type | Description |
---|---|---|
source.measures |
Array.<Measure> | Array of Measures |
- Source:
setStaffOption(option)
Sets the string option
Parameters:
Name | Type | Description |
---|---|---|
option |
string | String option to be set |
- Source:
toString() → {string}
Converts Staff to a pretty string
- Source:
Returns:
The pretty string representation of the staff
- Type
- string