notepat (native): keep audio-history ring frozen between reverse-replay gestures
Symptom: press space → reverse-play recent audio. Release. Press space
again with no notes played in between → expected the same buffer
content, instead the head of the loop is silent ("space is adding
time").
Cause: space-release was calling setCapturePaused(false), which
unfroze the ring write_pos. Between release and the next press, the
ring kept advancing — capturing real-time silence (no notes were
playing). The next reverse press played that silence back at the
front of the loop.
Fix: drop the setCapturePaused(false) from space-release entirely.
The ring stays frozen. Lazily unpause at the note-trigger site
(idempotent) so capture re-arms exactly when content the user actually
plays starts hitting the speakers — and not a moment before. Press →
release → press now reverses the same content as the first press,
and any notes played between releases are captured normally.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>