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
@@ -226,7 +226,7 @@ public enum Expander {
/// - attack: Attack time constant in seconds. Practical range 0.001–1.0. Defaults to `0.01`.
/// - release: Release time constant in seconds. Practical range 0.01–5.0. Defaults to `0.1`.
/// - kneeWidth: Soft-knee width in dB (0 = hard knee). Must be ≥ 0. Defaults to `0.0`.
public final class Control: _Base, ControlGenerator {
public final class Control: _Base, BlockRateControlGenerator {
public var previousOutputValue: Double = 0.0
private var _rampTarget: Double = 1.0 // matches _prevGain initial value
@@ -247,17 +247,8 @@ public enum Expander {
) {
super.init(in: input, threshold: threshold, ratio: ratio,
attack: attack, release: release, kneeWidth: kneeWidth)
_setupSubBlockBuffer()
}
// Bypass sub-block loop: _prevGain must advance once per audio block.
// Sub-blocking would apply the gain smoother N times per block, shrinking time constants by N×.
public func calculatedSamples(
graph: SynthGraph,
count: Int
) -> [[Double]] {
_calculatedSamplesBlockRate(graph: graph, count: count)
}
public func _computeSamples(
graph: SynthGraph,