Capture articulated chirp-flash sweeps

This commit is contained in:
Meta Vens 2026-05-31 23:38:19 +01:00
commit 1177e783ff
6 changed files with 576 additions and 10 deletions

View file

@ -468,6 +468,17 @@ a named invariant that the native runtime cannot protect yet.
about 4 ms; `ffplay`/DirectShow audio startup is still too soft for final
physical latency authority, so native timestamped Scarlett playback/capture
remains the production timing cut.
The music-keyed calibration planner now owns articulated multimodal words:
`mimir.music_keyed_move_chirp_plan.v1` carries beat/key analysis, chirp
frequency contours, de Bruijn symbols, and per-Move sampled RGB visual
contour words. `tools/sync_sweep.py --music-plan` consumes that same plan
instead of inventing square flashes, sends the exact RGB samples over
Nightwing HID, and writes RGB video `visual_contour` decoder scores
(brightness correlation plus color-chroma error) into `summary.json`.
With a music plan, the sweep also runs Mimir perfect-machine live receipts
for the local Leap/Kiyo runtime and Raven/Eve receiver runtime unless
explicitly disabled, so the all-sensor run cannot accidentally omit Leap or
Eve merely because FFmpeg cannot archive them directly.
`MimirMoveControllerTracker` is the first Mimir-native overlay owner for the
streamable product shape: it tracks bright PS Move sphere observations from
PS3 Eye luma frames, keeps a bounded history per `controllerId`, preserves

View file

@ -197,6 +197,39 @@ accepted a short 80 Hz contour test on Nightwing, but the useful rate is the
rate cameras can recover cleanly, not merely the rate the controller accepts.
`--visual-gesture square` remains available as a baseline comparator.
`tools/sync_sweep.py` can now consume that exact plan with `--music-plan`.
That makes the plan the single authority for audio chirps, sampled Move RGB
contours, and offline video scoring. The sweep writes `gesture-plan.json`,
`event-schedule.json`, copied/rendered `chirp-train.wav`, per-sensor captures,
and `summary.json`. RGB camera receipts include a `visual_contour` block with
brightness-envelope correlation and color-chroma error against the expected
Move contour. The old peak-only score is still present as a timing witness; it
no longer pretends square flashes are the only visual language.
When `--music-plan` is used, the sweep also runs typed Mimir runtime sensor
receipts unless `--skip-mimir-live` is passed. The default receipts are:
- `config/mimir-runtime.perfect-machine.local.json` for local Leap stereo IR,
Kiyo Pro, Kiyo, and local camera texture/depth/field-resource ingress;
- `config/mimir-runtime.raven-eve.example.json` for Raven display and Eve
camera/mic frame-event listeners.
That receipt path is not raw media archival yet. It is the audit hook that
prevents Leap or Eve from being omitted by a DirectShow/Nightwing-only sweep.
After a sweep, run `tools/crunch_sync_sweep.py` over the sweep directory to
extract a compact calibration observation table. It merges Nightwing's typed
Move observations with local Kiyo/Kiyo Pro frame analysis, estimates each
local video's schedule shift against the event train, and writes
`calibration-observations.json` plus `calibration-observations.csv`.
Example using an already-written musical plan:
```powershell
& 'C:\Users\Meta\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe' .\tools\sync_sweep.py --music-plan artifacts/runtime/music-keyed-move-chirp-sync-live/music-keyed-move-chirp-plan.json --out-dir artifacts/runtime/all-sensor-articulated-sync
& 'C:\Users\Meta\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe' .\tools\crunch_sync_sweep.py artifacts/runtime/all-sensor-articulated-sync
```
The non-dry run targets the two wireless Nightwing Moves by default:
`00:07:04:a6:be:5f` on `/dev/hidraw2` and `00:06:f5:23:e2:d1` on
`/dev/hidraw3`. Nightwing now carries `/etc/udev/rules.d/70-move.rules`, which