9bc049d8a3
docs/plans: chorus (stereo), sustainer, ring modulator, and pedal-info UI. CLAUDE.md: project conventions + a required checklist for new pedals, including a mandatory user-facing summary used by the pedal-info UI. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
35 lines
1.5 KiB
Markdown
35 lines
1.5 KiB
Markdown
# 1.1 — Chorus pedal (true stereo)
|
||
|
||
## Why distinct from Modulation
|
||
`ModulationPedal` already wraps Lyrebird's `Chorus.Audio` and **sums to mono**
|
||
(`SumChannels`). The new **Chorus** keeps the signal **stereo** (a `widener` pedal) and
|
||
exposes more control — a lusher, wider voice than the mono Modulation classic. Keep both.
|
||
|
||
## Implementation
|
||
`Sources/LyrebirdShoeGaze/Pedals/ChorusPedal.swift`
|
||
|
||
- `override var channelKind: PedalChannelKind { .widener }`
|
||
- Override `wideEffect(_ dry:) -> (left:right:)` (not `effect`): build one
|
||
`Chorus.Audio(input: dry, delayTime:, depth: $depth, rate: $rate, mix: 1.0,
|
||
sampleRate: sampleRate, maxDelayTime:)` and return its two channels as L/R
|
||
(do **not** `SumChannels`).
|
||
- Knobs (`effectKnobs`): `rate` 0.05–6 Hz (def ~0.8), `depth` 0.0005–0.01 s (def ~0.003).
|
||
Wet/dry via the base `mix` (`initialMix` ~0.5).
|
||
- Constants: `delayTime` ~0.025 s, `maxDelayTime` ~0.1 s (match Modulation).
|
||
|
||
## Wiring
|
||
- `PedalRegistry.builtIn["Chorus"] = { ChorusPedal() }`
|
||
- `PedalType.chorus = PedalType("Chorus")`
|
||
- `PedalView` enclosure color case `"Chorus"`
|
||
- `PedalPaletteView.preferredOrder` — near Modulation / Phaser
|
||
- `summary` override (see info-UI plan)
|
||
|
||
## Tests (`Tests/LyrebirdShoeGazeTests/ChorusPedalTests.swift`)
|
||
- builds + non-silent
|
||
- stereo: L channel ≠ R channel (the point of the pedal)
|
||
- rate and depth each change the output
|
||
|
||
## Open question
|
||
Keep both Modulation (mono) and Chorus (stereo) — recommended. Alternative: rename
|
||
Modulation → "Vibrato". Not doing that here.
|