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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user