v1.4.0 release: live-coding scratch editor, interpreted Graph DSL, ClosureSynthesizer + SampleLoop
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user