dc42db0c59
Replace the single hand-saved rig file with a managed library of named rigs persisted in app storage and synced across devices and both builder apps via a shared iCloud container (iCloud.net.realizedsound.ShoeGazeData), falling back to local storage when iCloud is unavailable. Core (LyrebirdShoeGaze/Presets): - RigEntry: named, timestamped ShoeGazeState (a whole multi-board rig). - RigArchive: portable multi-rig JSON bundle for backup/transfer; legacy single-rig files import as a one-rig archive. - RigLibraryStore (@MainActor @Observable): one JSON file per rig, with NSFileCoordinator writes and NSMetadataQuery live remote-change watching. - RigLibraryLocation: iCloud-or-local directory resolver (skips the slow ubiquity lookup when no iCloud account is signed in). - ShoeGaze.loadRig(from: ShoeGazeState) + captureEntry; shared filename sanitizer factored out of BoardVersionStore. UI (LyrebirdShoeGazeUI): - RigLibrarySidebarView: persistent left listing with new/save/save-as/ duplicate/rename/delete/erase-all and archive import/export. - RigNamePrompt; RigLibraryBootstrap one-call shell setup. - ShoeGazeBuilderView: sidebar wired in; selecting a rig replaces the session; File menu / sidebar do whole-library archive import/export. Shells/entitlements: both builder targets own+start the store and carry the iCloud Documents entitlement; NSUbiquitousContainers exposes the rigs in the Files app. (macOS pbxproj also carries a pre-existing 1.0->1.1.1 version bump.) Tests: RigEntry/RigArchive round-trip + RigLibraryStore CRUD/import/export (15 new; full suite 206 passing). Provisioning (manual, not done here): enable the iCloud container on both App IDs and select it in Signing & Capabilities for both targets. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
119 lines
4.0 KiB
Markdown
119 lines
4.0 KiB
Markdown
# ShoeGaze
|
|
|
|
**A virtual guitar-pedalboard framework for macOS and iPadOS, built on [Lyrebird](https://realizedsound.mooo.com/josh/Lyrebird).**
|
|
|
|
ShoeGaze turns Lyrebird's real-time synthesis engine into a stompbox rig: chain modeled
|
|
guitar pedals into one or more signal-flow boards, tweak them live with knobs and switches,
|
|
mix or switch between boards, and save the whole rig to disk. Run it on a synthesized test
|
|
signal (no hardware needed) or on live guitar through an audio input.
|
|
|
|

|
|
|
|
## Features
|
|
|
|
- **22 modeled pedals** across drive, dynamics, EQ/filter, modulation, delay/reverb, and
|
|
pitch — see the catalog below.
|
|
- **Multi-board rigs** — build several boards and a board-mixer bar to **Solo** one (amp-channel
|
|
style) or **Blend** any subset, each with its own level and a click-free crossfade.
|
|
- **Signal-flow editor** — drag pedals in from the palette; reorder, split into parallel or
|
|
stereo lanes, and merge back to mono.
|
|
- **Rig library** — name, save, duplicate, and switch between rigs from a sidebar; synced across
|
|
your devices and both apps via iCloud, with JSON archive import/export for backup.
|
|
- **Recording** — capture your output to timestamped files.
|
|
- **Test signal or live input** — a built-in arpeggiated test loop (shared across all boards so
|
|
they stay phase-locked) or a hardware input channel.
|
|
- **SwiftUI views** — a complete stompbox UI (`LyrebirdShoeGazeUI`) or just the headless
|
|
framework (`LyrebirdShoeGaze`) to drive your own interface.
|
|
|
|
## Pedal catalog
|
|
|
|
| Category | Pedals |
|
|
|---|---|
|
|
| Drive & dynamics | Overdrive, Fuzz, Compressor, Sustainer, Limiter, Noise Gate |
|
|
| EQ & filter | Graphic EQ, Auto-Wah, Mutant, Phaser |
|
|
| Modulation | Tremolo, Modulation, Chorus, Ring Modulator, Diffuser |
|
|
| Delay & reverb | Delay, Feedback Delay, Multi-Tap Delay, Ping-Pong, Reverb |
|
|
| Pitch & octave | Octave Splitter, Bass Octaver |
|
|
|
|
Every pedal exposes its parameters as knobs/switches and round-trips through the rig save format.
|
|
|
|
## Requirements
|
|
|
|
- macOS 15+ / iPadOS 18+ (iPad, landscape)
|
|
- Swift 6.0 toolchain / Xcode 16+
|
|
- [Lyrebird](https://realizedsound.mooo.com/josh/Lyrebird) 1.2.0+
|
|
|
|
## Packages
|
|
|
|
Two library products:
|
|
|
|
- **`LyrebirdShoeGaze`** — the core pedal/board framework (no SwiftUI).
|
|
- **`LyrebirdShoeGazeUI`** — SwiftUI pedalboard views (knobs, switches, faders, board mixer).
|
|
|
|
Add the dependency in your `Package.swift`:
|
|
|
|
```swift
|
|
.package(url: "https://realizedsound.mooo.com/josh/ShoeGaze", from: "1.0.0"),
|
|
```
|
|
|
|
## Getting started
|
|
|
|
Build a board and start the engine (macOS):
|
|
|
|
```swift
|
|
import Lyrebird
|
|
import LyrebirdShoeGaze
|
|
|
|
let driver = CoreAudioDriver()
|
|
let engine = SynthesisEngine(
|
|
blockSize: 512, sampleRate: 48_000,
|
|
numOutputChannels: 2, numInputChannels: 1,
|
|
numAudioBuses: 256, driver: driver
|
|
)
|
|
|
|
let shoeGaze = ShoeGaze(engine: engine) // defaults to the test-loop signal
|
|
let board = try shoeGaze.addBoard()
|
|
try shoeGaze.appendPedal(.overdrive, to: board)
|
|
try shoeGaze.appendPedal(.delay, to: board)
|
|
try shoeGaze.finalizeBoard(board)
|
|
|
|
try engine.start()
|
|
```
|
|
|
|
Drop in the full builder UI:
|
|
|
|
```swift
|
|
import SwiftUI
|
|
import LyrebirdShoeGazeUI
|
|
|
|
struct ContentView: View {
|
|
let shoeGaze: ShoeGaze
|
|
var body: some View {
|
|
ShoeGazeBuilderView(shoeGaze: shoeGaze)
|
|
}
|
|
}
|
|
```
|
|
|
|
## Demo apps
|
|
|
|
Open `ShoeGaze.xcworkspace` in Xcode and run a scheme from `Demo/`:
|
|
|
|
- **ShoeGazeBuilder** (macOS) / **ShoeGazeBuilderiOS** (iPad) — the full palette + board builder.
|
|
- **ShoeGazeDemo** / **ShoeGazeiOSDemo** — a minimal player view.
|
|
|
|
## Screenshots
|
|
|
|
| macOS builder | Board mixer |
|
|
|---|---|
|
|
|  |  |
|
|
|
|
## Built on Lyrebird
|
|
|
|
ShoeGaze is a sample project for [Lyrebird](https://realizedsound.mooo.com/josh/Lyrebird), a
|
|
native Swift audio-synthesis framework. Pedals are Lyrebird `Synthesizer` graphs of `Generator`
|
|
nodes; the board/engine plumbing handles real-time-safe signal routing and scheduling.
|
|
|
|
## License
|
|
|
|
MIT — see [LICENSE](LICENSE).
|