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:
2026-08-10 17:04:58 -07:00
parent 44e6c35550
commit 2aea609f34
3 changed files with 95 additions and 50 deletions
@@ -96,4 +96,30 @@ public struct FactoryRig: Identifiable, Sendable {
self.category = category
self.build = .session(sessionBuild)
}
/// Creates a factory rig from a pre-captured ``ShoeGazeState``.
///
/// The rig's content is the supplied state verbatim — used for a complex, hand-authored rig
/// captured from the app. Seeding builds the entry directly from `state` (no live session).
///
/// - Parameters:
/// - id: Stable identifier (a fixed literal per rig — see ``id``).
/// - name: Rig name (picker title + saved entry name).
/// - blurb: User-facing description of the sound.
/// - category: Sonic family for picker grouping.
/// - state: The captured rig content to ship.
@MainActor
public init(
id: UUID,
name: String,
blurb: String,
category: FactoryRigCategory,
state: ShoeGazeState
) {
self.id = id
self.name = name
self.blurb = blurb
self.category = category
self.build = .state({ state })
}
}