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:
-
name
Object(string)
Returns:
JSON
retune
(
Array
-
offset
Returns a mapping -- an array of JSON with "original" chord name and "transposed" chord names.
Parameters:
-
offset
Object(int) optional
Returns:
Array:
shift
(
-
name
-
steps
Pass in a chord name returns new chord name for the original chord shifted by "steps" semitones.
Parameters:
-
name
Object(string) chord name, should be in chord dictionary
-
steps
Object(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
-
int
Objectsteps number of semitone steps (up or down)
Returns:
array
Properties
_public
Object
attach public members to this object