diff --git a/test/__snapshots__/examples.test.mjs.snap b/test/__snapshots__/examples.test.mjs.snap index e52a5932..e061d105 100644 --- a/test/__snapshots__/examples.test.mjs.snap +++ b/test/__snapshots__/examples.test.mjs.snap @@ -2506,40 +2506,26 @@ exports[`runs examples > example "mul" example index 0 1`] = ` exports[`runs examples > example "n" example index 0 1`] = ` [ - "[ 0/1 → 1/1 | s:superpiano n:0 ]", - "[ 1/1 → 2/1 | s:superpiano n:1 ]", - "[ 2/1 → 3/1 | s:superpiano n:2 ]", - "[ 3/1 → 4/1 | s:superpiano n:3 ]", -] -`; - -exports[`runs examples > example "n" example index 1 1`] = ` -[ - "[ 0/1 → 1/1 | s:superpiano n:c4 ]", - "[ 1/1 → 2/1 | s:superpiano n:d4 ]", - "[ 2/1 → 3/1 | s:superpiano n:e4 ]", - "[ 3/1 → 4/1 | s:superpiano n:g4 ]", -] -`; - -exports[`runs examples > example "n" example index 2 1`] = ` -[ - "[ 0/1 → 1/4 | n:0 s:east ]", - "[ 1/4 → 1/2 | n:1 s:east ]", - "[ 1/2 → 3/4 | n:2 s:east ]", - "[ 3/4 → 1/1 | n:3 s:east ]", - "[ 1/1 → 5/4 | n:0 s:east ]", - "[ 5/4 → 3/2 | n:1 s:east ]", - "[ 3/2 → 7/4 | n:2 s:east ]", - "[ 7/4 → 2/1 | n:3 s:east ]", - "[ 2/1 → 9/4 | n:0 s:east ]", - "[ 9/4 → 5/2 | n:1 s:east ]", - "[ 5/2 → 11/4 | n:2 s:east ]", - "[ 11/4 → 3/1 | n:3 s:east ]", - "[ 3/1 → 13/4 | n:0 s:east ]", - "[ 13/4 → 7/2 | n:1 s:east ]", - "[ 7/2 → 15/4 | n:2 s:east ]", - "[ 15/4 → 4/1 | n:3 s:east ]", + "[ 0/1 → 1/2 | s:bd n:0 ]", + "[ 1/2 → 1/1 | s:sd n:0 ]", + "[ 0/1 → 1/3 | s:hh n:0 ]", + "[ 1/3 → 2/3 | s:hh n:0 ]", + "[ 2/3 → 1/1 | s:hh n:0 ]", + "[ 1/1 → 3/2 | s:bd n:1 ]", + "[ 3/2 → 2/1 | s:sd n:1 ]", + "[ 1/1 → 4/3 | s:hh n:1 ]", + "[ 4/3 → 5/3 | s:hh n:1 ]", + "[ 5/3 → 2/1 | s:hh n:1 ]", + "[ 2/1 → 5/2 | s:bd n:0 ]", + "[ 5/2 → 3/1 | s:sd n:0 ]", + "[ 2/1 → 7/3 | s:hh n:0 ]", + "[ 7/3 → 8/3 | s:hh n:0 ]", + "[ 8/3 → 3/1 | s:hh n:0 ]", + "[ 3/1 → 7/2 | s:bd n:1 ]", + "[ 7/2 → 4/1 | s:sd n:1 ]", + "[ 3/1 → 10/3 | s:hh n:1 ]", + "[ 10/3 → 11/3 | s:hh n:1 ]", + "[ 11/3 → 4/1 | s:hh n:1 ]", ] `; @@ -2580,6 +2566,69 @@ exports[`runs examples > example "never" example index 0 1`] = ` ] `; +exports[`runs examples > example "note" example index 0 1`] = ` +[ + "[ 0/1 → 1/4 | note:c ]", + "[ 1/4 → 1/2 | note:a ]", + "[ 1/2 → 3/4 | note:f ]", + "[ 3/4 → 1/1 | note:e ]", + "[ 1/1 → 5/4 | note:c ]", + "[ 5/4 → 3/2 | note:a ]", + "[ 3/2 → 7/4 | note:f ]", + "[ 7/4 → 2/1 | note:e ]", + "[ 2/1 → 9/4 | note:c ]", + "[ 9/4 → 5/2 | note:a ]", + "[ 5/2 → 11/4 | note:f ]", + "[ 11/4 → 3/1 | note:e ]", + "[ 3/1 → 13/4 | note:c ]", + "[ 13/4 → 7/2 | note:a ]", + "[ 7/2 → 15/4 | note:f ]", + "[ 15/4 → 4/1 | note:e ]", +] +`; + +exports[`runs examples > example "note" example index 1 1`] = ` +[ + "[ 0/1 → 1/4 | note:c4 ]", + "[ 1/4 → 1/2 | note:a4 ]", + "[ 1/2 → 3/4 | note:f4 ]", + "[ 3/4 → 1/1 | note:e4 ]", + "[ 1/1 → 5/4 | note:c4 ]", + "[ 5/4 → 3/2 | note:a4 ]", + "[ 3/2 → 7/4 | note:f4 ]", + "[ 7/4 → 2/1 | note:e4 ]", + "[ 2/1 → 9/4 | note:c4 ]", + "[ 9/4 → 5/2 | note:a4 ]", + "[ 5/2 → 11/4 | note:f4 ]", + "[ 11/4 → 3/1 | note:e4 ]", + "[ 3/1 → 13/4 | note:c4 ]", + "[ 13/4 → 7/2 | note:a4 ]", + "[ 7/2 → 15/4 | note:f4 ]", + "[ 15/4 → 4/1 | note:e4 ]", +] +`; + +exports[`runs examples > example "note" example index 2 1`] = ` +[ + "[ 0/1 → 1/4 | note:60 ]", + "[ 1/4 → 1/2 | note:69 ]", + "[ 1/2 → 3/4 | note:65 ]", + "[ 3/4 → 1/1 | note:64 ]", + "[ 1/1 → 5/4 | note:60 ]", + "[ 5/4 → 3/2 | note:69 ]", + "[ 3/2 → 7/4 | note:65 ]", + "[ 7/4 → 2/1 | note:64 ]", + "[ 2/1 → 9/4 | note:60 ]", + "[ 9/4 → 5/2 | note:69 ]", + "[ 5/2 → 11/4 | note:65 ]", + "[ 11/4 → 3/1 | note:64 ]", + "[ 3/1 → 13/4 | note:60 ]", + "[ 13/4 → 7/2 | note:69 ]", + "[ 7/2 → 15/4 | note:65 ]", + "[ 15/4 → 4/1 | note:64 ]", +] +`; + exports[`runs examples > example "octave" example index 0 1`] = ` [ "[ 0/1 → 1/1 | n:0 s:supersquare octave:3 ]", @@ -3280,6 +3329,31 @@ exports[`runs examples > example "samples" example index 0 1`] = ` ] `; +exports[`runs examples > example "samples" example index 1 1`] = ` +[ + "[ 0/1 → 1/4 | s:bd ]", + "[ 1/2 → 3/4 | s:bd ]", + "[ 1/4 → 1/2 | s:hh ]", + "[ 3/4 → 1/1 | s:hh ]", + "[ 1/2 → 1/1 | s:sd ]", + "[ 1/1 → 5/4 | s:bd ]", + "[ 3/2 → 7/4 | s:bd ]", + "[ 5/4 → 3/2 | s:hh ]", + "[ 7/4 → 2/1 | s:hh ]", + "[ 3/2 → 2/1 | s:sd ]", + "[ 2/1 → 9/4 | s:bd ]", + "[ 5/2 → 11/4 | s:bd ]", + "[ 9/4 → 5/2 | s:hh ]", + "[ 11/4 → 3/1 | s:hh ]", + "[ 5/2 → 3/1 | s:sd ]", + "[ 3/1 → 13/4 | s:bd ]", + "[ 7/2 → 15/4 | s:bd ]", + "[ 13/4 → 7/2 | s:hh ]", + "[ 15/4 → 4/1 | s:hh ]", + "[ 7/2 → 4/1 | s:sd ]", +] +`; + exports[`runs examples > example "saw" example index 0 1`] = ` [ "[ 0/1 → 1/32 | note:c3 ]", @@ -3323,6 +3397,35 @@ exports[`runs examples > example "saw" example index 1 1`] = ` `; exports[`runs examples > example "scale" example index 0 1`] = ` +[ + "[ 0/1 → 1/6 | note:C2 ]", + "[ 1/6 → 1/3 | note:E2 ]", + "[ 1/3 → 1/2 | note:G2 ]", + "[ 1/2 → 2/3 | note:B2 ]", + "[ 2/3 → 5/6 | note:G2 ]", + "[ 5/6 → 1/1 | note:E2 ]", + "[ 1/1 → 7/6 | note:C2 ]", + "[ 7/6 → 4/3 | note:E2 ]", + "[ 4/3 → 3/2 | note:G2 ]", + "[ 3/2 → 5/3 | note:B2 ]", + "[ 5/3 → 11/6 | note:G2 ]", + "[ 11/6 → 2/1 | note:E2 ]", + "[ 2/1 → 13/6 | note:C2 ]", + "[ 13/6 → 7/3 | note:E2 ]", + "[ 7/3 → 5/2 | note:G2 ]", + "[ 5/2 → 8/3 | note:B2 ]", + "[ 8/3 → 17/6 | note:G2 ]", + "[ 17/6 → 3/1 | note:E2 ]", + "[ 3/1 → 19/6 | note:C2 ]", + "[ 19/6 → 10/3 | note:E2 ]", + "[ 10/3 → 7/2 | note:G2 ]", + "[ 7/2 → 11/3 | note:B2 ]", + "[ 11/3 → 23/6 | note:G2 ]", + "[ 23/6 → 4/1 | note:E2 ]", +] +`; + +exports[`runs examples > example "scale" example index 1 1`] = ` [ "[ 0/1 → 1/6 | note:C2 ]", "[ 1/6 → 1/3 | note:E2 ]",