Methods
convert2Abc(data) → {string}
Returns a string in abc notation from given data
Parameters:
Name | Type | Description |
---|---|---|
data |
object | The JSON string data that should be transformed to abc |
Returns:
- Type
- string
convert2JSON(data) → {string}
Returns a string in json notation from given abc data
Parameters:
Name | Type | Description |
---|---|---|
data |
object | The abc string that should be transformed to json |
Returns:
- Type
- string
createJsonFromLines(tune) → {object}
Creates json object from abc tunes object
Parameters:
Name | Type | Description |
---|---|---|
tune |
object | The parsed tune object |
Returns:
- Type
- object
getAbcClef(sign) → {string}
Returns the key for abc notation from given fifths
Parameters:
Name | Type | Description |
---|---|---|
sign |
string | The clef sign |
Returns:
- Type
- string
getAbcKey(fifths, mode) → {string}
Returns the key for abc notation from given fifths
Parameters:
Name | Type | Description |
---|---|---|
fifths |
number | The position inside the circle of fifths |
mode |
string | undefined | The mode (major / minor) |
Returns:
- Type
- string
getAbcNote(prevNote, curNote) → {string}
Returns a note in abc notation from given note object (JSON)
Parameters:
Name | Type | Description |
---|---|---|
prevNote |
object | The previous note |
curNote |
object | The note that should be transformed to abc |
Returns:
- Type
- string
getAbcString(input) → {string}
Returns the abc notation string from given input
Parameters:
Name | Type | Description |
---|---|---|
input |
object | The parsed input from input file |
Returns:
- Type
- string
getJsonId(data) → {string}
Get id from abc string
Parameters:
Name | Type | Description |
---|---|---|
data |
Returns:
- Type
- string
getKeyByValue(object, value) → {string}
Get object key by value
Parameters:
Name | Type | Description |
---|---|---|
object |
object | The object to search in |
value |
string | The value to search for |
Returns:
- Type
- string
getMusicJSON(input) → {string}
Returns the abc notation string from given input
Parameters:
Name | Type | Description |
---|---|---|
input |
object | The parsed input from input file |
Returns:
- Type
- string
Measure()
Constructor for measure objects