diff --git a/index.html b/index.html index 6da0bcc..e027127 100644 --- a/index.html +++ b/index.html @@ -151,52 +151,60 @@ function ChordDiagram({ name }) { const sh = CHORDS[name]; if (!sh) return null; - const NUM_FRETS=5, NS=6, W=320, H=200; - const TOP=44, BOT=H-24, LEFT=44, RIGHT=W-12; + // Three columns left of nut: + // col1=12 (string letter), col2=34 (open/muted symbol), nut at LEFT=60 + const NUM_FRETS=5, NS=6, W=320, H=210; + const TOP=44, BOT=H-22, LEFT=60, RIGHT=W-10; const strGap=(BOT-TOP)/(NS-1); const fretGap=(RIGHT-LEFT)/NUM_FRETS; const STRING_LABELS=["E","A","D","G","B","e"]; - - // Build note list from chord shape: open strings + fretted dots - const notes = []; - sh.open.forEach(s=>{ notes.push({str:s, fret:0, label:"o", muted:false}); }); - sh.muted.forEach(s=>{ notes.push({str:s, fret:-1, label:"x", muted:true}); }); - sh.dots.forEach(({s,f,n})=>{ notes.push({str:s, fret:f, label:n, muted:false, finger:true}); }); + const COL_LABEL=12, COL_MARKER=36; return (