LyrebirdAUv3Demo
Reference AUv3 plugin built on Lyrebird's LyrebirdAudioUnit. Ships
Realized Sound: LyrebirdFM — a two-operator FM synthesizer — as an
aumu instrument loadable in any AUv3 host (Logic, GarageBand, AUM,
Loopy Pro, etc.).
Copy this directory as the starting point for your own Lyrebird-based AUv3 plugin.
Layout
LyrebirdAUv3Demo/
LyrebirdAUv3Demo.xcodeproj Hand-written Xcode project (app + extension)
LyrebirdAUv3Demo/ Container app target (.app)
LyrebirdAUv3DemoApp.swift SwiftUI app entry — minimal
ContentView.swift One-screen "installer" view
Info.plist
LyrebirdAUv3Demo.entitlements App sandbox
LyrebirdFMExtension/ AUv3 extension target (.appex)
LyrebirdFM.swift The two-op FM SynthesizerBase subclass
LyrebirdFMAudioUnit.swift LyrebirdAudioUnit subclass (metadata + factory)
LyrebirdFMAudioUnitViewController.swift AUViewController + AUAudioUnitFactory stub
Info.plist AudioComponents (aumu / LBFM / RLZS)
LyrebirdFMExtension.entitlements App-extension sandbox
Build
From the command line
xcodebuild \
-project Demos/LyrebirdAUv3Demo/LyrebirdAUv3Demo.xcodeproj \
-scheme LyrebirdAUv3Demo \
-configuration Release \
CODE_SIGN_IDENTITY="-" \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGNING_ALLOWED=NO \
SWIFT_USE_INTEGRATED_DRIVER=NO \
build
SWIFT_USE_INTEGRATED_DRIVER=NO is the Xcode 26 workaround documented
elsewhere in the Lyrebird build notes; it disables explicit-module-build
so SPM dynamic-framework modules resolve correctly. The
CODE_SIGN_IDENTITY="-" triple disables signing entirely for local
builds — for distribution you must set DEVELOPMENT_TEAM to your Apple
Developer Team ID and use Automatic signing.
From Xcode
- Open
LyrebirdAUv3Demo.xcodeproj. - Pick the LyrebirdAUv3Demo scheme.
- In each target's Signing & Capabilities tab, set your Team. The
bundle ID
net.realizedsound.LyrebirdAUv3Demois a Realized-Sound placeholder — change to a prefix you own. - Add
SWIFT_USE_INTEGRATED_DRIVER = NOunder each target's Build Settings → User-Defined (or set it project-wide). Required on Xcode 26+. - Build & Run the container app once. This registers the embedded extension with the AU registry.
Validate with auval
After running the container app at least once so the extension is registered:
auval -v aumu LBFM RLZS
A PASS summary is what you want. Common gotchas the wrapper already
handles:
latencyreturns 0 (LyrebirdAudioUnit.latency).tailTimereturns 0 (instrument has no internal tail).parameterTreeis populated synchronously ininit, soauvalsees it before render.internalRenderBlockreturnsnoErrand writes valid samples.maximumFramesToRenderis honoured byAUv3Drivervia ring sizing.
If you see "Cannot get Component's Name strings" or "didn't find the
component", the extension was not registered. Either the container app
has not been launched yet, or lsregister did not pick it up. Re-run
the container app from Xcode, then re-run auval.
Smoke test in a host
- Logic Pro / GarageBand: Track → New Software Instrument → AU
Instruments → Realized Sound → LyrebirdFM. Play a few MIDI notes
(this template ships no MIDI handler — the plugin instantiates and
accepts parameter automation, but won't respond to note input until
you wire
LyrebirdAudioUnit.midiHandler; seeAUv3.md). - AUM / Loopy Pro (iOS): same idea once the iOS variant of this demo lands.
What's in the wrapper
LyrebirdFMAudioUnit is the entire wrapper:
public final class LyrebirdFMAudioUnit: LyrebirdAudioUnit {
public override class func makeSynthesizer() -> SynthesizerBase { LyrebirdFM() }
public override class func parameterMetadata() -> [String: LyrebirdAUParameterInfo] {
[
"carrierFreq": .init(min: 20, max: 8000, unit: .hertz, displayName: "Carrier Freq"),
"modRatio": .init(min: 0.25, max: 16, unit: .generic, displayName: "Mod Ratio"),
"modIndex": .init(min: 0, max: 8, unit: .generic, displayName: "Mod Index"),
"amp": .init(min: 0, max: 1, unit: .linearGain, displayName: "Output Amp"),
]
}
}
LyrebirdAudioUnit does the rest: parameter tree from Mirror, engine
lifecycle, ring-buffered render, fullState save / restore. See
Sources/Lyrebird/Lyrebird.docc/AUv3.md
for the full API surface.
Copying this template
To ship your own AUv3 plugin:
- Duplicate
Demos/LyrebirdAUv3Demo/under a new name. - Replace
LyrebirdFMwith your ownSynthesizerBasesubclass. - Update
componentSubType(4-char code, must be unique to your plugin) andmanufacturer(your 4-char manufacturer code) in the extension'sInfo.plist → NSExtension → NSExtensionAttributes → AudioComponents. - Update
PRODUCT_BUNDLE_IDENTIFIERin both targets' build settings to your own reverse-DNS prefix. - Replace
Realized Sound: LyrebirdFMstrings with your own manufacturer + plugin name. - Rebuild, run,
auval -v <type> <subType> <manufacturer>.
Not yet wired in this template
The framework supports all of the following — this particular demo template just doesn't include them yet. Each is a follow-up exercise when copying the template:
- MIDI note input — set
au.midiHandlerand dispatch viaLyrebirdAUVoicePoolBinding. - SwiftUI parameter UI in the view controller — drop in
LyrebirdSynthView(seeLyrebirdSynthView). - Source-slot preset save/restore — conform any source generator to
LyrebirdAUPresetCodableand register it. - Effect-type AU (
aufx) — overrideLyrebirdAudioUnit/lyrebirdInputChannelsand read host audio viaAUInput/Audio. - iOS container app target — duplicate the Mac app target and switch the platform.
The demo deliberately ships the smallest cut that proves the wrapper loads and validates.