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
@@ -79,15 +79,15 @@ public enum ___FILEBASENAMEASIDENTIFIER___ {
}
/// Control-rate ___FILEBASENAMEASIDENTIFIER___ — draws one new value per
/// audio block, emits a linear ramp to the new target. Override
/// `calculatedSamples` bypasses the sub-block loop so the draw rate stays
/// at one per audio block regardless of `controlBlockSize`.
/// audio block, emits a linear ramp to the new target.
/// Conforms to `BlockRateControlGenerator` so the draw rate stays at one per
/// audio block regardless of `controlBlockSize`.
///
/// - Parameters:
/// - seed: PRNG seed. Defaults to a time-derived value.
/// - mul: Output multiplier. Defaults to `1.0`.
/// - add: Output offset. 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 = 0.0
@@ -104,15 +104,6 @@ public enum ___FILEBASENAMEASIDENTIFIER___ {
let controlMixConstant: UInt64 = 0xB220_BBBB_A5A5_C3C3
let initialRngState = lyrebirdSeedXorshift64(from: seed, mixConstant: controlMixConstant)
super.init(initialRngState: initialRngState, mul: mul, add: add)
_setupSubBlockBuffer()
}
// Bypass sub-block loop: one draw per audio block regardless of cbs.
public func calculatedSamples(
graph: SynthGraph,
count: Int
) -> [[Double]] {
_calculatedSamplesBlockRate(graph: graph, count: count)
}
public func _computeSamples(