Port pico-scroll's live-sync to Rust (docs/livesync-protocol.md): - Reassemble SysEx from incoming USB-MIDI 4-byte packets (by Code Index Number); dispatch manufacturer 0x7D frames. - Version query 0x02 -> 0x03 'G;0.1.0' (editor now identifies the device). - HELLO 0x40 -> reply FULL; FULL 0x41 -> parse patch + running and adopt it; DELTA 0x42 -> apply play/stop/bpm/sel/beat; BYE 0x43 -> disarm. - Broadcast a DELTA from each on-device input (play/stop, sel, bpm) + a FULL heartbeat ~5s (track-format::serialize). Echo-guarded by a boot-derived origin; sync_applying flag suppresses re-broadcast while applying. - Unify all USB-MIDI TX (notes + SysEx) onto one tx_q drained one-per-poll. - defmt info! on every received op for probe debugging. Structural lane= edits aren't applied incrementally (arrive as a fresh FULL). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| assets/bravura | ||
| glyphgen | ||
| pm-grid | ||
| pm-kit | ||
| pm-ui | ||
| track-format | ||
| uisim | ||
| .gitignore | ||
| Cargo.toml | ||
| Containerfile | ||
| probe-flash.md | ||
| README.md | ||
| run.sh | ||
Rust port — track-format crate (Stage 1)
Pure parse/serialize codec for the track DSL, validated against the shared golden
vectors (tests/fixtures/track-format.json) — the third implementation alongside
engine.js and app.py. See docs/rust-port.md for the staged plan.
All tooling runs in a container (per the develop-in-container rule):
./rust/run.sh # cargo test — runs the conformance + idempotency suite
./rust/run.sh cargo build
./rust/run.sh bash # interactive shell in the crate