Use quadrature chirplet timing
This commit is contained in:
parent
0a169c4315
commit
bd9659e9d2
8 changed files with 134 additions and 85 deletions
|
|
@ -100,9 +100,10 @@ The actual Mimir app path now runs this online: `MimirRuntime.Update` keeps the
|
|||
chirplet timeline queued, polls sources, and updates sync analysis on a fixed cadence.
|
||||
`MIMIR_SYNC_TELEMETRY_SECONDS` enables console telemetry for live tests. Current
|
||||
runtime testing proves Aquarium output wakes the Scarlett loopback and the mic
|
||||
buffers stay live. The next failure is decoder precision: symbol separation and
|
||||
sub-frame timing must make canonical anchors stable enough to drive the
|
||||
actuator directly.
|
||||
buffers stay live. The decoder now uses quadrature chirplet atoms so symbol
|
||||
classification is phase-invariant at the transform layer. The next failure is
|
||||
physical capture proof: the same canonical anchors need to stay stable through
|
||||
loopback, room mics, device clocks, and codec/network paths.
|
||||
|
||||
## Chirplet Calibration Model
|
||||
|
||||
|
|
@ -143,11 +144,15 @@ contribute so poor mic frequency response does not erase the whole code.
|
|||
`MimirChirpletSymbolCodebook` owns the symbol definitions so timeline ordering
|
||||
does not smuggle acoustic shape decisions into bit arithmetic. Every symbol has
|
||||
a unique chirp shape; rhythm remains additional evidence, not a substitute for
|
||||
symbol separability. A synthetic runtime check rendered two seconds of canonical
|
||||
timeline audio and decoded all 15 emitted chirps into 13 possible triplet
|
||||
anchors, events 0 through 12, with a fitted clock near 48 kHz. Real device runs
|
||||
still depend on loopback capture staying live; the local Scarlett loopback has
|
||||
intermittently stopped advancing during short headless sniffs.
|
||||
symbol separability. The transform uses sine/cosine chirplet kernels for each
|
||||
symbol, so timing does not depend on the receiver preserving the emitter's
|
||||
absolute phase. Run `dotnet run --project .\src\Mimir.BufferSmoke\Mimir.BufferSmoke.csproj -- --chirplet-self-test`
|
||||
to render two seconds of canonical timeline audio and decode it back to
|
||||
timeline anchors. Current synthetic proof detects all 15 emitted chirps, keeps
|
||||
13 possible triplet anchors for events 0 through 12, fits the clock at
|
||||
47999.999990 Hz, and holds mean absolute anchor error to 0.000014 samples. Real
|
||||
device runs still depend on loopback capture staying live; the local Scarlett
|
||||
loopback has intermittently stopped advancing during short headless sniffs.
|
||||
|
||||
Next, replace the diagnostic bridge with native audio capture workers that
|
||||
append typed blocks into `Mimir.Runtime`, then expose buffer depth, clock state,
|
||||
|
|
|
|||
|
|
@ -38,7 +38,9 @@ a named invariant that the native runtime cannot protect yet.
|
|||
the same camera set once per stream.
|
||||
- `src/Mimir.BufferSmoke` loads the runtime config, polls the synchronization
|
||||
hub, and prints the actual rolling buffers. Use `--require-samples` when an
|
||||
empty declared sensor buffer should fail the run.
|
||||
empty declared sensor buffer should fail the run. Use `--chirplet-self-test`
|
||||
to render the canonical timeline into memory and verify that the constrained
|
||||
decoder recovers sub-frame anchors without hardware.
|
||||
- `native/probes/wasapi_audio_cadence` captures WASAPI mic or render-loopback
|
||||
block metadata and emits `audio-block` JSON events for the diagnostic runtime
|
||||
adapter.
|
||||
|
|
@ -53,9 +55,9 @@ a named invariant that the native runtime cannot protect yet.
|
|||
a unique chirp shape, with inter-chirp rhythm as additional code evidence.
|
||||
- `MimirChirpletStreamDecoder` is the first constrained chirplet-transform
|
||||
receiver. It owns a bounded PCM window, emits transform frames with multiple
|
||||
symbol candidates and per-candidate refined sample offsets, decodes code-valid
|
||||
triplet anchors through a local trellis that requires gap and clock coherence,
|
||||
and fits a per-source sample clock from those anchors.
|
||||
phase-invariant symbol candidates and per-candidate refined sample offsets,
|
||||
decodes code-valid triplet anchors through a local trellis that requires gap
|
||||
and clock coherence, and fits a per-source sample clock from those anchors.
|
||||
- `MimirAudioSynchronizationAnalyzer` ports the first live sync measurement:
|
||||
sample-bearing audio blocks are resampled into the Scarlett loopback timeline.
|
||||
The analyzer derives delay only from matched decoded triplet timeline anchors.
|
||||
|
|
@ -105,9 +107,10 @@ a named invariant that the native runtime cannot protect yet.
|
|||
workers for local mic, loopback, and network audio feeds.
|
||||
4. Add the synchronization actuator: drive a variable-rate resampler and
|
||||
fractional delay line per non-reference stream from the smoothed
|
||||
`MimirAudioSynchronizationState`. First, finish the constrained chirplet-transform decoder so every correctly
|
||||
heard triplet becomes a deterministic timeline anchor and the state tracker no
|
||||
longer has to launder ambiguous lag guesses.
|
||||
`MimirAudioSynchronizationState`. First, prove the constrained chirplet
|
||||
decoder through real loopback and microphone paths so every correctly heard
|
||||
triplet becomes a deterministic timeline anchor before the actuator moves
|
||||
samples.
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue