feat(script-phaser): one-knob four-stage phaser (orange script voicing)
Add ScriptPhaserPedal, modeled on the classic one-knob four-stage orange phaser. A single Speed knob sweeps a fixed four-stage all-pass cascade (Phaser.Audio with stages: 4), and a Voicing two-state switch picks Script (smoother, lower feedback) or Block (more resonant, higher feedback). The voicing maps to the feedback amount through a live linear expression — no rebuild, since feedback is a live Phaser parameter — and a short Lag glides the coefficient so a Script↔Block toggle doesn't step audibly. Distinct from the general-purpose Phaser (six stages, with rate and feedback knobs). Named to avoid the trademark (per the amp convention) and the bare "Phase <n>" the code-style rule bans. Wire into PedalType, the registry, and the modulation category; add to the README modulation catalog. 8 tests: voicing and speed each change the output by a magnitude (RMS difference), determinism (bit-identical, no RNG), a click-free bypass flip at the 512-sample block, knob/switch exposure, preset round-trip, registry presence. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -53,6 +53,7 @@ public enum PedalCategory: String, CaseIterable, Identifiable, Sendable {
|
||||
"Cabinet": .cabinet,
|
||||
"Tremolo": .modulation, "Phaser": .modulation, "Modulation": .modulation, "Chorus": .modulation,
|
||||
"Flanger": .modulation, "Vibrato": .modulation, "Rotary": .modulation, "Ring Modulator": .modulation,
|
||||
"Script Phaser": .modulation,
|
||||
"Bass Octaver": .pitch, "Octave Splitter": .pitch, "Harmonizer": .pitch, "Whammy": .pitch,
|
||||
"Poly Octave": .pitch,
|
||||
"Delay": .delay, "Feedback Delay": .delay, "Multi-Tap Delay": .delay, "Ping-Pong": .delay,
|
||||
|
||||
Reference in New Issue
Block a user