notepat: smooth release, teal wave, aligned needle, status chips
Five polish passes from live-test feedback:
1. Release animates instead of snapping
waveViewOffsetSec now eases out over ~15-20 frames when space is
released (0.18 factor + 0.25 frame bias), so the needle visibly
sweeps back to live instead of jumping in a single frame. sim()
handles the lerp; the key-up path just clears spacePressStartMs +
un-pauses the capture ring. Re-engages cleanly if space is
pressed again mid-catch-up (elapsed-since-press overrides).
2. Waveform strip palette: cool teal → cyan-bright
drawStrip's warm red/orange ramp swapped for
r = 40 + peak × 180
g = 160 + peak × 90
b = 200 + peak × 55
Deep teal at low peaks, cyan-white at high. Keeps the red/green
needles clearly legible on top and reads less "alarm-y" against
the strip's dark-purple background.
3. Green press-needle aligned to red needle X exactly
Removed the ±1 px shake offset that was splitting the overlay
into a second vibrating bar. Green now draws at the same needle_x
as the C-rendered red, so it's literally "same line, different
color" — the underlying red shows through during the dim half of
the 15 Hz blink, giving a subtle red↔green pulse rather than two
separate bars.
4. Status bar chips
USB MIDI / UDP MIDI / FPS moved from the left-side statusWrite
stream to colored-background chips on the right side, between
brightness and the rest of the right-hand group:
… [brt] [vol] [FPS:60] [UDP ok] [USB on] [time] [bat]
Each chip has a tinted fill (green when active, amber when
connecting, gray when disabled) + matching text color, a bottom
accent for tactility, and a tiny gap between chips. The left-
status area is now just auto-update messages + last-key readout,
so key-press info no longer bumps into state indicators.
5. Volume + brightness bars thicker + bordered
Bumped height from 3 → 6 px and added a 1-px top/bottom border
so the max-range track is unambiguous — you can see how far
the slider can drag at a glance. Fill color got a small palette
tune (cooler for volume, warmer amber for brightness).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>