Boards sheet, ⌘1–9 switching, unified player bar, input persistence

Boards sheet (BoardsSheetView): rename, drag-reorder, swipe-delete, plus
per-board enable/solo/level and a Solo/Blend + crossfade header. Opened from a
"Boards…" button in the builder; presented with medium/large detents on iOS.
Makes ShoeGaze.moveBoard public to back the reorder.

Keyboard switching: hidden ⌘1…⌘9 buttons in the builder solo (live-switch to)
the matching board and select it as the edit target.

Unified player: ShoeGazeView drops its bespoke Active picker + crossfade field
and hosts the shared BoardBarView, matching the builder.

Input persistence: the builder saves the input choice (test loop vs live
channel) to UserDefaults and restores it on appear. With no saved choice it
defaults to live input when the mic is already authorised and an input channel
exists, else stays on the test loop. The iOS builder now opens one input
channel so live input is actually available there.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-23 17:38:43 -07:00
parent c25d783b71
commit 4627b3b800
5 changed files with 349 additions and 75 deletions
@@ -24,6 +24,11 @@ final class ShoeGazeBuilderiOSAppModel {
private static let blockSize: Int = 512
private static let outputChannels: Int = 2
// Kept at 0: with input channels the iOS driver switches the session to `.playAndRecord`
// and enables the RemoteIO input element, which makes iOS prompt for microphone access at
// engine start even in test-loop mode. iOS live input needs a permission-gated engine
// rebuild (request mic → reconstruct the engine with an input channel) before it can be
// enabled here without that surprise prompt.
private static let numAudioBuses: Int = 256
private static let seedPedalType: String = "Overdrive"