Start chirplet timeline decoder
This commit is contained in:
parent
200186d4d5
commit
ea09212d49
10 changed files with 415 additions and 52 deletions
|
|
@ -61,13 +61,24 @@ the following inter-chirp gap all carry code. The point is not ornament. The
|
|||
timing code is carried by both frequency and rhythm, so it behaves more like a
|
||||
quiet birdsong texture than a repeated sweep.
|
||||
|
||||
`MimirAudioSynchronizationAnalyzer` resamples candidate mic windows into the
|
||||
loopback sample-rate timeline, uses cheap coarse chirplet energy for acquisition,
|
||||
then lets the symbol decoder refine delay from matched event indices. The lag
|
||||
search is wide enough for ordinary remote/network delay, not just local
|
||||
speaker-to-mic delay. Reports carry rounded integer delay, fractional delay from
|
||||
parabolic peak interpolation, and the count/confidence of timeline-symbol events
|
||||
used to refine the report.
|
||||
The intended decoder is a constrained chirplet transform, not a generic
|
||||
time-frequency explorer and not an outlier filter around bad guesses. Mimir owns
|
||||
the emitter, so the receiver projects each mic stream against the known chirplet
|
||||
dictionary, produces symbol likelihood events, and decodes every valid
|
||||
consecutive triplet through the de Bruijn map. A decoded triplet is a canonical
|
||||
timeline anchor: observed sample offset `S` corresponds to emitted event time
|
||||
`T`. A stream of anchors fits the source clock directly:
|
||||
|
||||
```text
|
||||
observed_sample = source_offset + canonical_seconds * effective_sample_rate
|
||||
```
|
||||
|
||||
Delay and sampling-rate offset are derived by comparing the loopback clock fit
|
||||
to each mic clock fit over common canonical time. Wide cross-correlation is only
|
||||
a diagnostic fallback while the transform decoder is being cut over. The state
|
||||
tracker is not allowed to launder invalid codewords into plausible timing.
|
||||
Reports carry rounded integer delay, fractional delay, and the count/confidence
|
||||
of timeline-symbol anchors used to derive the report.
|
||||
|
||||
`MimirSynchronizationHub.BuildAlignedAudioFrame` returns a provisional aligned
|
||||
mono frame: loopback is always channel zero, and other channels enter only when
|
||||
|
|
@ -111,10 +122,12 @@ flowchart TD
|
|||
D --> F["mic rolling buffers"]
|
||||
E --> G["matched chirplet traces"]
|
||||
F --> G
|
||||
G --> H["delay observations"]
|
||||
H --> L["smoothed sync state + SRO"]
|
||||
G --> H["symbol likelihood events"]
|
||||
H --> L["triplet timeline anchors"]
|
||||
L --> M["per-source clock fit"]
|
||||
M --> N["delay + SRO"]
|
||||
G --> I["per-band response estimates"]
|
||||
L --> J["fractional delay / resampler actuator"]
|
||||
N --> J["fractional delay / resampler actuator"]
|
||||
I --> K["frequency response normalization"]
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -49,11 +49,15 @@ a named invariant that the native runtime cannot protect yet.
|
|||
detected symbols identify a timeline event inside the current operating
|
||||
horizon. Symbol identity is carried by start band, glide shape, duration, and
|
||||
following inter-chirp gap.
|
||||
- `MimirChirpletStreamDecoder` is the first constrained chirplet-transform
|
||||
receiver. It owns a bounded PCM window, emits symbol observations, decodes
|
||||
code-valid triplet anchors onto the canonical timeline, 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
|
||||
and compared by chirplet-energy delay estimation with fractional peak
|
||||
interpolation. When timeline symbols are decoded, matched event indices refine
|
||||
the delay estimate and are exposed in telemetry.
|
||||
sample-bearing audio blocks are resampled into the Scarlett loopback timeline.
|
||||
The analyzer now prefers decoded triplet timeline anchors and derives delay
|
||||
from matched canonical events. The older chirplet-energy lag search remains a
|
||||
diagnostic fallback while the decoder is being cut over.
|
||||
- `MimirSynchronizationHub.BuildAlignedAudioFrame` exposes the first
|
||||
provisional aligned mono frame for loopback-referenced audio channels that
|
||||
clear the confidence gate.
|
||||
|
|
@ -103,10 +107,9 @@ 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, harden the online state filter so the continuous chirplet lock stops
|
||||
producing jumpy delay estimates. The runtime sync cadence is now bounded and
|
||||
survives longer real app runs, but the state filter still accepts outliers
|
||||
too readily.
|
||||
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.
|
||||
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