Methods
convert(input)
Converts input from JSON to abc notation and saves to output file
Parameters:
Name | Type | Description |
---|---|---|
input |
input | The parsed input from input file |
convert2Abc(data) → {string}
Returns a string in abc notation from given data
Parameters:
Name | Type | Description |
---|---|---|
data |
object | The JSON data that should be transformed to abc |
Returns:
- Type
- string
getAbcKey(fifths, mode)
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) |
getAbcNote(note) → {string}
Returns a note in abc notation from given note object (JSON)
Parameters:
Name | Type | Description |
---|---|---|
note |
object | The note that should be transformed to abc |
Returns:
- Type
- string
getAbcString(input)
Returns the abc notation string from given input
Parameters:
Name | Type | Description |
---|---|---|
input |
object | The parsed input from input file |
readInput(file)
Reads the JSON eoncoded data from the specified input file
Parameters:
Name | Type | Description |
---|---|---|
file |
string | The path to the specified input file |
writeOutput(file, data)
Writes the abc notated string to the specified output file
Parameters:
Name | Type | Description |
---|---|---|
file |
string | The path to the specified output file |
data |
string | The data that should be written to the file |