notepat: space-release-press stutter grabs fresh ~500 ms chunk each time
Addresses "the spacebar still adds time" / "it should be possible to
quickly reverse again back and basically repeat myself" — the reverse-
playback capture window used to shrink with rapid re-presses because
`captureMs = now - reversePhaseStartMs`, and that delta is tiny when
the user taps space again right after releasing. With a short window
the snapshot had barely anything to reverse and the whole gesture felt
like dead silence.
Added a floor: every press grabs AT LEAST REVERSE_MIN_CAPTURE_MS
(500 ms) of recent audio regardless of when the previous press fired.
Also dropped the 40 ms captureMs-minimum bailout — no longer needed
once the floor is in place, and it was occasionally swallowing taps
that happened within 40 ms of a recently-released press.
Stutter flow now:
tap → reverse 500 ms
release → replay voice stops, capture ring resumes
tap → reverse SAME 500 ms again (minus the couple of ms since release)
release → …
repeat freely to loop the last gesture
output_history_paused keeps the ring FROZEN during each hold, so
the capture between rapid taps is dominated by the original
pre-press audio rather than any overdub — the stutter reads as a
true repeat rather than a fading collage.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>