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.6 KiB
1.6 KiB
1.1 — Ring Modulator pedal
Multiplies the signal by a tunable carrier → metallic / bell / robot sidebands (sum &
difference of input and carrier). Classic ring mod = dry × carrier — no dedicated
Lyrebird generator needed. (Ring1–4 are SC math variants; FrequencyShifter is SSB,
a possible stretch mode.)
Implementation
Sources/LyrebirdShoeGaze/Pedals/RingModulatorPedal.swift
effect:let carrier = OscSin.Audio(freq: $frequency); return dry * carrier- Knobs:
frequencycarrier in Hz. Range ~20–2000 (def ~220). <~30 Hz ≈ tremolo/AM; audio range = classic ring mod.- wet/dry via inherited
mix(initialMix~0.5 — harsh, keep dry present).
- Optional waveform switch (
PedalSwitch): Sine / Square carrier (square = more sidebands, harsher) — square viaLFSquare/OscSquare. If added, preset round-trip test. - Stretch — Mode switch (Ring / Shift): add an SSB pitch mode wrapping Lyrebird's
FrequencyShifter. Base pass = Ring only; Shift is a follow-up.
Wiring
PedalRegistry.builtIn["Ring Modulator"] = { RingModulatorPedal() }PedalType.ringModulator = PedalType("Ring Modulator")- enclosure color, palette order (group with Phaser / Mutant "filter / weird" section)
summaryoverride, e.g. "Multiplies your signal by a tunable carrier for metallic, bell-like, and robotic tones."
Tests (Tests/LyrebirdShoeGazeTests/RingModulatorPedalTests.swift)
- builds + non-silent
- frequency change alters output (e.g. 100 Hz vs 800 Hz windows differ)
- (if switch added) square vs sine differ; preset round-trip of the switch