v1.4.0 release: live-coding scratch editor, interpreted Graph DSL, ClosureSynthesizer + SampleLoop

This commit is contained in:
2026-07-20 10:02:49 -07:00
parent 560724d116
commit 38d2107f64
104 changed files with 14471 additions and 105 deletions
+12
View File
@@ -356,6 +356,18 @@ position in `[-1, 1]` and apply their own internal scaling.
---
## Custom multi-channel DSP — `SampleLoop`
`SampleLoop` (`Sources/Lyrebird/Generators/Core/SampleLoop.swift`), the closure escape hatch
for custom per-sample DSP, is channel-aware on both ends. Output channel count is inferred as
`max` over its inputs' `outputChannelCount` (or set explicitly via `channels:`); each input is
broadcast up to that width (mono spreads; a channel count that is neither `1` nor the output
width `precondition`-traps at init, matching `BinaryOpGenerator`); and the body receives
`numChannels` so one width-agnostic loop covers mono, stereo, or N-channel signals. Per-channel
feedback state is sized from `numChannels` via the `makeState` argument.
---
## See Also
- `Sources/Lyrebird/Generators/ChannelSelect.swift` — `ChannelSelect.Audio/.Control`, `[n]` subscript