v2.4.0 release: event patterns + live event conductor
This commit is contained in:
@@ -46,7 +46,7 @@ These guards catch classes of regression that **`swift build` / `swift test` str
|
||||
|
||||
**Golden values need a test, not a guard.** A typecheck proves an example still *compiles*; it cannot see a documented result drift. Where a doc asserts concrete output (`// → 0.744, 0.046, …`), pin it with a test — `DistributionKindGoldenValueTests` and `_DocTheorySnippetCheckTests` are the two instances. This is not optional pedantry: three of the four `DistributionKind` sequences had silently drifted, and their fences also passed a `seed:` argument to a type that has no such parameter.
|
||||
|
||||
`check-doc-snippets.sh` checks the fences recorded in `scripts/doc-snippets-manifest.txt` (currently **426** of 1458). That set is produced by asking the **compiler** which fences compile — `--classify` — never by hand-annotating fences. A fence that compiles under no preamble self-excludes, which is how iOS-only examples, `Package.swift` snippets and pseudo-code drop out with no skip list. **Coverage is therefore partial by construction**: a fragment like `try engine.add(MySynth())`, which needs both an `engine` and a `MySynth` in scope, is *not* checked. The fix for an important uncovered example is to make it self-contained in the doc — which is better documentation anyway — not to grow the preamble table. Re-run `--classify` after adding examples or deliberately changing what is checkable.
|
||||
`check-doc-snippets.sh` checks the fences recorded in `scripts/doc-snippets-manifest.txt` (currently **578** of 1584). That set is produced by asking the **compiler** which fences compile — `--classify` — never by hand-annotating fences. A fence that compiles under no preamble self-excludes, which is how iOS-only examples, `Package.swift` snippets and pseudo-code drop out with no skip list. **Coverage is therefore partial by construction**: a fragment like `try engine.add(MySynth())`, which needs both an `engine` and a `MySynth` in scope, is *not* checked. The fix for an important uncovered example is to make it self-contained in the doc — which is better documentation anyway — not to grow the preamble table. Re-run `--classify` after adding examples or deliberately changing what is checkable.
|
||||
|
||||
## Task → Doc Map
|
||||
|
||||
@@ -76,6 +76,7 @@ These guards catch classes of regression that **`swift build` / `swift test` str
|
||||
- Node tree / Group nesting / bus routing → `docs/protocols/node-tree.md`
|
||||
- Routines / tasks / clock / MIDI / OSC → `docs/tooling/routine-task.md`
|
||||
- `Pattern<T>` factory catalog (sequence, series, geometric, uniformRandom, brownian, gaussian, cauchy, beta, shuffle, nonRepeatingRandom, weightedRandom, closure, repeating, limit, drop, stutter, switching, concatenate, roundRobin, tuple, interleave, map, filter, reject, accumulate, difference, wrap, clip, round, smooth) → `docs/tooling/routine-task.md` (§ Pattern Factory Reference) + `Sources/Lyrebird/Lyrebird.docc/RoutineTask.md`
|
||||
- Event patterns — `EventPattern` (SC `Pbind`: typed keyPath bindings → voice `@LiveParam`s, dur/legato scheduling, `EventGated` gate note-off or `EventSustainAware` self-timed release; non-blocking gate close via `LyrebirdRoutineContext.set(_:to:afterBeats:)`), `MonoEventPattern` (SC `Pmono`/`PmonoArtic`: one reused voice, params updated per event, optional `EventRetriggerable` re-strike), `ParallelEventPattern` (SC `Ppar`: heterogeneous `EventPatternPlayable` children started together, one merged `EventPatternHandle`; `add` = enter-with-group, `addAfter(beats:)` = staggered entry via `startAfterBeats` lead-in), `EventConductor` (live, clock-driven ensemble — thread-safe `add(_:quantize:)` from UI/OSC/MIDI while running, returns an `EventConductorHandle` for per-part stop; clock-deferred entry quantised by `EventQuantum` against the conductor's own clock, tempo-independent; patterns keep own timing after entry), `EventConductorHandle` (stop one part: cancels if pending, stops if playing), `EventPatternHandle` → `docs/tooling/routine-task.md` (§ EventPattern / § EventConductor) + `Sources/Lyrebird/Patterns/Events/`
|
||||
- MIDI clock sync (`MIDIClockFollower`) → `docs/tooling/midi-clock-sync.md`
|
||||
- Linux MIDI (`MIDI` via ALSA sequencer — `MIDI/ALSAMIDI.swift`, `ALSASeqMIDIEvent` mapping; needs CALSA/libasound) → `Sources/Lyrebird/MIDI/ALSAMIDI.swift`
|
||||
- Linux OSC (`OSCClient` / `OSCServer` POSIX-UDP transport off Apple, `OSCServerError`; codec unchanged) → `Sources/Lyrebird/OSC/OSCServer.swift`
|
||||
|
||||
Reference in New Issue
Block a user