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:
@@ -84,7 +84,7 @@ lyrebird new 1stPiece # error: not a valid Swift module name
|
||||
|
||||
**Templates** — `--template <name>`:
|
||||
|
||||
- SPM-only (open `Package.swift` in Xcode): `basic` (default), `demo`, `ui-demo`, `nrt`, `score`
|
||||
- SPM-only (open `Package.swift` in Xcode): `quickstart` (fastest sound), `basic` (default), `demo`, `ui-demo`, `nrt`, `score`
|
||||
- Xcode-project (ships `.xcodeproj` + `.xcworkspace`, builds to `.app` or `.appex`): `macos-ui-xcode`, `ios-ui`, `auv3`
|
||||
|
||||
```sh
|
||||
@@ -156,7 +156,7 @@ final class BassDrum: SynthesizerBase {
|
||||
// MARK: - Parameters
|
||||
|
||||
// Declare parameters here. Example:
|
||||
// let freq: LyrebirdFloat = 440.0
|
||||
// let freq: Double = 440.0
|
||||
|
||||
// MARK: - Build
|
||||
|
||||
@@ -233,7 +233,7 @@ try engine.start()
|
||||
|
||||
// Example — your synthesizer, defined by subclassing SynthesizerBase
|
||||
final class SineTone: SynthesizerBase {
|
||||
@LiveParam var freq: LyrebirdFloat = 440.0
|
||||
@LiveParam var freq: Double = 440.0
|
||||
|
||||
override func build() {
|
||||
let osc = OscSin.Audio(freq: $freq)
|
||||
|
||||
Reference in New Issue
Block a user