From cc7c940df1f903d8c0604f847dcf44870ebb5a48 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 14:55:53 +0000 Subject: [PATCH] Fix Drunken Sailor pitches, add pitch display, fix play-from-position, resizable code panel - Restored original pitches (D4, F4, A4) for Drunken Sailor M1-2 and (C4, E4, G4) for M3-4 while keeping corrected q-ee-q-ee rhythm - New "Pitch" toggle button shows note names (A4, C#5, etc.) below each note on the editor canvas using frequency-to-note-name lookup - Code labels now also show pitch name when available - Play-from-position redesigned: single click in header sets a yellow marker, double-click starts playback from that position. Preview button also starts from marker. Esc clears marker. - Header area enlarged to 32px for easier clicking - Code panel textarea now resizable (drag to expand/shrink), removed fixed max-height, canvas auto-resizes via ResizeObserver - Status bar shows note value name (quarter, eighth, etc.) for selection https://claude.ai/code/session_01AqTWV8hPy2XcGP5KY2Q8zv --- index.html | 116 +++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 94 insertions(+), 22 deletions(-) diff --git a/index.html b/index.html index 76e2b18..f609531 100644 --- a/index.html +++ b/index.html @@ -200,6 +200,7 @@ canvas{display:block;} + @@ -213,12 +214,12 @@ canvas{display:block;} Click=add | Click note=select | Drag=move | Drag right edge=resize duration | 1-5=set note value (whole/half/quarter/eighth/sixteenth) | D=add duration | Shift+D=remove | Shift+drag=select range | Ctrl+C/V=copy/paste | Ctrl+A=select all | Esc=deselect | Del=delete | Scroll=pan | Dbl-click header=play from here -