feat(amps): Vox variants — Chime 15 / Normal / Baby (Phase 3)
Make ChimeAmpPedal open with a convenience init, then derive three AC-style Vox voices that inherit its Cut control + .vox tone stack and differ by voicing: - Chime 15 — 1×12 EL84 combo: power-amp drive 2.0 (earlier breakup), Bright cab, gain 6. - Chime Normal — AC30 non-top-boost channel: warmer/rounder (treble 0.5, more Cut), American cab, base headroom. - Chime Baby — tiny practice combo: drive 2.5 (breaks up earliest), Lo-Fi 1×8 cab, less bass. Chime 15 / Baby override powerAmpDriveInput (fixed higher drive) + oversample 4; Normal keeps the base. Registered across all 6 sites as .amp. 8 tests (Cut per voice, inherited surface/.vox, breakup oversample, voices differ, ceiling, round-trip, registry). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -10,8 +10,10 @@ import LyrebirdUI
|
||||
/// Chimey/jangly amp (bell-like top boost) with a **Cut** control that rolls off the high end as
|
||||
/// it's turned up — the classic top-boost "Cut" behavior.
|
||||
///
|
||||
/// A ``AmpVoicePedal`` fixed to the chime tone stack.
|
||||
public final class ChimeAmpPedal: AmpVoicePedal {
|
||||
/// A ``AmpVoicePedal`` fixed to the chime tone stack. The base of the Vox-voiced family — the
|
||||
/// AC-style variants (Chime 15 / Chime Normal / Chime Baby) subclass it and differ by gain, cab,
|
||||
/// tone defaults, and power-amp breakup.
|
||||
open class ChimeAmpPedal: AmpVoicePedal {
|
||||
|
||||
/// Cut amount in [0, 1]: `0` = fully open/bright, `1` = darkest. Maps to a low-pass cutoff
|
||||
/// swept from `cutOpenHz` down to `cutDarkHz`.
|
||||
@@ -34,8 +36,10 @@ public final class ChimeAmpPedal: AmpVoicePedal {
|
||||
/// - Parameters:
|
||||
/// - inputBus: Audio bus index to read the dry input from. Defaults to `0`.
|
||||
/// - outputBus: Audio bus index to write the processed output to. Defaults to `0`.
|
||||
public init(inputBus: Int = 0, outputBus: Int = 0) {
|
||||
super.init(name: "Chime", inputBus: inputBus, outputBus: outputBus)
|
||||
/// The AC-style variants call the inherited `AmpVoicePedal.init(name:inputBus:outputBus:)` to set
|
||||
/// their own name while inheriting the shared Cut voice.
|
||||
public convenience init(inputBus: Int = 0, outputBus: Int = 0) {
|
||||
self.init(name: "Chime", inputBus: inputBus, outputBus: outputBus)
|
||||
gain = 5.0
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
// ChimeBabyAmpPedal.swift
|
||||
// Lyrebird
|
||||
//
|
||||
// Copyright (c) 2026 Joshua Parmenter / realizedsound
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
import LyrebirdSynth
|
||||
import LyrebirdUI
|
||||
|
||||
/// Vox-voiced **practice combo** — the tiny AC4/AC10-style amp: low headroom, a small boxy
|
||||
/// speaker, and the earliest breakup of the chime family.
|
||||
///
|
||||
/// A ``ChimeAmpPedal`` (Cut voice) driven hardest into the power stage, with the small lo-fi cab.
|
||||
public final class ChimeBabyAmpPedal: ChimeAmpPedal {
|
||||
|
||||
/// Power-amp drive — the highest of the chime family, so it breaks up earliest.
|
||||
private let babyPowerDrive: Double = 2.5
|
||||
|
||||
public override var summaryText: String {
|
||||
"Vox practice combo — tiny, boxy, earliest-breakup chime with a Cut control."
|
||||
}
|
||||
|
||||
/// Driven hardest of the chime family, so 4× oversampling for anti-alias headroom.
|
||||
public override var powerAmpOversample: Int { 4 }
|
||||
public override var powerAmpDriveInput: any ValidGeneratorInput { babyPowerDrive }
|
||||
|
||||
/// Creates a Chime Baby amp.
|
||||
///
|
||||
/// - Parameters:
|
||||
/// - inputBus: Audio bus index to read the dry input from. Defaults to `0`.
|
||||
/// - outputBus: Audio bus index to write the processed output to. Defaults to `0`.
|
||||
public init(inputBus: Int = 0, outputBus: Int = 0) {
|
||||
super.init(name: "Chime Baby", inputBus: inputBus, outputBus: outputBus)
|
||||
gain = 6.0
|
||||
bass = 0.4 // small speaker, less low end
|
||||
cab = 7.0 // Lo-Fi 1×8 — the small, boxy voice
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
// ChimeFifteenAmpPedal.swift
|
||||
// Lyrebird
|
||||
//
|
||||
// Copyright (c) 2026 Joshua Parmenter / realizedsound
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
import LyrebirdSynth
|
||||
import LyrebirdUI
|
||||
|
||||
/// Vox-voiced **1×12 EL84 combo** — the lower-powered, earlier-breakup sibling of the AC top-boost
|
||||
/// voice. Chimey but grittier: the small power section saturates sooner.
|
||||
///
|
||||
/// A ``ChimeAmpPedal`` (Cut voice) with a higher fixed power-amp drive and a bright cab.
|
||||
public final class ChimeFifteenAmpPedal: ChimeAmpPedal {
|
||||
|
||||
/// Power-amp drive — higher than the base's fixed `1.5` so the EL84 stage breaks up earlier.
|
||||
private let fifteenPowerDrive: Double = 2.0
|
||||
|
||||
public override var summaryText: String {
|
||||
"Vox 1×12 EL84 combo — chimey but earlier-breakup, with a Cut control."
|
||||
}
|
||||
|
||||
/// Driven harder than the base, so 4× oversampling for anti-alias headroom.
|
||||
public override var powerAmpOversample: Int { 4 }
|
||||
public override var powerAmpDriveInput: any ValidGeneratorInput { fifteenPowerDrive }
|
||||
|
||||
/// Creates a Chime 15 amp.
|
||||
///
|
||||
/// - Parameters:
|
||||
/// - inputBus: Audio bus index to read the dry input from. Defaults to `0`.
|
||||
/// - outputBus: Audio bus index to write the processed output to. Defaults to `0`.
|
||||
public init(inputBus: Int = 0, outputBus: Int = 0) {
|
||||
super.init(name: "Chime 15", inputBus: inputBus, outputBus: outputBus)
|
||||
gain = 6.0 // grittier starting point than the big AC voice
|
||||
cab = 5.0 // Bright 1×12
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
// ChimeNormalAmpPedal.swift
|
||||
// Lyrebird
|
||||
//
|
||||
// Copyright (c) 2026 Joshua Parmenter / realizedsound
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
import LyrebirdSynth
|
||||
import LyrebirdUI
|
||||
|
||||
/// Vox-voiced **Normal channel** — the AC30's non-top-boost side: warmer and rounder than the
|
||||
/// bright top-boost voice, with the same high clean headroom.
|
||||
///
|
||||
/// A ``ChimeAmpPedal`` (Cut voice) voiced darker (lower treble default, a touch more Cut) to stand
|
||||
/// in for the plainer Normal-channel EQ.
|
||||
public final class ChimeNormalAmpPedal: ChimeAmpPedal {
|
||||
|
||||
public override var summaryText: String {
|
||||
"Vox Normal channel — warm, round, high-headroom chime with a Cut control."
|
||||
}
|
||||
|
||||
/// Creates a Chime Normal amp.
|
||||
///
|
||||
/// - Parameters:
|
||||
/// - inputBus: Audio bus index to read the dry input from. Defaults to `0`.
|
||||
/// - outputBus: Audio bus index to write the processed output to. Defaults to `0`.
|
||||
public init(inputBus: Int = 0, outputBus: Int = 0) {
|
||||
super.init(name: "Chime Normal", inputBus: inputBus, outputBus: outputBus)
|
||||
gain = 5.0
|
||||
treble = 0.5 // rounder top than the top-boost voice
|
||||
cut = 0.3 // a shade darker by default
|
||||
cab = 0.0 // American 1×12 — plainer than the bright cab
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user