Name actuator output stems

This commit is contained in:
Meta Vens 2026-05-27 20:29:52 +01:00
commit 51c70f0b49
5 changed files with 23 additions and 8 deletions

View file

@ -151,9 +151,12 @@ a named invariant that the native runtime cannot protect yet.
`AquariumStreamingDspProgram`, so Fensalir has both the persistent Faust DSP
graph and the matching controls. The runtime now also queues sample-bearing
`AquariumStreamingAudioBlock` lanes from the latest actuator source buffers,
using the bank-assigned Faust `sourceN` slot as channel authority. Durable
stem routing/publication is still the next cut before aligned audio becomes a
separately mixable program output.
using the bank-assigned Faust `sourceN` slot as channel authority. Fensalir
now publishes processed DSP output as `AquariumAudioStemFrame` records through
an engine-owned `IAquariumAudioStemBus`, and Mimir declares deterministic
aligned-source stem names with the actuator program. OBS-facing publication is
still the next cut before those stems become separately mixable program
outputs.
- `MimirRuntime` no longer submits the legacy direct `AquariumSplineFrame`
spectrum dashboard. Live spectrum visualization authority is the
`AquariumFieldEvidenceFrame`: Mimir declares the rolling resource, emits a

View file

@ -312,8 +312,11 @@ control frame, declares `faust/mimir_alignment_actuator.dsp` as an
Mimir also queues sample-bearing `AquariumStreamingAudioBlock` lanes from the
latest actuator source buffers, using the bank-assigned Faust `sourceN` control
path as channel authority. Fensalir can compile/host/process that persistent
Faust graph now; durable stem routing and OBS-facing publication still have to
turn processed output lanes into separately mixable program audio.
Faust graph now. The engine now publishes processed output lanes as
`AquariumAudioStemFrame` records through `IAquariumAudioStemBus`, with Mimir's
actuator program declaring deterministic aligned-source stem names. OBS-facing
publication still has to consume those stems as separately mixable program
audio.
## Visual Fusion

View file

@ -955,7 +955,13 @@ public sealed class MimirRuntime : IAquariumRuntime, IAquariumRuntimeServicesRec
profile.Id,
"mimir_alignment_actuator",
File.ReadAllText(path),
unchecked((int)File.GetLastWriteTimeUtc(path).Ticks)));
unchecked((int)File.GetLastWriteTimeUtc(path).Ticks),
OutputStems: Enumerable.Range(0, profile.SourceCount)
.Select(index => new AquariumStreamingDspOutputStem(
index,
$"aligned_source_{index}",
$"Aligned source {index}"))
.ToArray()));
audioActuatorProgramQueued = true;
}

View file

@ -187,3 +187,4 @@
{"ts": "2026-05-27T18:06:41+01:00", "type": "decision", "status": "ok", "note": "MimirRuntime now queues the latest MimirAlignmentActuatorBank frame into AquariumAudioDocument as an engine audio control frame. This creates the Mimir-to-Fensalir control contract for Faust/native DSP targets, but remains control-plane only until a streaming DSP sample mover consumes it."}
{"ts": "2026-05-27T18:54:28+01:00", "type": "decision", "status": "ok", "note": "Mimir now declares faust/mimir_alignment_actuator.dsp as an AquariumStreamingDspProgram before queuing actuator controls, giving Fensalir both the persistent Faust DSP graph and the control frames. Live sample alignment still waits on the next device I/O/stem-routing cut."}
{"ts": "2026-05-27T20:18:50+01:00", "type": "verification", "status": "ok", "note": "MimirRuntime now queues sample-bearing AquariumStreamingAudioBlock lanes for actuator source buffers after publishing the control frame. Channel indices are derived from the bank-assigned Faust sourceN control path, so source disappearance does not reshuffle lanes. Mimir build passed; Fensalir tests prove declared blocks enter the streaming Faust DSP host."}
{"ts": "2026-05-27T20:28:43+01:00", "type": "verification", "status": "ok", "note": "Fensalir now publishes processed streaming Faust DSP output lanes as AquariumAudioStemFrame records through an engine-owned IAquariumAudioStemBus. Mimir declares deterministic aligned-source output stems when queuing faust/mimir_alignment_actuator.dsp, so processed actuator lanes have stable stem names before OBS-facing publication consumes them. Fensalir build and Aquarium.Engine.Tests passed; Mimir build and --audio-actuator-bank-smoke passed."}

View file

@ -189,8 +189,10 @@ accepted_design:
controls. The same runtime cadence queues sample-bearing
`AquariumStreamingAudioBlock` lanes from the latest actuator source buffers,
with channel indices derived from the bank-assigned Faust `sourceN` control
path; live stem publication still waits on routing processed DSP output
lanes into program audio. The synthetic
path. Fensalir now publishes processed DSP output lanes as
`AquariumAudioStemFrame` records on an engine-owned audio stem bus, and
Mimir declares deterministic aligned-source stem names with the actuator
program; OBS-facing stem publication is the remaining program-audio cut. The synthetic
codebook proof is `dotnet run --project
.\src\Mimir.BufferSmoke\Mimir.BufferSmoke.csproj -- --bioacoustic-self-test`.
`Mimir.BufferSmoke --render-chirp-bin-f32` plus