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:
Vendored
+1
-4
@@ -110,10 +110,7 @@ public enum ___FILEBASENAMEASIDENTIFIER___ {
|
||||
var target = ___FILEBASENAMEASIDENTIFIER___._transform(
|
||||
inputSource.floatValue(graph: graph)
|
||||
)
|
||||
if !_mulAdd.isIdentity {
|
||||
target = target * _mulAdd.mulInput.floatValue(graph: graph)
|
||||
+ _mulAdd.addInput.floatValue(graph: graph)
|
||||
}
|
||||
target = _mulAdd.applyScalar(target, graph: graph)
|
||||
guard count > 0 else { return _result }
|
||||
let rampStart: Double = previousOutputValue
|
||||
previousOutputValue = target
|
||||
|
||||
+4
-13
@@ -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(
|
||||
|
||||
Vendored
+1
-10
@@ -111,7 +111,7 @@ public enum ___FILEBASENAMEASIDENTIFIER___ {
|
||||
/// - phase: Initial phase offset in normalized cycles `[0, 1)`. Defaults to `0.0`.
|
||||
/// - 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
|
||||
@@ -128,15 +128,6 @@ public enum ___FILEBASENAMEASIDENTIFIER___ {
|
||||
add: any ValidGeneratorInput = 0.0
|
||||
) {
|
||||
super.init(freq: freq, phase: phase, mul: mul, add: add)
|
||||
_setupSubBlockBuffer()
|
||||
}
|
||||
|
||||
// Bypass sub-block loop: phase advances exactly once per audio block.
|
||||
public func calculatedSamples(
|
||||
graph: SynthGraph,
|
||||
count: Int
|
||||
) -> [[Double]] {
|
||||
_calculatedSamplesBlockRate(graph: graph, count: count)
|
||||
}
|
||||
|
||||
public func _computeSamples(
|
||||
|
||||
Reference in New Issue
Block a user