This commit is contained in:
alex
2025-07-28 15:33:18 +02:00
parent ee3e1217b4
commit 784ee576da
2 changed files with 34 additions and 3 deletions
+1 -3
View File
@@ -214,10 +214,8 @@ export const euclidLegatoRot = register(['euclidLegatoRot'], function (pulses, s
* @example
* sound("hh").euclidish(7,12,tri.slow(8))
* .pan(tri.slow(8))
* @example
* sound("bd").euclidish(7,12,slider(0,0.1,1))
*/
export const [euclidish, eish] = register(['euclidish', 'eish'], function (pulses, steps, perc, pat) {
export const { euclidish, eish } = register(['euclidish', 'eish'], function (pulses, steps, perc, pat) {
const b = bjork(pulses, steps);
let trues = 0;
const offs = [];
+33
View File
@@ -3271,6 +3271,39 @@ exports[`runs examples > example "euclidRot" example index 0 1`] = `
]
`;
exports[`runs examples > example "euclidish" example index 0 1`] = `
[
"[ 0/1 → 1/12 | s:hh pan:0 ]",
"[ 1/6 → 1/4 | s:hh pan:0.041666666666666664 ]",
"[ 1/4 → 1/3 | s:hh pan:0.0625 ]",
"[ 5/12 → 1/2 | s:hh pan:0.10416666666666667 ]",
"[ 7/12 → 2/3 | s:hh pan:0.14583333333333334 ]",
"[ 2/3 → 3/4 | s:hh pan:0.16666666666666666 ]",
"[ 5/6 → 11/12 | s:hh pan:0.20833333333333334 ]",
"[ 1/1 → 13/12 | s:hh pan:0.25 ]",
"[ 65/56 → 209/168 | s:hh pan:0.29017857142857145 ]",
"[ 141/112 → 451/336 | s:hh pan:0.31473214285714285 ]",
"[ 159/112 → 505/336 | s:hh pan:0.3549107142857143 ]",
"[ 177/112 → 559/336 | s:hh pan:0.3950892857142857 ]",
"[ 47/28 → 37/21 | s:hh pan:0.41964285714285715 ]",
"[ 103/56 → 323/168 | s:hh pan:0.45982142857142855 ]",
"[ 2/1 → 25/12 | s:hh pan:0.5 ]",
"[ 181/84 → 47/21 | s:hh pan:0.5386904761904762 ]",
"[ 127/56 → 395/168 | s:hh pan:0.5669642857142857 ]",
"[ 407/168 → 421/168 | s:hh pan:0.6056547619047619 ]",
"[ 433/168 → 149/56 | s:hh pan:0.6443452380952381 ]",
"[ 113/42 → 233/84 | s:hh pan:0.6726190476190477 ]",
"[ 239/84 → 41/14 | s:hh pan:0.7113095238095238 ]",
"[ 3/1 → 37/12 | s:hh pan:0.75 ]",
"[ 529/168 → 181/56 | s:hh pan:0.7872023809523809 ]",
"[ 367/112 → 1129/336 | s:hh pan:0.8191964285714286 ]",
"[ 1151/336 → 393/112 | s:hh pan:0.8563988095238095 ]",
"[ 1201/336 → 1229/336 | s:hh pan:0.8936011904761905 ]",
"[ 311/84 → 53/14 | s:hh pan:0.9255952380952381 ]",
"[ 647/168 → 661/168 | s:hh pan:0.9627976190476191 ]",
]
`;
exports[`runs examples > example "every" example index 0 1`] = `
[
"[ 0/1 → 1/4 | note:g3 ]",