bugfixes, better MusicXML support and 1.1.0

This commit is contained in:
2026-06-10 08:41:07 -07:00
parent 6d3a0930a1
commit f59fd3b55a
228 changed files with 32271 additions and 2586 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ lyrebird new 1stPiece # error: not a valid Swift module name
**Templates** — `--template <name>`:
- SPM-only (open `Package.swift` in Xcode): `basic` (default), `demo`, `ui-demo`, `nrt`
- SPM-only (open `Package.swift` in Xcode): `basic` (default), `demo`, `ui-demo`, `nrt`, `score`
- Xcode-project (ships `.xcodeproj` + `.xcworkspace`): `macos-ui-xcode`, `ios-ui`, `auv3`
```sh
+1 -1
View File
@@ -3,7 +3,7 @@
`MIDIClockFollower` estimates BPM from incoming MIDI Clock (0xF8) messages and drives a
`LyrebirdClock` to follow an external transport.
Ableton Link is deferred — see `docs/roadmap/ableton-link.md`.
Ableton Link sync is not planned; MIDI Clock follow is the supported external-transport path.
---
+1
View File
@@ -42,6 +42,7 @@ Swift-Package-only templates (lightweight; open `Package.swift` in Xcode for Swi
| `demo` | `lyrebird new MyPiece --template demo` | `SineTone` with `@LiveParam` frequency and amplitude |
| `ui-demo` | `lyrebird new MyApp --template ui-demo` | AppKit window with `@UIParam` controls and `LyrebirdWindow`; adds `LyrebirdUI` to package deps |
| `nrt` | `lyrebird new MyRender --template nrt` | `NRTDriver` renders to `output.caf` and exits — no audio hardware needed |
| `score` | `lyrebird new MyPiece --template score` | Builds a two-part `Score` with the DSL (Note/Rest/Chord/Tuplet/dynamics/articulations), exports `score.musicxml` (round-trip checked), and renders `score.caf` offline via `NRTDriver` |
Xcode-project templates (ship a real `.xcodeproj` for deliverables SwiftPM can't express — `.app` bundles, AUv3 extensions):
+1 -1
View File
@@ -30,7 +30,7 @@ All variants below are constructed by static factory methods on `Pattern<T>`. Ev
| Factory | Behaviour |
|---|---|
| `Pattern.sequence(_:repeats:)` | Cycle through array `repeats` times. `-1` infinite. |
| `Pattern.sequence(_:repeats:offset:)` | Cycle through array `repeats` times. `-1` infinite. `offset` shifts only the first pass — emission opens at `values[offset]` (wraps modulo count) and runs to the array end, then later cycles run full from index 0. |
| `Pattern.shuffle(_:repeats:seed:)` | Fisher-Yates permute once at init, then cycle. Same permutation replays on reset. (SC `Pshuf`) |
| `Pattern.nonRepeatingRandom(_:repeats:seed:)` | Random pick avoiding same *index* as previous. Documented index-vs-value caveat for duplicate-value pools. (SC `Pxrand`) |
| `Pattern.weightedRandom(_:weights:repeats:seed:)` | Pick proportional to weight. Init preconditions: equal count, finite non-negative weights, positive sum. (SC `Pwrand`) |
+1
View File
@@ -85,6 +85,7 @@ accumulator, PRNG state, biquad coefficients) inline.
| **Lyrebird UI View** | `public struct <Name>: View` with `@Observable` controller, `ScopeCapture` + `LyrebirdScopeView`, parameter knobs, play/stop button | Building a SwiftUI front-end for a `@UIParam`-annotated synth. Requires the LyrebirdUI module. |
| **Lyrebird Generator Test Suite** | `@Suite("…") struct <Name> { @Test … }` using `makeTestEngine` / `makeSynthGraph` / `advanceBlock` helpers | Adding a Swift Testing suite for a new Generator. Drop the file into `Tests/LyrebirdTests/` — the helpers are module-internal. |
| **Lyrebird NRT Render** | `main.swift` with a `SynthesizerBase` stub and an NRTDriver that renders the duration to disk | Building a standalone executable target that produces an offline audio file. Drop the file into the `Sources/<exec-target>/` directory of an `executableTarget`. |
| **Lyrebird Score** | `func make<Name>() -> Score` building a two-part Score with the DSL (Note/Rest/Chord/Tuplet/dynamics/articulations); doc comment shows `toMusicXMLString()` / `Score.fromMusicXML()` round-trip and `allEvents` iteration | Authoring a notated score in code and exporting it to MusicXML 4.0. Drop the file anywhere in a target that links `Lyrebird`. |
The UI templates (`Synthesizer (UI)` and `UI View`) add `import LyrebirdUI` and
compile cleanly in projects with both `Lyrebird` and `LyrebirdUI` as