40fa590196
Bump Lyrebird to 1.7.1 (ProteusModelImporter) and add a neural amp-capture pedal. - NeuralAmpPedal: loads a GuitarML Proteus/NeuralPi model (via ProteusModelImporter) and runs it with LSTMAmp on the gain-trimmed input; passes through clean when no model is loaded. Model files are user-supplied, not bundled (GuitarML = GPL-3.0). - PedalState gains an optional `resourcePath` (backward-compatible, decodeIfPresent) and Pedal a matching `resourcePath` property, wired through captureState/applyState — so the loaded model file persists across rig save/load. The neural pedal reads it at build() (applied on rebuild). This foundation also unblocks a future custom-cabinet-IR path. - Registered in PedalRegistry / PedalType / PedalCategory (.gain) / palette / enclosure color; Help acknowledges the GuitarML model format. Tests: no-model passthrough; loaded model transforms output & differs from passthrough; gain affects modeled output; resourcePath round-trips through PedalState; gain knob exposed; registry resolves "Neural Amp". Full suite 501. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
63 lines
2.6 KiB
Swift
63 lines
2.6 KiB
Swift
// swift-tools-version: 6.0
|
|
// ShoeGaze — a standalone guitar-pedalboard sample project for Lyrebird.
|
|
//
|
|
// Depends on the published Lyrebird package by URL. Two products:
|
|
// • LyrebirdShoeGaze — core pedal/board framework (no SwiftUI).
|
|
// • LyrebirdShoeGazeUI — SwiftUI pedalboard views (knobs + bypass toggle).
|
|
//
|
|
// Linkage note: both targets link the *static* Lyrebird products (`Lyrebird`,
|
|
// `LyrebirdUI`). SwiftPM resolves the shared `LyrebirdSynth` target once, so
|
|
// there is a single copy of the module in any consumer — no ObjC class
|
|
// double-registration. The dynamic-product dance used by `LiveCompile/` is only
|
|
// required for runtime dylib hot-swap, which ShoeGaze does not do.
|
|
//
|
|
// The apps live at Demo/ShoeGazeBuilder.xcodeproj (macOS) and
|
|
// Demo/ShoeGazeBuilderiOS.xcodeproj (iPad) — open ShoeGaze.xcworkspace in Xcode
|
|
// and run the matching scheme to build them.
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "LyrebirdShoeGaze",
|
|
platforms: [.macOS(.v15), .iOS(.v18)],
|
|
products: [
|
|
.library(name: "LyrebirdShoeGaze", targets: ["LyrebirdShoeGaze"]),
|
|
.library(name: "LyrebirdShoeGazeUI", targets: ["LyrebirdShoeGazeUI"]),
|
|
],
|
|
dependencies: [
|
|
.package(url: "https://realizedsound.mooo.com/josh/Lyrebird", from: "1.7.1"),
|
|
],
|
|
targets: [
|
|
// The core target depends on LyrebirdUI as well as the synthesis core:
|
|
// pedals expose their knobs as `@UIParam`, whose projected `UIParamNode`
|
|
// (the type `ParameterKnob` binds to) lives in LyrebirdUI. Importing
|
|
// LyrebirdUI here does not pull SwiftUI into ShoeGaze's own sources —
|
|
// it only makes the `@UIParam` wrapper and `UIParamNode` visible.
|
|
.target(
|
|
name: "LyrebirdShoeGaze",
|
|
dependencies: [
|
|
.product(name: "Lyrebird", package: "Lyrebird"),
|
|
.product(name: "LyrebirdUI", package: "Lyrebird"),
|
|
],
|
|
path: "Sources/LyrebirdShoeGaze"
|
|
),
|
|
.target(
|
|
name: "LyrebirdShoeGazeUI",
|
|
dependencies: [
|
|
"LyrebirdShoeGaze",
|
|
.product(name: "LyrebirdUI", package: "Lyrebird"),
|
|
],
|
|
path: "Sources/LyrebirdShoeGazeUI"
|
|
),
|
|
.testTarget(
|
|
name: "LyrebirdShoeGazeTests",
|
|
dependencies: [
|
|
"LyrebirdShoeGaze",
|
|
"LyrebirdShoeGazeUI",
|
|
.product(name: "Lyrebird", package: "Lyrebird"),
|
|
.product(name: "LyrebirdUI", package: "Lyrebird"),
|
|
],
|
|
path: "Tests/LyrebirdShoeGazeTests"
|
|
),
|
|
]
|
|
)
|