ukeGeeks.transpose Class
Can shift a single chord or list of chords up/down by a series of steps. Hangles finding equivalent chord names (i.e. A# is same as Bb)
Methods
getTone
-
name
Returns object with name (A - G with flat/sharp), integer value (0 - 11), and its "suffix" (minor, 7th, etc)
Parameters:
-
nameObject(string)
Returns:
JSON
retune
-
offset
Returns a mapping -- an array of JSON with "original" chord name and "transposed" chord names.
Parameters:
-
offsetObject(int) optional
Returns:
shift
-
name -
steps
Pass in a chord name returns new chord name for the original chord shifted by "steps" semitones.
Parameters:
-
nameObject(string) chord name, should be in chord dictionary
-
stepsObject(int) number of semitones to transpose
Returns:
string
shiftChords
-
array<strings> -
int
returns copy of input string array shifted by number of steps
Parameters:
-
array<strings>Objectchords chord names to be shifted
-
intObjectsteps number of semitone steps (up or down)
Returns:
array
Properties
_public
Object
attach public members to this object
