Release 2.0.0: metronome, rig mute + shortcuts, set-list ordering, per-rig persistence
- Visual metronome tempo indicator (pendulum playhead) replacing the flashing LED - Rig Mute (Cmd-Z) hard-silence, distinct from Bypass Rig; wired to header, board menu, MIDI - Keyboard shortcuts: Cmd-1..9 board switch, Cmd-Shift-1..0 set-list rig load, Cmd-Z mute (macOS native menus + iOS/iPadOS hardware keyboards) - Rig set-list ordering: drag or Move Up/Down in the picker; order saved and archive-portable - Persist tempo, input selection, and engine I/O with a rig (I/O applied via opt-in applyChannelLayout, not forced on load) - Fix archive import colliding set-list positions with existing rigs - Remove ShoeGazeDemo / ShoeGazeiOSDemo apps and projects; keep the two Builder apps - Bump marketing version to 2.0.0 on both Builder projects; pin Lyrebird 1.2.3 - Add CHANGELOG.md Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -18,7 +18,15 @@ extension ShoeGaze {
|
||||
/// - Returns: A `ShoeGazeState` reflecting the current rig.
|
||||
public func captureState() -> ShoeGazeState {
|
||||
let boardStates: [BoardState] = boards.map { $0.captureState() }
|
||||
return ShoeGazeState(boards: boardStates, midiMap: midiMap)
|
||||
return ShoeGazeState(
|
||||
boards: boardStates,
|
||||
midiMap: midiMap,
|
||||
bpm: clock.bpm,
|
||||
tempoEnabled: tempoEnabled,
|
||||
inputSource: inputSource,
|
||||
numInputChannels: engine.numInputChannels,
|
||||
numOutputChannels: engine.numOutputChannels
|
||||
)
|
||||
}
|
||||
|
||||
/// Captures the current rig as a named ``RigEntry`` suitable for the rig library.
|
||||
@@ -93,11 +101,39 @@ extension ShoeGaze {
|
||||
throw PresetError.unsupportedVersion(state.version)
|
||||
}
|
||||
|
||||
// Note: `state.numInputChannels` / `numOutputChannels` are persisted with the rig (see
|
||||
// `captureState`) but intentionally NOT auto-applied here. Forcing the engine's channel
|
||||
// layout on every load would fight the global engine config and clobber the iOS
|
||||
// enable-live-input flow (rebuild engine to 1 input, then load a rig saved with 0). Apply a
|
||||
// rig's saved layout deliberately via `applyChannelLayout(from:)` / the config UI instead.
|
||||
|
||||
// Restore the saved input source before rebuilding, since board construction reads it. A
|
||||
// saved live-input channel that no longer exists on this engine falls back to the test loop
|
||||
// (same guard as reconfigureEngine), so the rebuild's addBoard() can't throw on a stale
|
||||
// channel. Absent (older rig) → leave the current input source untouched.
|
||||
if let savedInput: InputSource = state.inputSource {
|
||||
if case .liveInput(let channel) = savedInput,
|
||||
channel < 0 || channel >= engine.numInputChannels {
|
||||
inputSource = .testLoop
|
||||
} else {
|
||||
inputSource = savedInput
|
||||
}
|
||||
}
|
||||
|
||||
teardown()
|
||||
try rebuildAllBoards(from: state)
|
||||
// Restore the rig's MIDI bindings after the boards exist, so a MIDIController re-reading the
|
||||
// map resolves against the freshly rebuilt boards.
|
||||
midiMap = state.midiMap
|
||||
|
||||
// Tempo restore is graph-independent, so it happens after the rebuild. Absent (older rig) →
|
||||
// leave the current session tempo untouched.
|
||||
if let savedBpm: Double = state.bpm {
|
||||
clock.bpm = savedBpm
|
||||
}
|
||||
if let savedTempoEnabled: Bool = state.tempoEnabled {
|
||||
setTempoEnabled(savedTempoEnabled)
|
||||
}
|
||||
}
|
||||
|
||||
/// Rebuilds every board from a snapshot with all-or-nothing semantics.
|
||||
|
||||
Reference in New Issue
Block a user