diff --git a/test/__snapshots__/examples.test.mjs.snap b/test/__snapshots__/examples.test.mjs.snap index 8f9fe9f2..e5a2ca32 100644 --- a/test/__snapshots__/examples.test.mjs.snap +++ b/test/__snapshots__/examples.test.mjs.snap @@ -920,6 +920,27 @@ exports[`runs examples > example "cat" example index 0 2`] = ` ] `; +exports[`runs examples > example "ceil" example index 0 1`] = ` +[ + "[ 0/1 → 1/4 | note:42 ]", + "[ 1/4 → 1/2 | note:43 ]", + "[ 1/2 → 3/4 | note:43 ]", + "[ 3/4 → 1/1 | note:43 ]", + "[ 1/1 → 5/4 | note:42 ]", + "[ 5/4 → 3/2 | note:43 ]", + "[ 3/2 → 7/4 | note:43 ]", + "[ 7/4 → 2/1 | note:43 ]", + "[ 2/1 → 9/4 | note:42 ]", + "[ 9/4 → 5/2 | note:43 ]", + "[ 5/2 → 11/4 | note:43 ]", + "[ 11/4 → 3/1 | note:43 ]", + "[ 3/1 → 13/4 | note:42 ]", + "[ 13/4 → 7/2 | note:43 ]", + "[ 7/2 → 15/4 | note:43 ]", + "[ 15/4 → 4/1 | note:43 ]", +] +`; + exports[`runs examples > example "chooseCycles" example index 0 1`] = ` [ "[ 0/1 → 1/4 | s:bd ]", @@ -1680,6 +1701,27 @@ exports[`runs examples > example "firstOf" example index 0 1`] = ` ] `; +exports[`runs examples > example "floor" example index 0 1`] = ` +[ + "[ 0/1 → 1/4 | note:42 ]", + "[ 1/4 → 1/2 | note:42 ]", + "[ 1/2 → 3/4 | note:42 ]", + "[ 3/4 → 1/1 | note:43 ]", + "[ 1/1 → 5/4 | note:42 ]", + "[ 5/4 → 3/2 | note:42 ]", + "[ 3/2 → 7/4 | note:42 ]", + "[ 7/4 → 2/1 | note:43 ]", + "[ 2/1 → 9/4 | note:42 ]", + "[ 9/4 → 5/2 | note:42 ]", + "[ 5/2 → 11/4 | note:42 ]", + "[ 11/4 → 3/1 | note:43 ]", + "[ 3/1 → 13/4 | note:42 ]", + "[ 13/4 → 7/2 | note:42 ]", + "[ 7/2 → 15/4 | note:42 ]", + "[ 15/4 → 4/1 | note:43 ]", +] +`; + exports[`runs examples > example "freq" example index 0 1`] = ` [ "[ 0/1 → 1/4 | freq:220 s:superzow ]", @@ -2312,6 +2354,52 @@ exports[`runs examples > example "perlin" example index 0 1`] = ` ] `; +exports[`runs examples > example "polymeter" example index 0 1`] = ` +[ + "[ 0/1 → 1/3 | note:c ]", + "[ 1/3 → 2/3 | note:eb ]", + "[ 2/3 → 1/1 | note:g ]", + "[ 1/1 → 4/3 | note:c ]", + "[ 4/3 → 5/3 | note:eb ]", + "[ 5/3 → 2/1 | note:g ]", + "[ 2/1 → 7/3 | note:c ]", + "[ 7/3 → 8/3 | note:eb ]", + "[ 8/3 → 3/1 | note:g ]", + "[ 3/1 → 10/3 | note:c ]", + "[ 10/3 → 11/3 | note:eb ]", + "[ 11/3 → 4/1 | note:g ]", + "[ 0/1 → 1/3 | note:c2 ]", + "[ 1/3 → 2/3 | note:g2 ]", + "[ 2/3 → 1/1 | note:c2 ]", + "[ 1/1 → 4/3 | note:g2 ]", + "[ 4/3 → 5/3 | note:c2 ]", + "[ 5/3 → 2/1 | note:g2 ]", + "[ 2/1 → 7/3 | note:c2 ]", + "[ 7/3 → 8/3 | note:g2 ]", + "[ 8/3 → 3/1 | note:c2 ]", + "[ 3/1 → 10/3 | note:g2 ]", + "[ 10/3 → 11/3 | note:c2 ]", + "[ 11/3 → 4/1 | note:g2 ]", +] +`; + +exports[`runs examples > example "polymeterSteps" example index 0 1`] = ` +[ + "[ 0/1 → 1/2 | note:c ]", + "[ 1/2 → 1/1 | note:d ]", + "[ 1/1 → 3/2 | note:e ]", + "[ 3/2 → 2/1 | note:f ]", + "[ 2/1 → 5/2 | note:g ]", + "[ 5/2 → 3/1 | note:f ]", + "[ 3/1 → 7/2 | note:e ]", + "[ 7/2 → 4/1 | note:d ]", + "[ 0/1 → 1/1 | s:bd ]", + "[ 1/1 → 2/1 | s:bd ]", + "[ 2/1 → 3/1 | s:bd ]", + "[ 3/1 → 4/1 | s:bd ]", +] +`; + exports[`runs examples > example "pure" example index 0 1`] = ` [ "[ 0/1 → 1/1 | e4 ]", @@ -2733,6 +2821,8 @@ exports[`runs examples > example "shape" example index 0 1`] = ` ] `; +exports[`runs examples > example "silence" example index 0 1`] = `[]`; + exports[`runs examples > example "sine" example index 0 1`] = ` [ "[ 0/1 → 1/8 | note:Eb4 ]",