# 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: - **`frequency`** carrier 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 via `LFSquare`/`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) - `summary` override, 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