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 — Sustainer pedal
A one-knob sustain: heavy compression + makeup gain to hold notes, distinct from the
Compressor pedal (which exposes threshold/ratio directly).
Implementation
Sources/LyrebirdShoeGaze/Pedals/SustainerPedal.swift
effect:Compressor.Audio(in: dry, threshold:, ratio:, attack: ~0.005, release: ~0.4, kneeWidth: 0, makeupGain:).sustainknob (0–10, def ~5) — the single perceptual control. Maps internally:- threshold:
-6 dB → -36 dBas sustain rises - ratio:
2 → 10 - makeupGain: tracks the added gain reduction (so output stays even)
Implement the map with
LinLinon the$sustainnode (or fold into Compressor'sValidGeneratorInputparams via arithmetic on$sustain).
- threshold:
toneknob (optional) —RBJLowPass.Audio(input:, freq: $tone, q: 0.707)to round the squashed top end. Range ~800–8000 Hz.level(inherited) for output trim.initialMix= 1.0 (in-line).- Stretch — floor/gate: reuse the NoiseGate idea (
AmplitudeFollower→Schmidt→LinLinfloor →Lag→ ×) so infinite sustain doesn't surface hiss. Optional knobfloor, or a fixed gentle gate. Defer if it complicates the one-knob feel.
Wiring
PedalRegistry.builtIn["Sustainer"] = { SustainerPedal() }PedalType.sustainer = PedalType("Sustainer")- enclosure color, palette order (near Compressor / Limiter)
summaryoverride
Tests (Tests/LyrebirdShoeGazeTests/SustainerPedalTests.swift)
- builds + non-silent
- sustain knob changes dynamics: low vs high sustain → measurable RMS/level difference on a decaying input window
- knob list assertion