v2.1.1 release: delay-click fix + internal consolidation
Mirror of Lyrebird dev HEAD (9f791c7c) minus maintainer-only paths. Patch release: fixes the allpass fractional-delay click (DelayLine/CombFilter/AllpassFilter/ DelayLineFeedback under a modulated delay) and lands the internal code-quality consolidation pass (~160 deduped sites + shared base classes/helpers, bit-identical output). No public API removed or changed. See RELEASES.md. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -28,9 +28,9 @@ Group your review by these categories. Every item below is a blocking finding.
|
||||
|
||||
### Generator protocol violations
|
||||
- Redeclaring `_segmentSerial` / `_cachedResult` / `_subBlockBuffer` instead of inheriting from `GeneratorBase`.
|
||||
- `ControlGenerator.Control.init` missing `_setupSubBlockBuffer()` (or `_setupSubBlockBuffer(channels: N)`) after `super.init()`.
|
||||
- A sub-blocking `ControlGenerator.Control.init` missing `_setupSubBlockBuffer()` (or `_setupSubBlockBuffer(channels: N)`) after `super.init()`. `BlockRateControlGenerator` conformers are exempt — they never sub-block and must NOT call it.
|
||||
- `Control._computeSamples` using `graph.engine.blockSize` for phase/state advancement (must use `count`); same for any `calculatedSamples(graph:count:)` call on inputs.
|
||||
- Generators that must advance once per audio block (bus writers, buffer-position advancers, gain smoothers, trigger detectors, random drawers, IIR filters with audio-rate input) without a `calculatedSamples` bypass override (canonical pattern: `Out.Control`). To verify a `Control` variant in the diff has a bypass when it should: `grep -n "public func calculatedSamples" Sources/Lyrebird/Generators/<Path>/<Type>.swift`.
|
||||
- Control generators that must advance once per audio block (bus writers, buffer-position advancers, gain smoothers, trigger detectors, random drawers, IIR filters with audio-rate input, analysers) that fail to conform to `BlockRateControlGenerator` — the marker protocol whose `calculatedSamples` default supplies the block-rate gateway (it replaced the old per-generator `calculatedSamples { _calculatedSamplesBlockRate(...) }` forwarder). To verify a `Control` variant in the diff bypasses sub-blocking when it should: `grep -n "BlockRateControlGenerator" Sources/Lyrebird/Generators/<Path>/<Type>.swift`. A conforming class needs no `calculatedSamples` override and must NOT call `_setupSubBlockBuffer()`; conversely, a true sub-blocker must not conform.
|
||||
- Multi-row generators (`_result.count > 1`) without an `outputChannelCount` override returning the fixed init-time channel count. Missing override silently mono-izes under `+ - * /` operators.
|
||||
- Channel count derived from a runtime-mutable source rather than a `let` constant or `_result.count` set at init.
|
||||
- Static or global mutable state shared between generator instances.
|
||||
|
||||
Reference in New Issue
Block a user