diff --git a/packages/xen/xen.mjs b/packages/xen/xen.mjs index bd77f75a6..34d219c0a 100644 --- a/packages/xen/xen.mjs +++ b/packages/xen/xen.mjs @@ -92,6 +92,8 @@ const trimFreq = freq => parseFloat(freq.toPrecision(10)); * "0 1 2 3 4 5".xen("hexany15") * // equiv to: * // "0 1 2 3 4 5".tune("hexany15").mul("220").freq() + * @example + * n("0 1 2 3 4 5 6 7").xen("<5edo 10edo 15edo hexany15>") */ // TODO feat: change root frequency diff --git a/test/__snapshots__/examples.test.mjs.snap b/test/__snapshots__/examples.test.mjs.snap index fef97dea8..77d95003b 100644 --- a/test/__snapshots__/examples.test.mjs.snap +++ b/test/__snapshots__/examples.test.mjs.snap @@ -14349,6 +14349,43 @@ exports[`runs examples > example "xen" example index 2 1`] = ` ] `; +exports[`runs examples > example "xen" example index 3 1`] = ` +[ + "[ 0/1 → 1/8 | freq:220 ]", + "[ 1/8 → 1/4 | freq:252.7136381 ]", + "[ 1/4 → 3/8 | freq:290.2917404 ]", + "[ 3/8 → 1/2 | freq:333.4576446 ]", + "[ 1/2 → 5/8 | freq:383.0422479 ]", + "[ 5/8 → 3/4 | freq:440 ]", + "[ 3/4 → 7/8 | freq:505.4272762 ]", + "[ 7/8 → 1/1 | freq:580.5834807 ]", + "[ 1/1 → 9/8 | freq:220 ]", + "[ 9/8 → 5/4 | freq:235.7901618 ]", + "[ 5/4 → 11/8 | freq:252.7136381 ]", + "[ 11/8 → 3/2 | freq:270.8517709 ]", + "[ 3/2 → 13/8 | freq:290.2917404 ]", + "[ 13/8 → 7/4 | freq:311.1269837 ]", + "[ 7/4 → 15/8 | freq:333.4576446 ]", + "[ 15/8 → 2/1 | freq:357.3910544 ]", + "[ 2/1 → 17/8 | freq:220 ]", + "[ 17/8 → 9/4 | freq:230.404707 ]", + "[ 9/4 → 19/8 | freq:241.3014955 ]", + "[ 19/8 → 5/2 | freq:252.7136381 ]", + "[ 5/2 → 21/8 | freq:264.6655079 ]", + "[ 21/8 → 11/4 | freq:277.182631 ]", + "[ 11/4 → 23/8 | freq:290.2917404 ]", + "[ 23/8 → 3/1 | freq:304.0208336 ]", + "[ 3/1 → 25/8 | freq:220 ]", + "[ 25/8 → 13/4 | freq:275 ]", + "[ 13/4 → 27/8 | freq:293.3333333 ]", + "[ 27/8 → 7/2 | freq:330 ]", + "[ 7/2 → 29/8 | freq:352 ]", + "[ 29/8 → 15/4 | freq:440 ]", + "[ 15/4 → 31/8 | freq:550 ]", + "[ 31/8 → 4/1 | freq:586.6666667 ]", +] +`; + exports[`runs examples > example "xfade" example index 0 1`] = ` [ "[ 0/1 → 1/8 | s:hh gain:0 ]",