From 4e8f6e280c8b8964a76a115b5c3927eb1556f4f1 Mon Sep 17 00:00:00 2001 From: Joshua Parmenter Date: Tue, 3 Nov 2026 13:09:48 -0800 Subject: [PATCH] =?UTF-8?q?release:=20ShoeGaze=203.3.0=20=E2=80=94=20noise?= =?UTF-8?q?-gate=20threshold=20+=20mono-output=20fixes=20on=20Lyrebird=202?= =?UTF-8?q?.2.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bump to Lyrebird 2.2.0 (both Package.resolved pins → 2.2.0 / 24ea32e) and cut ShoeGaze 3.3.0. This release surfaces the upstream ramp-origin fix plus the two local fixes already on main: - Noise Gate respects its threshold after loading a rig: the gate's open level is derived from the threshold, which previously swept up from a default on the first audio block and tripped the gate on the transient (latching it open). Lyrebird 2.2.0 delivers a pre-first-render parameter value flat, so the gate reads its real threshold from block one. - Mono rigs output at unity (were ~3 dB down through a centre pan). - Noise Gate detector Peak/RMS switch, defaulting to RMS. NoiseGatePedal doc comment tidied (signal-chain diagram + detector parameter). App build track: MARKETING_VERSION 3.3, CURRENT_PROJECT_VERSION 23. Co-Authored-By: Claude Opus 4.8 --- .../ShoeGazeBuilder.xcodeproj/project.pbxproj | 8 +++--- .../xcshareddata/swiftpm/Package.resolved | 4 +-- Package.resolved | 6 ++--- RELEASES.md | 19 ++++++++++++++ .../Pedals/NoiseGatePedal.swift | 25 ++++++++++--------- 5 files changed, 41 insertions(+), 21 deletions(-) diff --git a/Demo/ShoeGazeBuilder.xcodeproj/project.pbxproj b/Demo/ShoeGazeBuilder.xcodeproj/project.pbxproj index d390367..93458b6 100644 --- a/Demo/ShoeGazeBuilder.xcodeproj/project.pbxproj +++ b/Demo/ShoeGazeBuilder.xcodeproj/project.pbxproj @@ -163,7 +163,7 @@ "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 22; + CURRENT_PROJECT_VERSION = 23; DEAD_CODE_STRIPPING = YES; DEBUG_INFORMATION_FORMAT = dwarf; ENABLE_HARDENED_RUNTIME = YES; @@ -175,7 +175,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 15.0; - MARKETING_VERSION = 3.2; + MARKETING_VERSION = 3.3; PRODUCT_BUNDLE_IDENTIFIER = net.realizedsound.ShoeGazeBuilder; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = YES; @@ -193,7 +193,7 @@ "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 22; + CURRENT_PROJECT_VERSION = 23; DEAD_CODE_STRIPPING = YES; ENABLE_HARDENED_RUNTIME = YES; INFOPLIST_FILE = ShoeGazeBuilder/Info.plist; @@ -204,7 +204,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 15.0; - MARKETING_VERSION = 3.2; + MARKETING_VERSION = 3.3; PRODUCT_BUNDLE_IDENTIFIER = net.realizedsound.ShoeGazeBuilder; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = YES; diff --git a/Demo/ShoeGazeBuilder.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Demo/ShoeGazeBuilder.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index 0c7f3cc..bd48b48 100644 --- a/Demo/ShoeGazeBuilder.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/Demo/ShoeGazeBuilder.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -15,8 +15,8 @@ "kind" : "remoteSourceControl", "location" : "https://realizedsound.mooo.com/josh/Lyrebird", "state" : { - "revision" : "c058493a9853695c441895a12e9f4a5dbc7295b0", - "version" : "1.2.3" + "revision" : "24ea32e47cecff8efec9720546ed068b4efef2f7", + "version" : "2.2.0" } }, { diff --git a/Package.resolved b/Package.resolved index fd6feb8..0afb3bf 100644 --- a/Package.resolved +++ b/Package.resolved @@ -1,5 +1,5 @@ { - "originHash" : "f9934abeea28a70c1be54af0c3f817ff5d985104ec77c04753214e68c4acf032", + "originHash" : "c8855e41a403b5b1fccd9ccb4b3ef4d75c4307590ae6a0b8e985e71c41011e09", "pins" : [ { "identity" : "linenoise-swift", @@ -15,8 +15,8 @@ "kind" : "remoteSourceControl", "location" : "https://realizedsound.mooo.com/josh/Lyrebird", "state" : { - "revision" : "b6fdee8bfc7c44d31a0a8cfe6fbd53f352dfad54", - "version" : "2.0.0" + "revision" : "24ea32e47cecff8efec9720546ed068b4efef2f7", + "version" : "2.2.0" } }, { diff --git a/RELEASES.md b/RELEASES.md index d75d1d2..802d077 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1,4 +1,23 @@ # Releases +## ShoeGaze 3.3.0 + +Noise-gate and output-level fixes, on Lyrebird 2.2.0. + +### Fixed +- **Noise Gate now respects its threshold after loading a rig.** A gate restored from a saved + rig could latch open and ignore its Threshold knob — the gate's open level is derived from the + threshold, and that value swept up from a default on the first audio block, tripping the gate + on the transient. Fixed upstream in Lyrebird 2.2.0 (a live parameter set before the first + render is now delivered flat), so the gate reads its real threshold from the first block. +- **Mono rigs come out at the level they went in.** A mono board was written through a centre + pan that dropped both channels ~3 dB; it now copies the mono signal to both outputs at unity. + +### Changed +- **Noise Gate detector: Peak / RMS, defaulting to RMS.** RMS follows perceived loudness, so the + gate's threshold decision tracks how loud the note actually is instead of riding the waveform + peaks. A gate saved before this switch existed loads on RMS. (Peak remains available.) +- Updated to **Lyrebird 2.2.0**. + ## ShoeGaze 3.1.1 A small fix for the Mutant envelope filter's control panel. diff --git a/Sources/LyrebirdShoeGaze/Pedals/NoiseGatePedal.swift b/Sources/LyrebirdShoeGaze/Pedals/NoiseGatePedal.swift index e91d27f..87c6c49 100644 --- a/Sources/LyrebirdShoeGaze/Pedals/NoiseGatePedal.swift +++ b/Sources/LyrebirdShoeGaze/Pedals/NoiseGatePedal.swift @@ -11,20 +11,19 @@ import LyrebirdUI /// /// Signal chain (inside `effect(_:)`): /// ``` -/// dry ─┬───────────────────────────────────────────────────────────┐ -/// └→ detector → Schmidt(lo: thr, hi: thr×ratio) │ -/// (Peak: AmplitudeFollower |x|, → LinLin(0…1 → floor…1) │ -/// RMS: √Lag(x²)) → LagUpDown(fast/slow) × ─┴→ mono out +/// detector(dry) → Schmidt(lo: thr, hi: thr×ratio) → LinLin(0…1 → floor…1) → LagUpDown(open/close) +/// Peak: AmplitudeFollower(|x|) +/// RMS: √Lag(x²) out = dry × smoothed-gain /// ``` /// -/// The **detector** tracks the dry signal level — either peak (`|x|`) or RMS (√mean-square). A Schmitt trigger turns that -/// envelope into an open/closed gate with hysteresis (opens above `threshold × openRatio`, -/// closes below `threshold`) so the gate does not chatter around the threshold. The 0/1 -/// gate is mapped to a gain in `[floor, 1]` and smoothed **asymmetrically** — opening fast so a -/// note's attack isn't softened, closing slowly so the gate fades shut instead of snapping (a fast -/// close popped audibly when heavy downstream gain amplified the step). When the gate is closed the -/// signal is attenuated to `floor` rather than hard-muted, so `floor` sets how much of the quiet -/// signal/noise tail bleeds through. +/// The **detector** tracks the dry signal level — either peak (`|x|`) or RMS (√mean-square). A +/// Schmitt trigger turns that envelope into an open/closed gate with hysteresis (opens above +/// `threshold × openRatio`, closes below `threshold`) so the gate does not chatter around the +/// threshold. The 0/1 gate is mapped to a gain in `[floor, 1]` and smoothed **asymmetrically** — +/// opening fast so a note's attack isn't softened, closing slowly so the gate fades shut instead of +/// snapping (a fast close popped audibly when heavy downstream gain amplified the step). When the +/// gate is closed the signal is attenuated to `floor` rather than hard-muted, so `floor` sets how +/// much of the quiet signal/noise tail bleeds through. /// /// The wet/dry mix and bypass switching are handled by the `Pedal` base class. /// @@ -39,6 +38,8 @@ import LyrebirdUI /// mute, `1` = no gating. Range `[0, 1]`. Defaults to `0.0`. /// - attack: Gate open time in seconds (advanced pop-over). Range `[0.001, 0.05]`. Defaults to `0.005`. /// - release: Gate close time in seconds (advanced pop-over). Range `[0.01, 0.5]`. Defaults to `0.08`. +/// - detector: Level-detection mode (switch). `0` = Peak (`|x|`), `1` = RMS (√mean-square). +/// Defaults to RMS (`1`). public final class NoiseGatePedal: Pedal { /// One-line description shown in the picker and info panel.