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
@@ -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`) |