diff --git a/test/__snapshots__/examples.test.mjs.snap b/test/__snapshots__/examples.test.mjs.snap index ee937e2b..a94d32b3 100644 --- a/test/__snapshots__/examples.test.mjs.snap +++ b/test/__snapshots__/examples.test.mjs.snap @@ -1825,6 +1825,69 @@ exports[`runs examples > example "fm" example index 0 1`] = ` ] `; +exports[`runs examples > example "fmattack" example index 0 1`] = ` +[ + "[ 0/1 → 1/4 | note:c fmi:4 fmattack:0 ]", + "[ 1/4 → 1/2 | note:e fmi:4 fmattack:0 ]", + "[ 1/2 → 3/4 | note:g fmi:4 fmattack:0 ]", + "[ 3/4 → 1/1 | note:b fmi:4 fmattack:0 ]", + "[ 1/1 → 5/4 | note:c fmi:4 fmattack:0.05 ]", + "[ 5/4 → 3/2 | note:e fmi:4 fmattack:0.05 ]", + "[ 3/2 → 7/4 | note:g fmi:4 fmattack:0.05 ]", + "[ 7/4 → 2/1 | note:b fmi:4 fmattack:0.05 ]", + "[ 2/1 → 9/4 | note:c fmi:4 fmattack:0.1 ]", + "[ 9/4 → 5/2 | note:e fmi:4 fmattack:0.1 ]", + "[ 5/2 → 11/4 | note:g fmi:4 fmattack:0.1 ]", + "[ 11/4 → 3/1 | note:b fmi:4 fmattack:0.1 ]", + "[ 3/1 → 13/4 | note:c fmi:4 fmattack:0.2 ]", + "[ 13/4 → 7/2 | note:e fmi:4 fmattack:0.2 ]", + "[ 7/2 → 15/4 | note:g fmi:4 fmattack:0.2 ]", + "[ 15/4 → 4/1 | note:b fmi:4 fmattack:0.2 ]", +] +`; + +exports[`runs examples > example "fmdecay" example index 0 1`] = ` +[ + "[ 0/1 → 1/4 | note:c fmi:4 fmdecay:0.01 fmsustain:0.4 ]", + "[ 1/4 → 1/2 | note:e fmi:4 fmdecay:0.01 fmsustain:0.4 ]", + "[ 1/2 → 3/4 | note:g fmi:4 fmdecay:0.01 fmsustain:0.4 ]", + "[ 3/4 → 1/1 | note:b fmi:4 fmdecay:0.01 fmsustain:0.4 ]", + "[ 1/1 → 5/4 | note:c fmi:4 fmdecay:0.05 fmsustain:0.4 ]", + "[ 5/4 → 3/2 | note:e fmi:4 fmdecay:0.05 fmsustain:0.4 ]", + "[ 3/2 → 7/4 | note:g fmi:4 fmdecay:0.05 fmsustain:0.4 ]", + "[ 7/4 → 2/1 | note:b fmi:4 fmdecay:0.05 fmsustain:0.4 ]", + "[ 2/1 → 9/4 | note:c fmi:4 fmdecay:0.1 fmsustain:0.4 ]", + "[ 9/4 → 5/2 | note:e fmi:4 fmdecay:0.1 fmsustain:0.4 ]", + "[ 5/2 → 11/4 | note:g fmi:4 fmdecay:0.1 fmsustain:0.4 ]", + "[ 11/4 → 3/1 | note:b fmi:4 fmdecay:0.1 fmsustain:0.4 ]", + "[ 3/1 → 13/4 | note:c fmi:4 fmdecay:0.2 fmsustain:0.4 ]", + "[ 13/4 → 7/2 | note:e fmi:4 fmdecay:0.2 fmsustain:0.4 ]", + "[ 7/2 → 15/4 | note:g fmi:4 fmdecay:0.2 fmsustain:0.4 ]", + "[ 15/4 → 4/1 | note:b fmi:4 fmdecay:0.2 fmsustain:0.4 ]", +] +`; + +exports[`runs examples > example "fmenv" example index 0 1`] = ` +[ + "[ 0/1 → 1/4 | note:c fmi:4 fmdecay:0.2 fmsustain:0.4 fmenv:exp ]", + "[ 1/4 → 1/2 | note:e fmi:4 fmdecay:0.2 fmsustain:0.4 fmenv:exp ]", + "[ 1/2 → 3/4 | note:g fmi:4 fmdecay:0.2 fmsustain:0.4 fmenv:exp ]", + "[ 3/4 → 1/1 | note:b fmi:4 fmdecay:0.2 fmsustain:0.4 fmenv:exp ]", + "[ 1/1 → 5/4 | note:c fmi:4 fmdecay:0.2 fmsustain:0.4 fmenv:lin ]", + "[ 5/4 → 3/2 | note:e fmi:4 fmdecay:0.2 fmsustain:0.4 fmenv:lin ]", + "[ 3/2 → 7/4 | note:g fmi:4 fmdecay:0.2 fmsustain:0.4 fmenv:lin ]", + "[ 7/4 → 2/1 | note:b fmi:4 fmdecay:0.2 fmsustain:0.4 fmenv:lin ]", + "[ 2/1 → 9/4 | note:c fmi:4 fmdecay:0.2 fmsustain:0.4 fmenv:exp ]", + "[ 9/4 → 5/2 | note:e fmi:4 fmdecay:0.2 fmsustain:0.4 fmenv:exp ]", + "[ 5/2 → 11/4 | note:g fmi:4 fmdecay:0.2 fmsustain:0.4 fmenv:exp ]", + "[ 11/4 → 3/1 | note:b fmi:4 fmdecay:0.2 fmsustain:0.4 fmenv:exp ]", + "[ 3/1 → 13/4 | note:c fmi:4 fmdecay:0.2 fmsustain:0.4 fmenv:lin ]", + "[ 13/4 → 7/2 | note:e fmi:4 fmdecay:0.2 fmsustain:0.4 fmenv:lin ]", + "[ 7/2 → 15/4 | note:g fmi:4 fmdecay:0.2 fmsustain:0.4 fmenv:lin ]", + "[ 15/4 → 4/1 | note:b fmi:4 fmdecay:0.2 fmsustain:0.4 fmenv:lin ]", +] +`; + exports[`runs examples > example "fmh" example index 0 1`] = ` [ "[ 0/1 → 1/4 | note:c fmi:4 fmh:1 ]", @@ -1846,6 +1909,27 @@ exports[`runs examples > example "fmh" example index 0 1`] = ` ] `; +exports[`runs examples > example "fmsustain" example index 0 1`] = ` +[ + "[ 0/1 → 1/4 | note:c fmi:4 fmdecay:0.1 fmsustain:1 ]", + "[ 1/4 → 1/2 | note:e fmi:4 fmdecay:0.1 fmsustain:1 ]", + "[ 1/2 → 3/4 | note:g fmi:4 fmdecay:0.1 fmsustain:1 ]", + "[ 3/4 → 1/1 | note:b fmi:4 fmdecay:0.1 fmsustain:1 ]", + "[ 1/1 → 5/4 | note:c fmi:4 fmdecay:0.1 fmsustain:0.75 ]", + "[ 5/4 → 3/2 | note:e fmi:4 fmdecay:0.1 fmsustain:0.75 ]", + "[ 3/2 → 7/4 | note:g fmi:4 fmdecay:0.1 fmsustain:0.75 ]", + "[ 7/4 → 2/1 | note:b fmi:4 fmdecay:0.1 fmsustain:0.75 ]", + "[ 2/1 → 9/4 | note:c fmi:4 fmdecay:0.1 fmsustain:0.5 ]", + "[ 9/4 → 5/2 | note:e fmi:4 fmdecay:0.1 fmsustain:0.5 ]", + "[ 5/2 → 11/4 | note:g fmi:4 fmdecay:0.1 fmsustain:0.5 ]", + "[ 11/4 → 3/1 | note:b fmi:4 fmdecay:0.1 fmsustain:0.5 ]", + "[ 3/1 → 13/4 | note:c fmi:4 fmdecay:0.1 fmsustain:0 ]", + "[ 13/4 → 7/2 | note:e fmi:4 fmdecay:0.1 fmsustain:0 ]", + "[ 7/2 → 15/4 | note:g fmi:4 fmdecay:0.1 fmsustain:0 ]", + "[ 15/4 → 4/1 | note:b fmi:4 fmdecay:0.1 fmsustain:0 ]", +] +`; + exports[`runs examples > example "focus" example index 0 1`] = ` [ "[ 0/1 → 1/8 | s:sd ]",