metronome/rust
Me Here 802e46f5bb pm-daisy: wire Pod controls (encoder/buttons/knobs/RGB LEDs)
The Daisy Pod hardware arrived (Seed 1.2 / PCM3060). Build the controls
phase on top of the audio spike: encoder turn = tempo, push = play/pause,
buttons step the program list, knob 1 = volume, RGB LED 1 = beat colored
by dynamic, RGB LED 2 = transport. Boot still plays the spike groove so
the spike's decision criteria stay observable.

- pm-synth: add Player::{position,seek,set_volume,last_level} + Synth::
  set_master, with host tests (tests/player.rs). Live tempo/program
  changes rebuild the Player in thread context and swap it in under a
  short critical section, preserving loop phase (seek) on tempo changes.
- pm-daisy: SysTick 1 kHz millis tick, non-blocking beat flash, and
  PLAYING/VOLUME/LAST_LEVEL atomics the audio IRQ honors/publishes.
- New modules controls.rs (buttons/encoder/pots, libDaisy debounce +
  quadrature decode, 1 kHz poll), leds.rs (active-low RGB + boot
  self-test), programs.rs (spike groove at index 0 + pm-grid grooves).
- Pin map verified against libDaisy daisy_pod.cpp + the daisy crate's
  pins.rs. Builds clean for all three Seed revisions; 91 KB/128 KB flash.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-10 20:04:59 -05:00
..
assets/bravura Add untracked notation deliverables (build/compile depend on these) 2026-06-02 13:46:45 -05:00
glyphgen Add untracked notation deliverables (build/compile depend on these) 2026-06-02 13:46:45 -05:00
pm-daisy pm-daisy: wire Pod controls (encoder/buttons/knobs/RGB LEDs) 2026-06-10 20:04:59 -05:00
pm-grid pm-grid: start main.rs modularization (extract fonts module) 2026-06-04 11:24:09 -05:00
pm-kit Preserve notation + grammar feature work (verified complete + green) 2026-06-02 13:45:26 -05:00
pm-synth pm-daisy: wire Pod controls (encoder/buttons/knobs/RGB LEDs) 2026-06-10 20:04:59 -05:00
pm-ui Add untracked notation deliverables (build/compile depend on these) 2026-06-02 13:46:45 -05:00
synthrender pm-daisy: Daisy Pod spike — play the click engine on STM32H7 (host-verified, awaiting hardware) 2026-06-05 11:41:10 -05:00
track-format Preserve notation + grammar feature work (verified complete + green) 2026-06-02 13:45:26 -05:00
uisim Preserve notation + grammar feature work (verified complete + green) 2026-06-02 13:45:26 -05:00
.gitignore Add untracked notation deliverables (build/compile depend on these) 2026-06-02 13:46:45 -05:00
Cargo.toml pm-daisy: Daisy Pod spike — play the click engine on STM32H7 (host-verified, awaiting hardware) 2026-06-05 11:41:10 -05:00
Containerfile pm-daisy: Daisy Pod spike — play the click engine on STM32H7 (host-verified, awaiting hardware) 2026-06-05 11:41:10 -05:00
probe-flash.md rust: probe-flash.md — flash+defmt via Pi Debug Probe in a Silverblue toolbox 2026-06-01 08:49:02 -05:00
README.md Rust port Stage 1: track-format codec crate (passes the golden vectors) 2026-05-31 18:36:59 -05:00
run.sh pm-kit: defmt+probe-rs diagnostics + flip-link toolchain 2026-06-01 08:30:35 -05:00

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