Skip to content

Commit

Permalink
switch fret_labels back to conventional style
Browse files Browse the repository at this point in the history
* maybe bring 'friendly labels' back as a configurable option?
  • Loading branch information
tardate committed Nov 1, 2013
1 parent beb1ce9 commit eee21a8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion javascripts/jtab.js
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,10 @@ Raphael.fn.svg_params = function(x,y,l1,l2) {
// draw the fretboard
Raphael.fn.chord_fretboard = function ( position, chord_name ) {
var fret_left = this.current_offset + this.margin_left;
var fret_labels = [ '', '1fr', '2fr', '3fr', '4fr', '5fr', '6fr', '7fr', '8fr', '9fr', '10fr', '11fr', '12fr', '13fr', '14fr', '15fr', '16fr', '17fr', '18fr', '19fr', '20fr', '21fr', '' ];
// conventional fret labels
var fret_labels = [ '', '', '', 'III', '', 'V', '', 'VII', '', 'IX', '', '', 'XII', '', '', 'XV', '', 'XVII', '', 'XIX', '', 'XXI', '' ];
// alternative friendly fret labels. Currently disabled, maybe bring these back as a configurable option?
// var fret_labels = [ '', '1fr', '2fr', '3fr', '4fr', '5fr', '6fr', '7fr', '8fr', '9fr', '10fr', '11fr', '12fr', '13fr', '14fr', '15fr', '16fr', '17fr', '18fr', '19fr', '20fr', '21fr', '' ];

this.text( // chord name
fret_left + 2.5 * this.string_spacing,
Expand Down

0 comments on commit eee21a8

Please sign in to comment.