From 534e3f7f81394de9b168e95b68ecfab94337f89d Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Sun, 10 Sep 2023 00:48:04 +0200 Subject: [PATCH] add snapshots --- test/__snapshots__/examples.test.mjs.snap | 129 ++++++++++++++++++++++ 1 file changed, 129 insertions(+) diff --git a/test/__snapshots__/examples.test.mjs.snap b/test/__snapshots__/examples.test.mjs.snap index 60b39c53..8fc41df1 100644 --- a/test/__snapshots__/examples.test.mjs.snap +++ b/test/__snapshots__/examples.test.mjs.snap @@ -1762,6 +1762,27 @@ exports[`runs examples > example "fastGap" example index 0 1`] = ` ] `; +exports[`runs examples > example "fenv" example index 0 1`] = ` +[ + "[ 0/1 → 1/4 | note:c2 s:sawtooth cutoff:500 fenv:1 ]", + "[ 1/4 → 1/2 | note:c3 s:sawtooth cutoff:500 fenv:1 ]", + "[ 1/2 → 3/4 | note:c2 s:sawtooth cutoff:500 fenv:1 ]", + "[ 3/4 → 1/1 | note:c3 s:sawtooth cutoff:500 fenv:1 ]", + "[ 1/1 → 5/4 | note:c2 s:sawtooth cutoff:500 fenv:2 ]", + "[ 5/4 → 3/2 | note:c3 s:sawtooth cutoff:500 fenv:2 ]", + "[ 3/2 → 7/4 | note:c2 s:sawtooth cutoff:500 fenv:2 ]", + "[ 7/4 → 2/1 | note:c3 s:sawtooth cutoff:500 fenv:2 ]", + "[ 2/1 → 9/4 | note:c2 s:sawtooth cutoff:500 fenv:3 ]", + "[ 9/4 → 5/2 | note:c3 s:sawtooth cutoff:500 fenv:3 ]", + "[ 5/2 → 11/4 | note:c2 s:sawtooth cutoff:500 fenv:3 ]", + "[ 11/4 → 3/1 | note:c3 s:sawtooth cutoff:500 fenv:3 ]", + "[ 3/1 → 13/4 | note:c2 s:sawtooth cutoff:500 fenv:4 ]", + "[ 13/4 → 7/2 | note:c3 s:sawtooth cutoff:500 fenv:4 ]", + "[ 7/2 → 15/4 | note:c2 s:sawtooth cutoff:500 fenv:4 ]", + "[ 15/4 → 4/1 | note:c3 s:sawtooth cutoff:500 fenv:4 ]", +] +`; + exports[`runs examples > example "firstOf" example index 0 1`] = ` [ "[ 0/1 → 1/4 | note:g3 ]", @@ -2566,6 +2587,64 @@ exports[`runs examples > example "loopAtCps" example index 0 1`] = ` ] `; +exports[`runs examples > example "lpattack" example index 0 1`] = ` +[ + "[ 0/1 → 1/6 | note:c3 s:square cutoff:1000 lpattack:0.05 fenv:1 release:0.2 attack:0 ]", + "[ 1/6 → 1/3 | note:e3 s:square cutoff:1000 lpattack:0.05 fenv:1 release:0.2 attack:0 ]", + "[ 1/3 → 1/2 | note:f3 s:square cutoff:1000 lpattack:0.05 fenv:1 release:0.2 attack:0 ]", + "[ 1/2 → 2/3 | note:g3 s:square cutoff:1000 lpattack:0.05 fenv:1 release:0.2 attack:0 ]", + "[ 2/3 → 5/6 | note:ab3 s:square cutoff:1000 lpattack:0.05 fenv:1 release:0.2 attack:0 ]", + "[ 5/6 → 1/1 | note:bb3 s:square cutoff:1000 lpattack:0.05 fenv:1 release:0.2 attack:0 ]", + "[ 1/1 → 7/6 | note:c3 s:square cutoff:1000 lpattack:0.05 fenv:1 release:0.2 attack:0 ]", + "[ 7/6 → 4/3 | note:e3 s:square cutoff:1000 lpattack:0.05 fenv:1 release:0.2 attack:0 ]", + "[ 4/3 → 3/2 | note:f3 s:square cutoff:1000 lpattack:0.05 fenv:1 release:0.2 attack:0 ]", + "[ 3/2 → 5/3 | note:g3 s:square cutoff:1000 lpattack:0.05 fenv:1 release:0.2 attack:0 ]", + "[ 5/3 → 11/6 | note:ab3 s:square cutoff:1000 lpattack:0.05 fenv:1 release:0.2 attack:0 ]", + "[ 11/6 → 2/1 | note:bb3 s:square cutoff:1000 lpattack:0.05 fenv:1 release:0.2 attack:0 ]", + "[ 2/1 → 13/6 | note:c3 s:square cutoff:1000 lpattack:0.1 fenv:1 release:0.2 attack:0 ]", + "[ 13/6 → 7/3 | note:e3 s:square cutoff:1000 lpattack:0.1 fenv:1 release:0.2 attack:0 ]", + "[ 7/3 → 5/2 | note:f3 s:square cutoff:1000 lpattack:0.1 fenv:1 release:0.2 attack:0 ]", + "[ 5/2 → 8/3 | note:g3 s:square cutoff:1000 lpattack:0.1 fenv:1 release:0.2 attack:0 ]", + "[ 8/3 → 17/6 | note:ab3 s:square cutoff:1000 lpattack:0.1 fenv:1 release:0.2 attack:0 ]", + "[ 17/6 → 3/1 | note:bb3 s:square cutoff:1000 lpattack:0.1 fenv:1 release:0.2 attack:0 ]", + "[ 3/1 → 19/6 | note:c3 s:square cutoff:1000 lpattack:0.1 fenv:1 release:0.2 attack:0 ]", + "[ 19/6 → 10/3 | note:e3 s:square cutoff:1000 lpattack:0.1 fenv:1 release:0.2 attack:0 ]", + "[ 10/3 → 7/2 | note:f3 s:square cutoff:1000 lpattack:0.1 fenv:1 release:0.2 attack:0 ]", + "[ 7/2 → 11/3 | note:g3 s:square cutoff:1000 lpattack:0.1 fenv:1 release:0.2 attack:0 ]", + "[ 11/3 → 23/6 | note:ab3 s:square cutoff:1000 lpattack:0.1 fenv:1 release:0.2 attack:0 ]", + "[ 23/6 → 4/1 | note:bb3 s:square cutoff:1000 lpattack:0.1 fenv:1 release:0.2 attack:0 ]", +] +`; + +exports[`runs examples > example "lpdecay" example index 0 1`] = ` +[ + "[ 0/1 → 1/6 | note:c3 s:square cutoff:1000 lpdecay:0.05 fenv:4 lpsustain:0 lprelease:0 ]", + "[ 1/6 → 1/3 | note:e3 s:square cutoff:1000 lpdecay:0.05 fenv:4 lpsustain:0 lprelease:0 ]", + "[ 1/3 → 1/2 | note:f3 s:square cutoff:1000 lpdecay:0.05 fenv:4 lpsustain:0 lprelease:0 ]", + "[ 1/2 → 2/3 | note:g3 s:square cutoff:1000 lpdecay:0.05 fenv:4 lpsustain:0 lprelease:0 ]", + "[ 2/3 → 5/6 | note:ab3 s:square cutoff:1000 lpdecay:0.05 fenv:4 lpsustain:0 lprelease:0 ]", + "[ 5/6 → 1/1 | note:bb3 s:square cutoff:1000 lpdecay:0.05 fenv:4 lpsustain:0 lprelease:0 ]", + "[ 1/1 → 7/6 | note:c3 s:square cutoff:1000 lpdecay:0.05 fenv:4 lpsustain:0 lprelease:0 ]", + "[ 7/6 → 4/3 | note:e3 s:square cutoff:1000 lpdecay:0.05 fenv:4 lpsustain:0 lprelease:0 ]", + "[ 4/3 → 3/2 | note:f3 s:square cutoff:1000 lpdecay:0.05 fenv:4 lpsustain:0 lprelease:0 ]", + "[ 3/2 → 5/3 | note:g3 s:square cutoff:1000 lpdecay:0.05 fenv:4 lpsustain:0 lprelease:0 ]", + "[ 5/3 → 11/6 | note:ab3 s:square cutoff:1000 lpdecay:0.05 fenv:4 lpsustain:0 lprelease:0 ]", + "[ 11/6 → 2/1 | note:bb3 s:square cutoff:1000 lpdecay:0.05 fenv:4 lpsustain:0 lprelease:0 ]", + "[ 2/1 → 13/6 | note:c3 s:square cutoff:1000 lpdecay:0.1 fenv:4 lpsustain:0 lprelease:0 ]", + "[ 13/6 → 7/3 | note:e3 s:square cutoff:1000 lpdecay:0.1 fenv:4 lpsustain:0 lprelease:0 ]", + "[ 7/3 → 5/2 | note:f3 s:square cutoff:1000 lpdecay:0.1 fenv:4 lpsustain:0 lprelease:0 ]", + "[ 5/2 → 8/3 | note:g3 s:square cutoff:1000 lpdecay:0.1 fenv:4 lpsustain:0 lprelease:0 ]", + "[ 8/3 → 17/6 | note:ab3 s:square cutoff:1000 lpdecay:0.1 fenv:4 lpsustain:0 lprelease:0 ]", + "[ 17/6 → 3/1 | note:bb3 s:square cutoff:1000 lpdecay:0.1 fenv:4 lpsustain:0 lprelease:0 ]", + "[ 3/1 → 19/6 | note:c3 s:square cutoff:1000 lpdecay:0.1 fenv:4 lpsustain:0 lprelease:0 ]", + "[ 19/6 → 10/3 | note:e3 s:square cutoff:1000 lpdecay:0.1 fenv:4 lpsustain:0 lprelease:0 ]", + "[ 10/3 → 7/2 | note:f3 s:square cutoff:1000 lpdecay:0.1 fenv:4 lpsustain:0 lprelease:0 ]", + "[ 7/2 → 11/3 | note:g3 s:square cutoff:1000 lpdecay:0.1 fenv:4 lpsustain:0 lprelease:0 ]", + "[ 11/3 → 23/6 | note:ab3 s:square cutoff:1000 lpdecay:0.1 fenv:4 lpsustain:0 lprelease:0 ]", + "[ 23/6 → 4/1 | note:bb3 s:square cutoff:1000 lpdecay:0.1 fenv:4 lpsustain:0 lprelease:0 ]", +] +`; + exports[`runs examples > example "lpf" example index 0 1`] = ` [ "[ 0/1 → 1/3 | s:hh cutoff:4000 ]", @@ -2657,6 +2736,56 @@ exports[`runs examples > example "lpq" example index 0 1`] = ` ] `; +exports[`runs examples > example "lprelease" example index 0 1`] = ` +[ + "[ 0/1 → 1/4 | note:c3 lprelease:0.1 fenv:0.5 ]", + "[ 1/4 → 1/2 | note:e3 lprelease:0.1 fenv:0.5 ]", + "[ 1/2 → 3/4 | note:g3 lprelease:0.1 fenv:0.5 ]", + "[ 3/4 → 1/1 | note:c4 lprelease:0.1 fenv:0.5 ]", + "[ 1/1 → 5/4 | note:c3 lprelease:0.25 fenv:0.5 ]", + "[ 5/4 → 3/2 | note:e3 lprelease:0.25 fenv:0.5 ]", + "[ 3/2 → 7/4 | note:g3 lprelease:0.25 fenv:0.5 ]", + "[ 7/4 → 2/1 | note:c4 lprelease:0.25 fenv:0.5 ]", + "[ 2/1 → 9/4 | note:c3 lprelease:0.5 fenv:0.5 ]", + "[ 9/4 → 5/2 | note:e3 lprelease:0.5 fenv:0.5 ]", + "[ 5/2 → 11/4 | note:g3 lprelease:0.5 fenv:0.5 ]", + "[ 11/4 → 3/1 | note:c4 lprelease:0.5 fenv:0.5 ]", + "[ 3/1 → 13/4 | note:c3 lprelease:0.1 fenv:0.5 ]", + "[ 13/4 → 7/2 | note:e3 lprelease:0.1 fenv:0.5 ]", + "[ 7/2 → 15/4 | note:g3 lprelease:0.1 fenv:0.5 ]", + "[ 15/4 → 4/1 | note:c4 lprelease:0.1 fenv:0.5 ]", +] +`; + +exports[`runs examples > example "lpsustain" example index 0 1`] = ` +[ + "[ 0/1 → 1/6 | note:c3 s:square cutoff:200 lpdecay:0.1 lpsustain:0.1 fenv:2 ]", + "[ 1/6 → 1/3 | note:e3 s:square cutoff:200 lpdecay:0.1 lpsustain:0.1 fenv:2 ]", + "[ 1/3 → 1/2 | note:f3 s:square cutoff:200 lpdecay:0.1 lpsustain:0.1 fenv:2 ]", + "[ 1/2 → 2/3 | note:g3 s:square cutoff:200 lpdecay:0.1 lpsustain:0.1 fenv:2 ]", + "[ 2/3 → 5/6 | note:ab3 s:square cutoff:200 lpdecay:0.1 lpsustain:0.1 fenv:2 ]", + "[ 5/6 → 1/1 | note:bb3 s:square cutoff:200 lpdecay:0.1 lpsustain:0.1 fenv:2 ]", + "[ 1/1 → 7/6 | note:c3 s:square cutoff:200 lpdecay:0.1 lpsustain:0.5 fenv:2 ]", + "[ 7/6 → 4/3 | note:e3 s:square cutoff:200 lpdecay:0.1 lpsustain:0.5 fenv:2 ]", + "[ 4/3 → 3/2 | note:f3 s:square cutoff:200 lpdecay:0.1 lpsustain:0.5 fenv:2 ]", + "[ 3/2 → 5/3 | note:g3 s:square cutoff:200 lpdecay:0.1 lpsustain:0.5 fenv:2 ]", + "[ 5/3 → 11/6 | note:ab3 s:square cutoff:200 lpdecay:0.1 lpsustain:0.5 fenv:2 ]", + "[ 11/6 → 2/1 | note:bb3 s:square cutoff:200 lpdecay:0.1 lpsustain:0.5 fenv:2 ]", + "[ 2/1 → 13/6 | note:c3 s:square cutoff:200 lpdecay:0.1 lpsustain:0.75 fenv:2 ]", + "[ 13/6 → 7/3 | note:e3 s:square cutoff:200 lpdecay:0.1 lpsustain:0.75 fenv:2 ]", + "[ 7/3 → 5/2 | note:f3 s:square cutoff:200 lpdecay:0.1 lpsustain:0.75 fenv:2 ]", + "[ 5/2 → 8/3 | note:g3 s:square cutoff:200 lpdecay:0.1 lpsustain:0.75 fenv:2 ]", + "[ 8/3 → 17/6 | note:ab3 s:square cutoff:200 lpdecay:0.1 lpsustain:0.75 fenv:2 ]", + "[ 17/6 → 3/1 | note:bb3 s:square cutoff:200 lpdecay:0.1 lpsustain:0.75 fenv:2 ]", + "[ 3/1 → 19/6 | note:c3 s:square cutoff:200 lpdecay:0.1 lpsustain:1 fenv:2 ]", + "[ 19/6 → 10/3 | note:e3 s:square cutoff:200 lpdecay:0.1 lpsustain:1 fenv:2 ]", + "[ 10/3 → 7/2 | note:f3 s:square cutoff:200 lpdecay:0.1 lpsustain:1 fenv:2 ]", + "[ 7/2 → 11/3 | note:g3 s:square cutoff:200 lpdecay:0.1 lpsustain:1 fenv:2 ]", + "[ 11/3 → 23/6 | note:ab3 s:square cutoff:200 lpdecay:0.1 lpsustain:1 fenv:2 ]", + "[ 23/6 → 4/1 | note:bb3 s:square cutoff:200 lpdecay:0.1 lpsustain:1 fenv:2 ]", +] +`; + exports[`runs examples > example "lrate" example index 0 1`] = ` [ "[ 0/1 → 1/1 | n:0 s:supersquare leslie:1 lrate:1 ]",