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:
2026-06-21 16:53:55 -07:00
parent 02cee9a358
commit 30e96b8ee1
5 changed files with 393 additions and 3 deletions
@@ -49,7 +49,8 @@ public final class StereoSplitSection {
internal let dryTapBus: AudioBus
/// The route collector, set by ``PedalBoard/collectStereo(_:)``. `nil` until then.
internal var collector: StereoRouteCollector?
/// Exposed for UI binding (its route gains are `@Observable`).
public internal(set) var collector: StereoRouteCollector?
/// Route requested before the collector exists; applied when `collectStereo(_:)` wires it.
private var pendingRoute: StereoRoute = .stereo