1.0.0 release

This commit is contained in:
2026-06-01 18:27:40 -07:00
parent b1ab0f102c
commit 1f20fcab20
1151 changed files with 230703 additions and 14 deletions
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTD/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Kind</key>
<string>Xcode.IDEKit.TextSubstitutionFileTemplateKind</string>
<key>Platforms</key>
<array>
<string>com.apple.platform.macosx</string>
<string>com.apple.platform.iphoneos</string>
</array>
<key>Description</key>
<string>A Lyrebird Synthesizer subclassing SynthesizerBase with @LiveParam parameter slots and a build() body wiring a small signal graph to output bus 0. Pair with engine.add(_:) to start audio.</string>
<key>Summary</key>
<string>Lyrebird Synthesizer (SynthesizerBase + @LiveParam)</string>
<key>SortOrder</key>
<string>11</string>
<key>AllowedTypes</key>
<array>
<string>public.swift-source</string>
</array>
<key>DefaultCompletionName</key>
<string>MySynth</string>
<key>MainTemplateFile</key>
<string>___FILEBASENAME___.swift</string>
<key>Options</key>
<array>
<dict>
<key>Identifier</key>
<string>productName</string>
<key>Required</key>
<true/>
<key>Name</key>
<string>Synthesizer name:</string>
<key>Description</key>
<string>Name of the Synthesizer subclass (also used as the file name).</string>
<key>Type</key>
<string>text</string>
<key>Default</key>
<string>MySynth</string>
</dict>
</array>
</dict>
</plist>
@@ -0,0 +1,41 @@
//___FILEHEADER___
import Foundation
import LyrebirdSynth
// MARK: - ___FILEBASENAMEASIDENTIFIER___
/// One-line description of ___FILEBASENAMEASIDENTIFIER___.
///
/// Subclasses `SynthesizerBase`. `@LiveParam` slots are atomic, RT-safe to
/// assign from any thread; the audio thread reads them with acquiring loads.
///
/// ## Usage
/// ```swift
/// let synth = ___FILEBASENAMEASIDENTIFIER___()
/// try engine.add(synth)
///
/// // Mutate while audio runs — no try, no throws.
/// synth.frequency = 880.0
///
/// engine.remove(synth)
/// ```
public final class ___FILEBASENAMEASIDENTIFIER___: SynthesizerBase {
// MARK: - Parameters
/// Fundamental frequency in Hz.
@LiveParam public var frequency: Double = 440.0
/// Output amplitude (linear gain). `0.0` = silence, `1.0` = unity.
@LiveParam public var amplitude: Double = 0.25
// MARK: - Build
public override func build() {
// Wire the signal graph here. Use `$paramName` (projected value) to
// pass a LiveParam as a generator input — it tracks runtime changes.
let osc = OscSin.Audio(freq: $frequency)
output(bus: 0, source: osc * $amplitude)
}
}