Customize your installation. This JSON object controls appearance and HTML element names. It's divided into four sections: graphics, ids, layout, and "options".
TODO: determine minimum font size... 5pt/px?
see scale method's parameter
TODO: determine minimum value... 1?
see scale method's parameter
Scales the standard chord diagram's dimensions and font sizes by multiplying all falues by passed in value. Note: this is currently a destructive change: no backup of original values is retained.
attach public members to this object
Chord Diagram Colors for fretboard's grid lines and text. Don't use shorthand (i.e. "#0ff") as this might cause a problem with IE canvas.
List of common chords to be "ignored" (won't show master chord diagrams)
The initial tuning when page first loads, used in scriptasaurus.init.
set in scriptasaurus. True if UserAgent is Internet Explorer
Chord Diagram Font styles -- font size, font-weight, font-face stack, etc.
Dot (finger position) radius in pixels
Row Height -- vertical height between frets (pixels)
Chord Box's Bounding height
Fretboard line width in pixels
True if chord name and finger "number" are to be drawn on canvas. By default normal chord diagrams have text (TRUE) whereas inlineDiagrams (i.e. chord diagrams shown above lyrics) do NOT as they are too small (thus inlineFretbox.showText is FALSE)
String Spacing -- horizontal distance between strings (pixels)
top-left position -- the offset for chord box. Doing this programatically had "issues", decided to make this adjustment manual.
Chord Box's Bounding width
muted string "X" stroke thickness. Recommend this be about 1.3 to 2.1 relative to lineWidth
muted string "X" width of the 'X' crossbars. Recommend this be about 0.5 to 0.9 relative to stringSpace.
ID's of key HTML page elements
If TRUE the Chord Digram is drawn ABOVE lyrics
Layout of Chord Digrams when inlineFredBoxes are being used. Identical in structure to "fretBox". See fretBox for properties.
Number of frets to draw. Default is 5 (as this is as wide as my hand can go and I've never seen a chord diagram requiring more than this. But ya never know.
Options (Features) you can turn on or off
if TRUE chords that overlap each other (in the music area) will have their spacing adjuste to prevent overlapping.
if TRUE chords in the "commonChords" list will be ignored (excluded) from having thier master chord diagram drawn
the [ and ] surrounding chord names often looks bad in print (usually only good when inline) set true to keep then, false to get rid of the buggers.
If true chord reference diagrams are sorted alphabetically, otherwise chords are shown in the order in which they appear within the song.
TODO: Clean-up Tab Options!!
Array of string names, changes between baritone and soprano
CSS Class names used to find page elements-- be careful if renaming!