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:
@@ -31,8 +31,8 @@ Subclass `SynthesizerBase` and override `build()`. Declare mutable parameters wi
|
||||
```swift
|
||||
// Example — your synthesizer, defined by subclassing SynthesizerBase
|
||||
final class SineTone: SynthesizerBase {
|
||||
@LiveParam var freq: LyrebirdFloat = 440.0
|
||||
@LiveParam var amp: LyrebirdFloat = 0.5
|
||||
@LiveParam var freq: Double = 440.0
|
||||
@LiveParam var amp: Double = 0.5
|
||||
|
||||
override func build() {
|
||||
let osc = OscSin.Audio(freq: $freq, phase: 0.0)
|
||||
@@ -234,7 +234,7 @@ Override `release(engine:)` in synthesizers that have an envelope gate:
|
||||
|
||||
```swift
|
||||
final class GatedNote: SynthesizerBase {
|
||||
@LiveParam var gate: LyrebirdFloat = 1.0
|
||||
@LiveParam var gate: Double = 1.0
|
||||
|
||||
override func build() {
|
||||
// … gate drives EnvelopeGen …
|
||||
|
||||
Reference in New Issue
Block a user