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:
2026-07-17 14:05:01 -07:00
parent 63d6e0746f
commit 560724d116
149 changed files with 5010 additions and 1029 deletions
+2 -2
View File
@@ -366,8 +366,8 @@ final class MyOsc: GeneratorBase, AudioGenerator {
Key points:
- `freqIsGenerator` is stored at init, not checked per block.
- The `calculatedSamples` / `floatValue` call is **outside the inner loop** — only the index lookup happens per sample.
- When `freqIsGenerator` is false (literal `Double`/`Int`, `String`, or `Closure`), the scalar path calls `floatValue` once — zero extra allocation. `ConstantGeneratorInput` conforms to `Generator` and therefore takes the audio-rate `calculatedSamples` path; its buffer is pre-allocated so the path is RT-safe.
- String parameter key inputs are classified as non-generator (`String` does not conform to `Generator`), so they always use the block-rate scalar path. This is correct: parameter updates are control-rate by design.
- When `freqIsGenerator` is false (literal `Double`/`Int` or `Closure`), the scalar path calls `floatValue` once — zero extra allocation. `ConstantGeneratorInput` conforms to `Generator` and therefore takes the audio-rate `calculatedSamples` path; its buffer is pre-allocated so the path is RT-safe.
- To drive an input from a live parameter, wire a `@LiveParam`'s projected value (`$name`, a `ParameterNode`) — a `ControlGenerator` — into it. (`String` is not a `ValidGeneratorInput`; the old string-parameter-key input was removed when `ParameterNode` / `UIParamNode` became `ControlGenerator`s.)
### FM synthesis example