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>
1.5 KiB
1.5 KiB
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:)(noteffect): build oneChorus.Audio(input: dry, delayTime:, depth: $depth, rate: $rate, mix: 1.0, sampleRate: sampleRate, maxDelayTime:)and return its two channels as L/R (do notSumChannels). - Knobs (
effectKnobs):rate0.05–6 Hz (def ~0.8),depth0.0005–0.01 s (def ~0.003). Wet/dry via the basemix(initialMix~0.5). - Constants:
delayTime~0.025 s,maxDelayTime~0.1 s (match Modulation).
Wiring
PedalRegistry.builtIn["Chorus"] = { ChorusPedal() }PedalType.chorus = PedalType("Chorus")PedalViewenclosure color case"Chorus"PedalPaletteView.preferredOrder— near Modulation / Phasersummaryoverride (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.