This module is used to create scale diagram using SVG
demo: MajorScale.html
4 required parameters:
dots = [ [dotsOnSix],[dotsOnFive],[dotsOnFour],[dotsOnThree],[dotsOnTwo],[dotsOnOne] ]; array of arrays of fret locations on the strings from 6-1
root = [ [string,fret], [string,fret]...]; string/fret locations of root of the scale
nomberOFFrets = number of frets to draw in the diagram
id = the id of the span tag to place the diagram
optional parameter
offsetFret = [theFret, theNumber] optional fret number marker (on the side of the diagram)
This function creates a SVG scale diagram
(object)
an array of arrays of fret loactions on string from 6 to 1
(object)
= a two element array - [
[stringNum, fretLoc]
,
[stringNum, fretLoc]
...]
(number)
(string)
the id of the span tag to place the diagram
(object)
OPTIONAL
[theFret, theNumber]
fret number marker (on the side of the diagram)
// assumes the html page has a span with the id of 'scale0-1'
// CAGED forms - C form
ScaleDiagram([[1,2,4],[1,3,4],[1,3,4],[1,3],[1,2,4],[1,2,4]],[[5,4],[2,2]],6,"scale0-1");