Found by sweeping the rest of the gear for #71's bug class, which turned out to have a sibling living in the Bridge. `MidiStream._reader` did `q.put_nowait(ev)` and on `queue.Full` silently `pass`ed. That keeps 512 stale events and throws away the one that just happened -- exactly backwards for MIDI state, where the newest value IS the truth. A dashboard tab that stalled for ~1.3 s at 400 CC/s would fill its queue and then display frozen values for the rest of the set, with no error logged anywhere. Same failure shape as the LEDs: nothing breaks, it just quietly stops telling you the truth. Downstream, `_sse_midi` wrote and flushed once per event, so one fader sweep cost ~400 HTTP flushes a second per open tab, each with its own json.dumps. Fixed the way the LCXL painter was: drop-OLDEST on a full queue, and batch a frame's worth of events into a single write. New `coalesce()` folds the batch on one rule -- CONTINUOUS controls (CC, pitchbend, aftertouch) are STATE and may be superseded by a newer value; NOTES are EVENTS and may never be dropped. That distinction is the whole point: a fast monitor that loses a note is strictly worse than a slow one, so the tests assert every note survives a flood of 100 controller messages. Order is preserved by overwriting a superseded value where it stood rather than moving it to the end, so the monitor still reads as a timeline. The wire format is unchanged (one `data:` line per event), so ui/index.html's onmessage/JSON.parse is untouched. Also extracted `_fanout` so the drop policy is testable without ALSA. A green test on `parse_line` proved nothing about the queue behaviour behind it -- verify the seam. 8 new tests, 32 green in tools/bridge.
| Name |
Last commit
|
Last update |
|---|---|---|
| .gitea/workflows | Loading commit data... | |
| armada | Loading commit data... | |
| blocks | Loading commit data... | |
| blog | Loading commit data... | |
| copycat | Loading commit data... | |
| docs | Loading commit data... | |
| gifts | Loading commit data... | |
| lib-parvagues | Loading commit data... | |
| live | Loading commit data... | |
| output | Loading commit data... | |
| releases | Loading commit data... | |
| sandbox | Loading commit data... | |
| study | Loading commit data... | |
| test | Loading commit data... | |
| tools | Loading commit data... | |
| utils | Loading commit data... | |
| visuals/slop | Loading commit data... | |
| viz | Loading commit data... | |
| .gitignore | Loading commit data... | |
| BootTidal.hs | Loading commit data... | |
| BootTidal.hs.broken | Loading commit data... | |
| BootTidal.visuals.broken.hs | Loading commit data... | |
| CLAUDE.md | Loading commit data... | |
| FOH_MASTER.md | Loading commit data... | |
| LICENSE | Loading commit data... | |
| PatchBay_MultiChannel.xml | Loading commit data... | |
| PatchBay_Perf.xml | Loading commit data... | |
| PatchBay_Perf5.1.xml | Loading commit data... | |
| README.md | Loading commit data... | |
| RUNBOOK.md | Loading commit data... | |
| SHOPPING_LIST.md | Loading commit data... | |
| backlog.md | Loading commit data... | |
| bullet_train.tidal | Loading commit data... | |
| collide.sh | Loading commit data... | |
| debug.tidal | Loading commit data... | |
| didacticpatternvisualizer.pde | Loading commit data... | |
| gig-up.sh | Loading commit data... | |
| gpu-mode.sh | Loading commit data... | |
| hello.sc | Loading commit data... | |
| init_midi.sh | Loading commit data... | |
| intro.md | Loading commit data... | |
| library.txt | Loading commit data... | |
| link_jack.sh | Loading commit data... | |
| link_samples.sh | Loading commit data... | |
| link_samples_all.txt | Loading commit data... | |
| main_fairbanks.scd | Loading commit data... | |
| notes.md | Loading commit data... | |
| parvagues-sc.service | Loading commit data... | |
| perf-audio.sudoers | Loading commit data... | |
| perf-tray.py | Loading commit data... | |
| perf.sh | Loading commit data... | |
| samples.txt | Loading commit data... | |
| setlist_opal2026.txt | Loading commit data... | |
| start_and_midi.scd | Loading commit data... | |
| test.tidal | Loading commit data... |