ukeGeeks.chordImport.chordParts Class
Internal storage of partially converted "define" statements. The Definition (string) and addIn (array
Constructor
ukeGeeks.chordImport.chordParts
()
private
Item Index
Methods
Properties
Methods
_addInDots
-
dots -
adds
If a valid "add" instruction is present pushes a new dot object into dots array.
Parameters:
-
dotsarray -
addsArrayarray of "add instruction" to be parsed (i.e. "add: string G fret 1 finger 1")
Returns:
_fretOMatic
-
text -
frets -
muted
TODO: Change will affect "packed" chord fingers -- spaces required. No longer accepts "frets 1231", it must be "frets 1 2 3 1" Replaces _getFrets. Sets frets and muted arrays.
Parameters:
-
textStringstring to be searched
-
fretsArray -
mutedArray
Returns:
_getAddIns
-
txt
TODO:
Parameters:
-
txtString
Returns:
_getExpandedChord
-
text -
adds
TODO:
Parameters:
-
textType -
addsType
Returns:
_getFingers
-
text
TODO:
Parameters:
-
textStringstring to be searched
Returns:
_getInstrument
-
text
TODO:
Parameters:
-
textStringSingle statement to be searched
Returns:
_getKey
-
name -
tuning
TODO:
Parameters:
-
nameString -
tuningArray
Returns:
_getName
-
text
TODO:
Parameters:
-
textStringSingle statement to be searched
Returns:
_getTuning
-
text
TODO: expects FOUR strings.
Parameters:
-
textStringSingle statement to be searched
Returns:
_lineToParts
-
line
TODO:
Parameters:
-
lineStringSingle line (string with one statment)
Returns:
_log
-
msg
Add an error. As one would with console.log("blah").
Parameters:
-
msgStringError message to be added
Returns:
_partsToChords
-
parts
TODO:
Parameters:
-
partsType
Returns:
_textToParts
-
line
TODO:
Parameters:
-
lineArrayArray of lines (stings) each wtih one statment
Returns:
_toDots
-
frets -
fingers
Pass in integer arrays, frets is list of frets, plus corresponding fingers array
Parameters:
-
fretsArray -
fingersArray
Returns:
array of dots
runBlock
-
text
Returns array of expandedChord objects (JSON), converted from text input.
Parameters:
-
textStringMultiline text block containing definition, instrument, and tuning statements.
Returns:
runLine
-
line
Returns an expandedChord object (JSON) converted from single statement text input line.
Parameters:
-
lineStringSingle line (string with one statment)
Returns:
Properties
regEx
JSON Object of Regular Expressions
private
All regular expressions used in this class. Note, Changed parsing from "\n" to "{" which means "define: ..." cannot depend on that opening curly-brace!
