Add stereo-routing SwiftUI views
- StereoRouteControlView: 4-way StereoRoute segmented selector + L/R/DRY source LEDs, bound to StereoSplitSection.route (observes collector gains). - StereoSplitSectionView: route control + L/R branch pedal rows. - StereoWidthBadge: MONO/STEREO pill from PedalBoard.width. - Expose StereoSplitSection.collector publicly for UI observation. - Document UI + preset scope in stereo-routing-design.md. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -169,5 +169,26 @@ Modified:
|
||||
- `BoardOutputMaster.swift` (width-aware output)
|
||||
- `ShoeGaze.swift` (`finalizeBoard` passes right tail bus)
|
||||
|
||||
Deferred (follow-up): SwiftUI views for the route segmented control and stereo width indicators;
|
||||
preset round-trip of stereo split topology.
|
||||
## UI
|
||||
|
||||
`Sources/LyrebirdShoeGazeUI/`:
|
||||
- `StereoRouteControlView` — 4-way `StereoRoute` segmented selector + L/R/DRY source LEDs,
|
||||
bound to a `StereoSplitSection.route` (mirrors `SplitterView`).
|
||||
- `StereoSplitSectionView` — route control + the two branch (L/R) pedal rows (mirrors
|
||||
`ParallelSectionView`).
|
||||
- `StereoWidthBadge` — MONO/STEREO pill driven by `PedalBoard.width`.
|
||||
|
||||
These are standalone public views, like `SplitterView`/`ParallelSectionView`. `collector` is
|
||||
exposed on `StereoSplitSection` so the route control can observe its `@Observable` route gains.
|
||||
|
||||
## Presets
|
||||
|
||||
A saved rig captures each board's *linear* `pedals` chain only (unchanged). Wideners and
|
||||
stereo-native pedals added via `board.add(_:)` are in that chain, so they round-trip — the
|
||||
mono → stereo width transition replays on load. `OctaveUpSplitterPedal` ("Octave Splitter") and
|
||||
`PingPongDelayPedal` ("Ping-Pong") are registered in `PedalRegistry`. Split-region *topology*
|
||||
(`splitStereo()` branches) is not serialized — the same limitation as parallel `split()`.
|
||||
|
||||
Deferred (follow-up): wiring a `.stereo` mode into the Demo Xcode app (DemoRootView +
|
||||
ShoeGazeDemoController + project), and serializing split-region topology (would also need to
|
||||
cover parallel sections for consistency).
|
||||
|
||||
Reference in New Issue
Block a user