bugfixes, better MusicXML support and 1.1.0
This commit is contained in:
@@ -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`) |
|
||||
|
||||
Reference in New Issue
Block a user