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:
@@ -143,7 +143,11 @@ Key points:
|
||||
- `after: startSec` is equivalent to `at: engine.seconds(startSec)` when called before `start()` — `currentTime` is `0` so both resolve to the same absolute sample offset.
|
||||
- The envelope ends at level 0 and `doneAction` defaults to `.nothing` — synths stay in the graph but output silence. In NRT the render terminates at `totalDur` so no removal is needed. In RT, poll `env.needsFree` after each block and call `engine.remove()` when `true`.
|
||||
- Set `NRTDriver(duration:)` to cover the latest possible start plus the full event length. Events whose scheduled start time falls beyond `duration` are never triggered.
|
||||
- ``SynthesisEngine`` defaults to a pending event queue capacity of 1024. For large scores pass `eventQueueCapacity:` (must be a power of two) to ``SynthesisEngine/init(blockSize:controlBlockSize:sampleRate:numOutputChannels:numInputChannels:numAudioBuses:numControlBuses:eventQueueCapacity:driver:)`` — a non-power-of-two value traps at startup.
|
||||
- **Large scores need two knobs raised, not one.** ``SynthesisEngine`` defaults to a pending event queue capacity of 1024 and a per-block event budget of 256. Pass both to ``SynthesisEngine/init(blockSize:controlBlockSize:sampleRate:numOutputChannels:numInputChannels:numAudioBuses:numControlBuses:eventQueueCapacity:maxEventsPerBlock:driver:)``:
|
||||
- `eventQueueCapacity:` must hold every event you enqueue before `start()`, since NRT renders synchronously and nothing can refill the queue mid-render. Must be a power of two — a non-power-of-two value traps at startup.
|
||||
- `maxEventsPerBlock:` bounds the future-event **look-ahead** carried across block boundaries. This is the one that silently bites: pre-schedule 5,000 events and the first block keeps only `maxEventsPerBlock` of them in carry-over and **drops the rest**. Check ``SynthesisEngine/perBlockEventDropCount`` (a console warning is also printed after the render).
|
||||
|
||||
Either raise both, or feed events just-in-time from a ``TriggerListener`` — `NRTDriver` drains its handlers after every block, so a handler can schedule the next few events as the render advances, keeping the in-flight count small. See <doc:Scheduling>.
|
||||
|
||||
### Soundfile input
|
||||
|
||||
|
||||
Reference in New Issue
Block a user