- MIDI clock: the tempo was taken from one quarter beat (6 clocks) in whole
ms, so 1 ms of USB jitter showed 119/120/121 at 120 BPM and 227..234 at 230
(exact at slow tempos). It is now a least-squares fit through up to four
beats of quarter marks, and the shown BPM moves only 0.6 BPM or more away
(hysteresis). A quarter more than 1/16 off is held back: two the same way
are a new tempo (followed within a beat), a late clock and its early
neighbour are dropped. A gap (> 400 ms) starts a new window. The accepted
quarter is 55..400 ms (was 62..375, which dropped valid quarters at 240
and 40 BPM and biased the mean).
- Tests: midi_control_test tempo_jitter_test (40..240 BPM with 1 ms jitter
shown still; a late clock; 120 -> 140 within a beat). It fails on 1.19.0
(120 shown 118..122, 230 shown 221..238).
- Web: editor FW_LATEST 1.19.1, emulator and installer rebuilt.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94