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:
@@ -292,11 +292,11 @@ final class Tone: SynthesizerBase {
|
||||
|
||||
override func build() {
|
||||
let env = EnvelopeGen.Control(
|
||||
envelope: Envelope(levels: [0, 1, 0], durations: [0.01, 0.4], curves: [2, -3])
|
||||
envelope: Envelope(levels: [0, 1, 0], durations: [0.01, 0.4], curves: [2, -3]),
|
||||
doneAction: .freeNode // engine removes this synth when the envelope ends
|
||||
)
|
||||
let sig = OscSin.Audio(freq: freq) * env * amp
|
||||
output(bus: 0, source: Pan2(input: sig, pan: 0))
|
||||
doneAction = .freeEnclosing
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user