diff --git a/index.html b/index.html
index bbe9388..5d267ef 100644
--- a/index.html
+++ b/index.html
@@ -150,42 +150,67 @@ const SONG_LIBRARY = [
function ChordDiagram({ name }) {
const sh = CHORDS[name];
if (!sh) return null;
- const NX=8, NG=14, NS=6, NF=4, NY=18, FH=16;
- const W = NX*2 + NG*(NS-1), H = NY + FH*NF + 8;
+
+ const NUM_FRETS=5, NS=6, W=320, H=200;
+ const TOP=44, BOT=H-24, LEFT=44, RIGHT=W-12;
+ const strGap=(BOT-TOP)/(NS-1);
+ const fretGap=(RIGHT-LEFT)/NUM_FRETS;
+ const STRING_LABELS=["e","B","G","D","A","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}); });
+
return (
-
-
{name}
-
-