Tidying up core (#256)
* remove _ prefixes except for functions to be patternified * categorise pattern methods * experimental support for `.add.squeeze` and friends as alternative to `.addSqueeze` * `every` is now an alias for `firstOf` with additional `lastOf` (which every will become an alias for next)
This commit is contained in:
parent
4cf412b93d
commit
e1a532500e
10 changed files with 738 additions and 603 deletions
|
|
@ -1,5 +1,22 @@
|
|||
// Vitest Snapshot v1
|
||||
|
||||
exports[`runs examples > example "_apply" example index 0 1`] = `
|
||||
[
|
||||
"0/1 -> 1/1: {\\"note\\":\\"C3\\"}",
|
||||
"0/1 -> 1/1: {\\"note\\":\\"Eb3\\"}",
|
||||
"0/1 -> 1/1: {\\"note\\":\\"G3\\"}",
|
||||
"1/1 -> 2/1: {\\"note\\":\\"Eb3\\"}",
|
||||
"1/1 -> 2/1: {\\"note\\":\\"G3\\"}",
|
||||
"1/1 -> 2/1: {\\"note\\":\\"Bb3\\"}",
|
||||
"2/1 -> 3/1: {\\"note\\":\\"G3\\"}",
|
||||
"2/1 -> 3/1: {\\"note\\":\\"Bb3\\"}",
|
||||
"2/1 -> 3/1: {\\"note\\":\\"D4\\"}",
|
||||
"3/1 -> 4/1: {\\"note\\":\\"C3\\"}",
|
||||
"3/1 -> 4/1: {\\"note\\":\\"Eb3\\"}",
|
||||
"3/1 -> 4/1: {\\"note\\":\\"G3\\"}",
|
||||
]
|
||||
`;
|
||||
|
||||
exports[`runs examples > example "accelerate" example index 0 1`] = `
|
||||
[
|
||||
"0/1 -> 2/1: {\\"s\\":\\"sax\\",\\"accelerate\\":0}",
|
||||
|
|
@ -1593,6 +1610,27 @@ exports[`runs examples > example "fastcat" example index 0 1`] = `
|
|||
]
|
||||
`;
|
||||
|
||||
exports[`runs examples > example "firstOf" example index 0 1`] = `
|
||||
[
|
||||
"3/4 -> 1/1: {\\"note\\":\\"c3\\"}",
|
||||
"1/2 -> 3/4: {\\"note\\":\\"d3\\"}",
|
||||
"1/4 -> 1/2: {\\"note\\":\\"e3\\"}",
|
||||
"0/1 -> 1/4: {\\"note\\":\\"g3\\"}",
|
||||
"1/1 -> 5/4: {\\"note\\":\\"c3\\"}",
|
||||
"5/4 -> 3/2: {\\"note\\":\\"d3\\"}",
|
||||
"3/2 -> 7/4: {\\"note\\":\\"e3\\"}",
|
||||
"7/4 -> 2/1: {\\"note\\":\\"g3\\"}",
|
||||
"2/1 -> 9/4: {\\"note\\":\\"c3\\"}",
|
||||
"9/4 -> 5/2: {\\"note\\":\\"d3\\"}",
|
||||
"5/2 -> 11/4: {\\"note\\":\\"e3\\"}",
|
||||
"11/4 -> 3/1: {\\"note\\":\\"g3\\"}",
|
||||
"3/1 -> 13/4: {\\"note\\":\\"c3\\"}",
|
||||
"13/4 -> 7/2: {\\"note\\":\\"d3\\"}",
|
||||
"7/2 -> 15/4: {\\"note\\":\\"e3\\"}",
|
||||
"15/4 -> 4/1: {\\"note\\":\\"g3\\"}",
|
||||
]
|
||||
`;
|
||||
|
||||
exports[`runs examples > example "freq" example index 0 1`] = `
|
||||
[
|
||||
"0/1 -> 1/4: {\\"freq\\":220,\\"s\\":\\"superzow\\"}",
|
||||
|
|
@ -1793,6 +1831,27 @@ exports[`runs examples > example "iterBack" example index 0 1`] = `
|
|||
]
|
||||
`;
|
||||
|
||||
exports[`runs examples > example "lastOf" example index 0 1`] = `
|
||||
[
|
||||
"0/1 -> 1/4: {\\"note\\":\\"c3\\"}",
|
||||
"1/4 -> 1/2: {\\"note\\":\\"d3\\"}",
|
||||
"1/2 -> 3/4: {\\"note\\":\\"e3\\"}",
|
||||
"3/4 -> 1/1: {\\"note\\":\\"g3\\"}",
|
||||
"1/1 -> 5/4: {\\"note\\":\\"c3\\"}",
|
||||
"5/4 -> 3/2: {\\"note\\":\\"d3\\"}",
|
||||
"3/2 -> 7/4: {\\"note\\":\\"e3\\"}",
|
||||
"7/4 -> 2/1: {\\"note\\":\\"g3\\"}",
|
||||
"2/1 -> 9/4: {\\"note\\":\\"c3\\"}",
|
||||
"9/4 -> 5/2: {\\"note\\":\\"d3\\"}",
|
||||
"5/2 -> 11/4: {\\"note\\":\\"e3\\"}",
|
||||
"11/4 -> 3/1: {\\"note\\":\\"g3\\"}",
|
||||
"15/4 -> 4/1: {\\"note\\":\\"c3\\"}",
|
||||
"7/2 -> 15/4: {\\"note\\":\\"d3\\"}",
|
||||
"13/4 -> 7/2: {\\"note\\":\\"e3\\"}",
|
||||
"3/1 -> 13/4: {\\"note\\":\\"g3\\"}",
|
||||
]
|
||||
`;
|
||||
|
||||
exports[`runs examples > example "late" example index 0 1`] = `
|
||||
[
|
||||
"0/1 -> 1/2: {\\"s\\":\\"bd\\"}",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue