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:
2026-10-07 21:20:49 -07:00
parent 844dc4d9cd
commit f8878324fd
212 changed files with 1386 additions and 2549 deletions
@@ -269,7 +269,7 @@ public enum Gendy1 {
/// - mul: Output multiplier. Defaults to `1.0`.
/// - add: Output offset. Defaults to `0.0`.
/// - seed: Optional PRNG seed for deterministic output. `nil` uses a time-based seed.
public final class Control: _Base, ControlGenerator {
public final class Control: _Base, BlockRateControlGenerator {
public var previousOutputValue: Double = 0.0
private var _rampTarget: Double = 0.0
@@ -313,14 +313,9 @@ public enum Gendy1 {
seed: seed,
seedMixConstant: 0xFEDC_BA98_1357_2468
)
_setupSubBlockBuffer()
}
// Bypass sub-block loop: phase position and PRNG must advance exactly once per audio block.
public func calculatedSamples(graph: SynthGraph, count: Int) -> [[Double]] {
_calculatedSamplesBlockRate(graph: graph, count: count)
}
public func _computeSamples(graph: SynthGraph, count: Int) -> [[Double]] {
_checkCount(count)
@@ -273,7 +273,7 @@ public enum Gendy2 {
/// - mul: Output multiplier. Defaults to `1.0`.
/// - add: Output offset. Defaults to `0.0`.
/// - seed: Optional PRNG seed for deterministic output. `nil` uses a time-based seed.
public final class Control: _Base, ControlGenerator {
public final class Control: _Base, BlockRateControlGenerator {
public var previousOutputValue: Double = 0.0
private var _rampTarget: Double = 0.0
@@ -317,14 +317,9 @@ public enum Gendy2 {
seed: seed,
seedMixConstant: 0xABCD_EF01_2468_1357
)
_setupSubBlockBuffer()
}
// Bypass sub-block loop: phase position and PRNG must advance exactly once per audio block.
public func calculatedSamples(graph: SynthGraph, count: Int) -> [[Double]] {
_calculatedSamplesBlockRate(graph: graph, count: count)
}
public func _computeSamples(graph: SynthGraph, count: Int) -> [[Double]] {
_checkCount(count)
@@ -222,7 +222,7 @@ public enum Gendy3 {
/// - mul: Output multiplier. Defaults to `1.0`.
/// - add: Output offset. Defaults to `0.0`.
/// - seed: Optional PRNG seed for deterministic output. `nil` uses a time-based seed.
public final class Control: _Base, ControlGenerator {
public final class Control: _Base, BlockRateControlGenerator {
public var previousOutputValue: Double = 0.0
private var _rampTarget: Double = 0.0
@@ -256,14 +256,9 @@ public enum Gendy3 {
seed: seed,
seedMixConstant: 0x0123_4567_FEDC_BA98
)
_setupSubBlockBuffer()
}
// Bypass sub-block loop: phase position and PRNG must advance exactly once per audio block.
public func calculatedSamples(graph: SynthGraph, count: Int) -> [[Double]] {
_calculatedSamplesBlockRate(graph: graph, count: count)
}
public func _computeSamples(graph: SynthGraph, count: Int) -> [[Double]] {
_checkCount(count)