Make chirplet sync continuous

This commit is contained in:
Meta Vens 2026-05-22 13:24:38 +01:00
commit 643581a22e
10 changed files with 413 additions and 440 deletions

View file

@ -42,11 +42,10 @@ a named invariant that the native runtime cannot protect yet.
- `native/probes/wasapi_audio_cadence` captures WASAPI mic or render-loopback
block metadata and emits `audio-block` JSON events for the diagnostic runtime
adapter.
- `MimirChirpletCalibrationPhrase` owns the structured birdsong-like calibration
phrase, PCM rendering, matched timing trace, and per-band response kernels.
The default timeline is a stateless 16-phrase cycle; phrase `N` is generated
from `N`, spreads six chirplets across about 0.85 seconds, and fires every
2.25 seconds to reduce repeated-sweep ambiguity.
- `MimirChirpletTimeline` owns the structured birdsong-like calibration stream,
PCM segment rendering, matched timing trace, and per-band response kernels.
The default timeline is deterministic and unbounded: chirplet event `N` is
generated from `N`, with no repeat cycle or remembered random state.
- `MimirAudioSynchronizationAnalyzer` ports the first live sync measurement:
sample-bearing audio blocks are resampled into the Scarlett loopback timeline
and compared by chirplet-energy delay estimation with fractional peak
@ -59,8 +58,8 @@ a named invariant that the native runtime cannot protect yet.
response evidence, and delay-slope/SRO estimate in ppm.
- `MimirRuntime` updates audio sync analysis online and can emit live sync
telemetry with `MIMIR_SYNC_TELEMETRY_SECONDS`.
- `MimirRuntime` emits short calibration chirplets through Aquarium audio so the
loopback and acoustic mic buffers carry a shared timing witness.
- `MimirRuntime` continuously queues chirplet timeline PCM through Aquarium
audio so the loopback and acoustic mic buffers carry a shared timing witness.
- `MimirVideoFrameDescriptor` for dimensions, pixel format, stride, device
timestamp, and native/GPU handle metadata.
- `IMimirVideoCaptureDriver` and `MimirVideoCaptureDriverSource` as the live
@ -98,8 +97,8 @@ a named invariant that the native runtime cannot protect yet.
fractional delay line per non-reference stream from the smoothed
`MimirAudioSynchronizationState`. The current aligned frame is integer-delay
only and should not pretend to be the final DSP path.
First, make the live app acoustic lock robust enough to populate sync state
from the online chirplet timeline, not just from smoke harnesses.
First, harden the online state filter so the continuous chirplet lock stops
producing jumpy delay estimates.
5. Bind Aquarium UI to the synchronization hub so buffer depth, stream cadence,
source timestamps, and output settings are visible and adjustable.
6. Move GPU feature extraction, fusion, material fitting, render budgeting, and