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>
2.0 KiB
2.0 KiB
1.1 — Pedal info UI (description + control ranges)
Show a short description of each pedal in the picker, and an info button on the pedal that opens a panel with the description and the effect controls (knobs / sliders / switches) plus their value ranges — excluding the common Mix / Level / bypass controls.
Model (core, LyrebirdShoeGaze)
- Add to
Pedal:open var summary: String { "" }— one-line description, overridden by every pedal. Single source of truth. PedalRegistry.summary(for displayName: String) -> Stringfor the palette: instantiatesbuiltIn[name]?()and reads.summary. Noengine.add, sobuild()never runs — only a cheap object alloc. Cache in the palette view.- (Optional stretch) richer rows: add
detail: String?and/orunit: String?toPedalKnob/PedalSlider/PedalSwitch. Not required —range/optionsalready carry enough to show ranges.
Palette (PedalPaletteView)
- Row →
VStack(alignment: .leading): name (callout) +summary(caption2, secondary, ~2 lines). Keep the+glyph and.draggable.
Pedal info affordance (PedalView)
- Small ⓘ button in the name-plate (top-right of the enclosure header).
- Tap →
.sheet/.popoveron its own anchor node (one presentation per node — same pattern as the file pickers) presenting a newPedalInfoView(pedal:).
PedalInfoView (LyrebirdShoeGazeUI)
- Title =
pedal.displayName; body =pedal.summary. - Controls list from
effectKnobs+effectSliders+effectSwitchesonly (notknobs, which includes Mix/Level; not bypass):- knob / slider →
label+ range, e.g."200 – 8000"(raw range; addunitlater). - switch →
label+ option titles.
- knob / slider →
Wiring
- Override
summaryon all pedals (short sentences). - Going forward, every new pedal MUST set
summary— see CLAUDE.md.
Tests
- every entry in
PedalRegistry.builtInproduces a pedal with non-emptysummary. PedalInfoView(or a helper that builds its rows) lists exactly the effect controls, not the common three.