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:
@@ -43,8 +43,8 @@ try engine.start()
|
||||
|
||||
// Example — your synthesizer, defined by subclassing SynthesizerBase
|
||||
final class KickDrum: SynthesizerBase {
|
||||
@LiveParam var freq: LyrebirdFloat = 60.0
|
||||
@LiveParam var decay: LyrebirdFloat = 0.3
|
||||
@LiveParam var freq: Double = 60.0
|
||||
@LiveParam var decay: Double = 0.3
|
||||
|
||||
override func build() {
|
||||
let osc = OscSin.Audio(freq: $freq)
|
||||
@@ -115,8 +115,8 @@ final class KickDrum: SynthesizerBase {
|
||||
|
||||
// MARK: - Parameters
|
||||
|
||||
@LiveParam var freq: LyrebirdFloat = 60.0
|
||||
@LiveParam var decay: LyrebirdFloat = 0.3
|
||||
@LiveParam var freq: Double = 60.0
|
||||
@LiveParam var decay: Double = 0.3
|
||||
|
||||
// MARK: - Build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user