v1.3.0 release: graceful-release fix, quickstart template + demo, documentation accuracy pass

- Fixed: SynthesizerBase subclasses' release/free now dispatch correctly (gated
  synths were hard-freed instead of released).
- New: quickstart project template + LyrebirdQuickstartDemo.
- Docs: every example typechecked or provably illustrative (426->542); ~20
  wrong-API examples fixed; root docs brought under the compile guard.
- Fixed: NRT/Score demo Package.swift build from terminal again.

See RELEASES.md for details.
This commit is contained in:
2026-07-17 14:05:01 -07:00
parent 63d6e0746f
commit 560724d116
149 changed files with 5010 additions and 1029 deletions
@@ -21,9 +21,9 @@ A `struct` property wrapper that is simultaneously:
import LyrebirdUI
class MySynth: SynthesizerBase {
@UIParam var amplitude: LyrebirdFloat = 0.5
@UIParam var frequency: LyrebirdFloat = 440.0
@UIParam var pan: LyrebirdFloat = 0.0
@UIParam var amplitude: Double = 0.5
@UIParam var frequency: Double = 440.0
@UIParam var pan: Double = 0.0
override func build() {
let osc = OscSin.Audio(freq: $frequency)
@@ -221,9 +221,9 @@ import LyrebirdSynth
import LyrebirdUI
final class SineTone: SynthesizerBase {
@UIParam var frequency: LyrebirdFloat = 440.0
@UIParam var amplitude: LyrebirdFloat = 0.25
@UIParam var pan: LyrebirdFloat = 0.0
@UIParam var frequency: Double = 440.0
@UIParam var amplitude: Double = 0.25
@UIParam var pan: Double = 0.0
override func build() {
let osc = OscSin.Audio(freq: $frequency)
@@ -245,7 +245,12 @@ final class SineController {
}
func toggle() {
isPlaying ? engine.remove(synth) : engine.add(synth)
if isPlaying {
engine.remove(synth)
} else {
// engine.add is throwing; toggle() is not, so handle the error here.
do { try engine.add(synth) } catch { print("[Lyrebird] engine.add failed: \(error)") }
}
isPlaying.toggle()
}
}
@@ -13,9 +13,9 @@ so any parameter controllable from code is automatically controllable from a GUI
import LyrebirdUI
class MySynth: SynthesizerBase {
@UIParam var frequency: LyrebirdFloat = 440.0
@UIParam var amplitude: LyrebirdFloat = 0.5
@UIParam var pan: LyrebirdFloat = 0.0
@UIParam var frequency: Double = 440.0
@UIParam var amplitude: Double = 0.5
@UIParam var pan: Double = 0.0
override func build() {
let osc = OscSin.Audio(freq: $frequency)