feat(rigs): ship the tweaked Garcia rig as a captured state
Replace the code-built Garcia with the user's hand-authored version, transcribed verbatim as a ShoeGazeState: Board 1 (Bass Octaver, Mutant, Overdrive, Graphic EQ, Phaser, Delay, Fullerton Reverb) and Board 2 (Overdrive, Graphic EQ, Compressor, Fullerton Reverb), preserving exact mix, graphic-EQ slider, cab-selector and amp sag/bias values. Input source and channel counts are omitted so the rig stays input-agnostic. Adds a FactoryRigBuild.state case (and matching FactoryRig init) for rigs shipped as a pre-captured state rather than a live builder, and bumps seedVersion to 3 so existing libraries refresh Garcia to the new version. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -14,4 +14,11 @@ public enum FactoryRigBuild: Sendable {
|
||||
/// Builds the whole graph against the session (boards and/or routers), owning its own
|
||||
/// `addBoard`/`finalizeBoard` and `makeChainRouter`/`finalize` lifecycle.
|
||||
case session(@MainActor (_ session: ShoeGaze) throws -> Void)
|
||||
|
||||
/// Ships a pre-captured ``ShoeGazeState`` directly — the entry is built from it with no live
|
||||
/// session. Use for a complex, hand-authored rig captured from the app, where transcribing the
|
||||
/// exact `PedalState` arrays (mix, sliders, selectors, advanced values) is more faithful than
|
||||
/// re-deriving them through typed setters. The closure returns the state so the case stays
|
||||
/// `Sendable` without requiring `ShoeGazeState` itself to be `Sendable`.
|
||||
case state(@MainActor () -> ShoeGazeState)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user