From 4df86398f7a693be1e816cacbede699c9985accb Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 15:16:04 +0000 Subject: [PATCH] Fix editor: select vs add, pitch editing, reset preserving freq, code panel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Major interaction fix: - Single click now SELECTS nearest note in same lane (not adds) - Double-click on empty space adds a new note - Hit detection has larger padding (+6px each side) for easier clicking - Nearby-note search fallback: clicks within half-beat snap to closest note Pitch editing: - Shift+Up/Down = change pitch by one semitone - Ctrl+Shift+Up/Down = change pitch by one octave - Status bar shows current pitch (e.g. A4) and available shortcuts Bug fixes: - Reset now preserves frequency (f) field — pitch info no longer lost - Code panel has max-height:45vh with overflow scroll, textarea resizable - Canvas has min-height:200px so it never gets fully squished - Help text updated to reflect new click=select, dbl-click=add behavior https://claude.ai/code/session_01AqTWV8hPy2XcGP5KY2Q8zv --- index.html | 86 +++++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 62 insertions(+), 24 deletions(-) diff --git a/index.html b/index.html index f609531..b885cfd 100644 --- a/index.html +++ b/index.html @@ -211,15 +211,15 @@ 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 + Click=select | Dbl-click=add note | Drag=move | Drag edge=resize | 1-5=note value | Shift+↑↓=pitch | ↑↓=lane | ←→=nudge time | D=+dur | Shift+D=-dur | Shift+drag=select range | Ctrl+C/V=copy/paste | Del=delete | Scroll=pan | Click header=set start | Dbl-click header=play from there
-