83b8fff74b
Phase-lock: reset the overdub recorder write heads (requestReset) and the player play-heads (playTrigger rising edge) synchronously in startPlayback so both re-anchor on the same audio block, instead of deferring the trigger an extra run-loop turn; playTrigger is zeroed on every stop for a clean 0→1 edge. This also makes overdub actually record under NRT. Reverse vs overdub: overdub records forward-in-time and can't follow a reversed play-head. Block engaging overdub while reversed, and make Reverse a toggleReverse() action that ends any active overdub when engaging reverse (the footswitch keeps its LED via indicator: $reverse). resetLoop: gate isPlaying off before clear() so the buffer-clear overlaps at most one in-flight RT block; corrected the rationale comment. Docs: fix stale $overdubOn / .empty / .recording references. Tests: overdubbingTrackAAddsEnergyToTheLoop (NRT overdub records), overdubBlockedWhileReversed, engagingReverseWhileOverdubbingEndsOverdub. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>