feat: Add modulators and flexible routing to Node mode

Merged
FC
1mo ago
+45848-9899

Changelog: Play Bandcamp and SoundCloud again
Changelog: Effects no longer stay silent when the openDAW engine never finishes starting
Changelog: Sounds moved off openDAW because it was full go back once another sound frees room
Changelog: Add LFOs, envelopes and other modulators in Node mode
Changelog: Stations can share effects through a Merge or any effect, Filters and Pans can go anywhere, and one output can feed several places.
Changelog: A Split's branches can go to different places, like the left side to Speakers and the right to an Output device.
Changelog: Key effects from any point in the patch, with several keys on one path.
Changelog: Several Output device modules can play to the same device, each with its own mute.
Changelog: Node patches are no longer limited to a fixed number of sources, cables and modulators
Changelog: Turning one effect on or off no longer resets the other effects in its chain
Changelog: Keep effects playing after the audio engine restarts
Changelog: Prevent errors when removing several Node sources
Changelog: Effect curves and filter slope labels now match what you hear
Changelog: Soloed-out sources stop glowing, and MIDI knobs follow frequency controls
Changelog: Explain Safari's playback limits and how to use Single mode.
Changelog: On iPhone, Single shows that volume follows your device buttons.
Changelog: Changing the number of Steps keeps your existing pattern
Changelog: Adding Followers keeps held notes and controller values
Changelog: Imported audio files without platform metadata can play in Safari Node mode
Changelog: Band Split branches must meet again while routing differences are corrected

Changelog: Live stations reconnect after interruptions even when the browser reports a finite duration

Changelog: Rejected Safari stream replacements keep the previous stream playable

Summary

Release Radio 0.7.1: bring the Node audio refactor from beta to production, with modulators, shared effects, flexible routing, restored Bandcamp/SoundCloud playback, and live-station recovery.

Sources → Web Audio routing → openDAW effects → Speakers / Output devices
                         ↘ compatibility fallback with visible limits
Modulators → live parameter overlay (saved patch unchanged)
  • Native LFO, Steps, Random and Macro plus eight Radio-worklet sources; scalar and native parameter targets.
  • Shared effects, Merge, Filter/Pan placement, keys from throughout the patch, fan-out, and independent Outputs sharing a device.
  • Incremental effect edits, bounded startup, restart registration, and recovery when openDAW monitoring capacity becomes available.
  • Live stations retain their identity during recovery: a finite browser duration no longer prevents reconnection after an interruption. Finite-media URL renewal and pause cancellation remain intact.
  • Safari playback guidance and progressive imported-file provenance; recognized live radio and HLS remain blocked in Safari graph playback.
  • Steps edits preserve values; worklet growth preserves held MIDI/gates; Rack station discovery visits each upstream endpoint once.
  • Split and Stereo Split branches may diverge. Band Split branches must meet again: divergent bands failed the documented parity gate, so the compiler rejects that path without substituting unfiltered audio.

The release owner explicitly authorized the 0.7.1 patch bump and squash merge on 2026-10-10 with the outstanding device/listening gates disclosed. The Changelog: lines above are the release entries. #397/#398 use the superseded architecture and should not be merged alongside this. #398's signed control routing through Merge/Split remains deferred.

Evidence

  • Final head 3616210 passes bun run check, bun run typecheck, all 3,245 radio tests, and the radio production build with lazy-chunk validation.

  • Safari refresh preflight regression: an unsupported replacement previously overwrote the saved URL and destroyed the old source; validation now runs before either change. Simulated-Safari tests preserve active and unstarted source configurations, verify pause/resume after rejection and retain native HLS support. This does not establish Safari device acceptance.

  • Version-bump head 9b4fb27: bun run check, bun run typecheck, all 3,244 radio tests and the radio production build passed locally; built client/server assets contain radio@0.7.1.

  • Patch version updated from 0.7.0 to 0.7.1 in the Radio manifest, generated lockfile and Vite fallback. The recovery regression also asserts that recovery calls play() before any synthetic playing event.

  • Before: 3,171 radio tests passed and 44 failed on cb783dd; Steps typing 8→16 discarded values; Follower growth lost held control state; layered Rack routing revisited paths exponentially.
    After: fix aafe689 passes all 3,233 radio tests and 339 platforms tests, plus bun run check, bun run typecheck, and bun run --filter @avoid.quest/radio build including the lazy Node chunk check. Bun 1.4.2 / Node 24.21.0. The subsequent live-recovery fix 1550d72 passes 3,244 radio tests, repository check/typecheck and radio build; e8615b9 records its evidence. Platforms were unchanged and their prior 339-test pass was not rerun.

  • Browser: T3 Chromium 154, Linux x86_64, 1280×800, localhost at aafe689: Steps Enter/blur/Undo/Escape passed; synthetic MIDI through the real AudioWorklet retained gate 1, CC 99/127 and envelope 0.5 across Follower growth, then released correctly. This is not hardware or listening evidence.

  • Band Split: production stage vs actual openDAW container on cb783dd, 48 kHz, five captures each: two/three bands approximately −25.9 dBFS (fail) against ≤−60 dBFS; four bands below −157 dBFS in this summed-output comparison. The documented fallback is implemented for all divergent Band Splits. Full setup: split measurements.

  • Live recovery browser test: Chromium 154 on Linux, localhost at 1550d72, native media element with a muted synthetic 30-second WAV marked as live radio. Injected abort failed before the fix; afterward playback recovered within the 13.5-second observation with advancing media time and no terminal/renewal callback. Finite-file renewal and pause cancellation controls passed. This is fault injection, not physical listening or a real Firefox/network reproduction.

  • Sentry: six unresolved groups inspected. Node-removal, Bandcamp and SoundCloud groups match fixes already in beta. RADIO-1V contains two aborts and two load failures on Firefox 157/Mac; the new fix addresses a reproduced live-recovery defect, while historical causation and production resolution remain unverified. Issues remain unresolved pending production verification.

  • Independent Standards and Spec reviews found no new blocking code findings in the fixes. The seven existing review findings were verified and fixed, including exact-byte relay validation and awaited capacity reconciles.

  • Earlier deployed cb783dd browser smoke observed Bandcamp and SoundCloud media time advancing. This does not replace listening or establish provider reliability across devices.

Still unverified: physical listening, Safari/iPhone playback and touch, microphone permission/lifetime, hardware MIDI, actual output-device/CUE routing, G2 click counts, modulation timing/long-session performance, and the remaining release acceptance matrix. The release owner confirmed no additional device test results on 2026-10-10. No device/version or pass/fail result is inferred for these gates. The release owner authorized merging with these gaps disclosed; they remain unverified.

Merge Danger

Door: One-way

Stored Multiple sessions migrate in place to Node, and exports become version 3. Older releases cannot read that state. Recovery must roll forward through migrateNodeToMultiple; reverting the deployment alone is insufficient. Existing backups are retained.

Blast Radius: Playback

All Node sources, routing, modulation and browser playback paths. Native limits remain: eight openDAW monitoring channels, 2–4 Band Split bands, 64 Steps and saved nesting depth eight. Excess sounds use the compatibility engine. Documented timing exceptions remain: own-insert key latency about 3–5 ms, re-entry rejoin skew up to one render quantum, and Split relayout fade tails. The Band Split restriction does not waive listening or G2 gates.

Summary by CodeRabbit

  • New Features

    • Added visual node-based modulation with editable controls, parameter assignments, MIDI input, and live connection feedback.
    • Expanded audio routing with shared output devices, independent sends and mute, flexible cable connections, and larger Split layouts.
    • Added device-volume guidance for Single playback when browser volume controls are locked.
    • Added clearer effect-backend status and fallback explanations.
  • Bug Fixes

    • Improved effect updates, routing transitions, and recovery from playback failures.
    • Corrected compressor and EQ visualizations, filter slope labels, and parameter scaling.
    • Improved Bandcamp loading with validated URLs and relay support.
    • Prevented unsupported Safari live-radio and HLS graph playback, with a clear explanation.