Methods
addBool(attribute)
Add bool attribute
Parameters:
Name | Type | Description |
---|---|---|
attribute |
string | attribute of bool to add |
- Source:
addChord(chord)
Adds chord to this array of chords
Parameters:
Name | Type | Description |
---|---|---|
chord |
Chord | Chord object to add to this array of chords |
- Source:
copy(source)
Copies source attributes and chords into this objects attributes and chords
Parameters:
Name | Type | Description |
---|---|---|
source |
object | Source object must have attributesStr, attributesInt, attributesBool, chords |
Properties:
Name | Type | Description |
---|---|---|
source.attributesStr |
Map | Map relating String attributes to String values |
source.attributesInt |
Map | Map relating String attributes to Number values |
source.attributesBool |
Set | Set with String attributes |
source.chords |
Array.<Chord> | Array of Chord objects |
- Source:
copyAttributes(source)
Copies all string, int, and boolean attributes into this object
Parameters:
Name | Type | Description |
---|---|---|
source |
object | Source must have attributesStr, attributesInt, attributesBool |
Properties:
Name | Type | Description |
---|---|---|
source.attributesStr |
Map | Map relating String attributes to String values |
source.attributesInt |
Map | Map relating String attributes to Number values |
source.attributesBool |
Set | Set with String attributes |
- Source:
getInt(attribute) → {number}
Get int attribute
Parameters:
Name | Type | Description |
---|---|---|
attribute |
string | attribute of int to retrieve |
- Source:
Returns:
The value for the asked attribute
- Type
- number
removeInt(attribute)
Remove int attribute
Parameters:
Name | Type | Description |
---|---|---|
attribute |
string | attribute of int to remove |
- Source:
setInt(attribute, value)
Set int attribute
Parameters:
Name | Type | Description |
---|---|---|
attribute |
string | attribute of int to set |
value |
number | value of int to set |
- Source:
setStr(attribute, value)
Sets string attribute
Parameters:
Name | Type | Description |
---|---|---|
attribute |
string | attribute of string to set |
value |
string | value of string to set |
- Source:
toString() → {string}
Converts Measure to a pretty string
- Source:
Returns:
The pretty string representation of the measure
- Type
- string