Global

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
Source:
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
Source:
Returns:
Type
string

createJsonFromLines(tune) → {object}

Creates json object from abc tunes object
Parameters:
Name Type Description
tune object The parsed tune object
Source:
Returns:
Type
object

getAbcClef(sign) → {string}

Returns the key for abc notation from given fifths
Parameters:
Name Type Description
sign string The clef sign
Source:
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)
Source:
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
Source:
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
Source:
Returns:
Type
string

getJsonId(data) → {string}

Get id from abc string
Parameters:
Name Type Description
data
Source:
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
Source:
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
Source:
Returns:
Type
string

Measure()

Constructor for measure objects
Source: