Add "All Boards On" as a mappable switch action

Maps the rig's "All" button (selectAllBoards — cancel any solo, bring every
board back up) to a Program Change. One-shot (no latch); rig-level, so no
board hint. Appears in the Switches section under Rig Bypass.

Test: PC fires selectAllBoards, clearing an active solo. 320 green; both app
targets build.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-01 12:40:27 -07:00
parent 1ba622a611
commit a7bbda4166
4 changed files with 27 additions and 1 deletions
@@ -317,6 +317,9 @@ public final class MIDIController {
switch action {
case .rigBypass:
shoeGaze.toggleRigBypassed()
case .allBoards:
// One-shot: cancel any solo and bring every board back up.
shoeGaze.selectAllBoards(crossfadeSeconds: boardActionCrossfade)
case .boardSolo(let boardIndex):
guard let board: PedalBoard = board(at: boardIndex), matchesBoard(board, hint) else { return }
shoeGaze.soloBoard(board, crossfadeSeconds: boardActionCrossfade)
@@ -339,7 +342,7 @@ public final class MIDIController {
/// A display-name hint for an action, captured at learn time for stale-binding detection.
private func hint(for action: MIDIMap.Action) -> String? {
switch action {
case .rigBypass:
case .rigBypass, .allBoards:
return nil
case .boardSolo(let index), .boardAudible(let index), .boardBypass(let index):
return board(at: index)?.label