Add Chorus, Sustainer, Ring Modulator pedals + pedal-info UI
Pedals (each registered, with PedalType static, enclosure color, palette order, summary, and tests): - Chorus: true-stereo widener (two anti-phase modulated delay lines), distinct from the mono-summed Modulation chorus. - Sustainer: one-knob compressor (sustain drives threshold/ratio/makeup via LinLin) + tone low-pass. - Ring Modulator: dry × tunable sine carrier. Pedal-info UI: - Pedal.summary (open var, overridden by all 21 pedals; mandatory going forward). - PedalRegistry.summary(for:) for the picker. - PedalPaletteView rows show the summary as a subtitle. - PedalView gains an ⓘ button → PedalInfoView sheet showing the description and the effect controls (knobs/sliders/switches) with ranges/options — excludes the common Mix/Level/bypass. Tests: per-pedal build/param-change/knob-list; every built-in pedal has a non-empty summary; info excludes common controls. 183 tests pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -128,6 +128,17 @@ open class Pedal: SynthesizerBase {
|
||||
self.mix = initialMix
|
||||
}
|
||||
|
||||
// MARK: - Description
|
||||
|
||||
/// One-line, user-facing description of what this pedal does.
|
||||
///
|
||||
/// Shown as a subtitle in the pedal picker and as the body of the pedal's info panel.
|
||||
/// **Every pedal must override this** with a short, non-proprietary sentence — the empty
|
||||
/// default is a placeholder only (a test asserts every registered pedal sets it).
|
||||
open var summary: String {
|
||||
""
|
||||
}
|
||||
|
||||
// MARK: - UI knob descriptors
|
||||
|
||||
/// Effect-specific knobs for this pedal, listed before the common knobs in the UI.
|
||||
|
||||
Reference in New Issue
Block a user