diff --git a/Sources/LyrebirdShoeGaze/Pedals/ShimmerReverbPedal.swift b/Sources/LyrebirdShoeGaze/Pedals/ShimmerReverbPedal.swift index 15f6efb..0702a39 100644 --- a/Sources/LyrebirdShoeGaze/Pedals/ShimmerReverbPedal.swift +++ b/Sources/LyrebirdShoeGaze/Pedals/ShimmerReverbPedal.swift @@ -31,13 +31,16 @@ public final class ShimmerReverbPedal: Pedal { @UIParam public var size: Double = 0.06 /// Tail length (feedback). Range [0, 0.92]. - @UIParam public var decay: Double = 0.8 + /// + /// The regenerating loop gain is roughly `decay + shimmer`; keep their sum well under `1` to avoid + /// self-oscillation (a sustaining screech with little or no input). Defaults sum to `0.75`. + @UIParam public var decay: Double = 0.5 - /// Octave-up regeneration amount. Range [0, 0.85]. - @UIParam public var shimmer: Double = 0.5 + /// Octave-up regeneration amount. Range [0, 0.85]. See ``decay`` on keeping `decay + shimmer < 1`. + @UIParam public var shimmer: Double = 0.25 /// High-frequency damping. Range [0, 1]. - @UIParam public var damp: Double = 0.4 + @UIParam public var damp: Double = 0.5 // MARK: - Constants diff --git a/Sources/LyrebirdShoeGaze/Presets/Factory/FactoryRigLibrary.swift b/Sources/LyrebirdShoeGaze/Presets/Factory/FactoryRigLibrary.swift index febc9bf..696716b 100644 --- a/Sources/LyrebirdShoeGaze/Presets/Factory/FactoryRigLibrary.swift +++ b/Sources/LyrebirdShoeGaze/Presets/Factory/FactoryRigLibrary.swift @@ -74,7 +74,7 @@ public enum FactoryRigLibrary { /// an existing rig's definition corrected — so launch catch-up re-runs on already-populated /// libraries and refreshes every starter to its current form. Within a single version the marker /// only advances once, so a starter the user deletes stays deleted until the next bump. - public static let seedVersion: Int = 3 + public static let seedVersion: Int = 4 /// Stable ids of every built-in rig, for detecting whether a library entry is a factory rig. /// @@ -198,11 +198,11 @@ public enum FactoryRigLibrary { p.feedback = 1.5 } try board.append(ShimmerReverbPedal()) { p in - // Keep decay + shimmer feedback well below self-oscillation — high decay with the - // octave-up regeneration screeches into runaway feedback within seconds. + // Keep decay + shimmer well below self-oscillation — the loop gain is ~decay + shimmer, so + // high values screech into runaway feedback with little or no input. p.size = 0.09 - p.decay = 0.55 - p.shimmer = 0.3 + p.decay = 0.5 + p.shimmer = 0.25 p.damp = 0.5 } } @@ -323,10 +323,12 @@ public enum FactoryRigLibrary { p.tone = 3500.0 } try board.append(ShimmerReverbPedal()) { p in + // Long ambient tail, but decay + shimmer kept under ~0.8 so it never self-oscillates; the + // room reverb downstream supplies the extra length. p.size = 0.11 - p.decay = 0.9 - p.shimmer = 0.7 - p.damp = 0.3 + p.decay = 0.6 + p.shimmer = 0.2 + p.damp = 0.5 } try board.append(RoomReverbPedal()) { p in p.size = 60.0 @@ -506,9 +508,9 @@ public enum FactoryRigLibrary { } try board.append(ShimmerReverbPedal()) { p in p.size = 0.1 - p.decay = 0.88 - p.shimmer = 0.6 - p.damp = 0.3 + p.decay = 0.55 + p.shimmer = 0.25 + p.damp = 0.5 } } @@ -613,9 +615,9 @@ public enum FactoryRigLibrary { } try board.append(ShimmerReverbPedal()) { p in p.size = 0.09 - p.decay = 0.85 - p.shimmer = 0.5 - p.damp = 0.35 + p.decay = 0.55 + p.shimmer = 0.25 + p.damp = 0.5 } }