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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user