From 0efac42d92e964b45d6acda7bc473d9a7267ed62 Mon Sep 17 00:00:00 2001 From: Enelg52 Date: Wed, 29 May 2024 10:42:31 +0200 Subject: [PATCH] Add mousex and mousey the Docs --- packages/core/signal.mjs | 2 +- test/__snapshots__/examples.test.mjs.snap | 21 --------------------- website/src/pages/learn/signals.mdx | 8 ++++++++ 3 files changed, 9 insertions(+), 22 deletions(-) diff --git a/packages/core/signal.mjs b/packages/core/signal.mjs index 7b2bd6b9..1b950c39 100644 --- a/packages/core/signal.mjs +++ b/packages/core/signal.mjs @@ -100,7 +100,7 @@ export const time = signal(id); * @name mousey * @return {Pattern} * @example - * n(mousex.segment(4).range(0,7)).scale("C:minor") + * n(mousey.segment(4).range(0,7)).scale("C:minor") * */ let _mouseY = 0, diff --git a/test/__snapshots__/examples.test.mjs.snap b/test/__snapshots__/examples.test.mjs.snap index a11742d4..ddbb6f91 100644 --- a/test/__snapshots__/examples.test.mjs.snap +++ b/test/__snapshots__/examples.test.mjs.snap @@ -565,27 +565,6 @@ exports[`runs examples > example "_euclidRot" example index 20 1`] = ` ] `; -exports[`runs examples > example "_mouseY" example index 0 1`] = ` -[ - "[ 0/1 → 1/4 | note:C3 ]", - "[ 1/4 → 1/2 | note:C3 ]", - "[ 1/2 → 3/4 | note:C3 ]", - "[ 3/4 → 1/1 | note:C3 ]", - "[ 1/1 → 5/4 | note:C3 ]", - "[ 5/4 → 3/2 | note:C3 ]", - "[ 3/2 → 7/4 | note:C3 ]", - "[ 7/4 → 2/1 | note:C3 ]", - "[ 2/1 → 9/4 | note:C3 ]", - "[ 9/4 → 5/2 | note:C3 ]", - "[ 5/2 → 11/4 | note:C3 ]", - "[ 11/4 → 3/1 | note:C3 ]", - "[ 3/1 → 13/4 | note:C3 ]", - "[ 13/4 → 7/2 | note:C3 ]", - "[ 7/2 → 15/4 | note:C3 ]", - "[ 15/4 → 4/1 | note:C3 ]", -] -`; - exports[`runs examples > example "accelerate" example index 0 1`] = ` [ "[ 0/1 → 2/1 | s:sax accelerate:0 ]", diff --git a/website/src/pages/learn/signals.mdx b/website/src/pages/learn/signals.mdx index 7c9d69df..527e42be 100644 --- a/website/src/pages/learn/signals.mdx +++ b/website/src/pages/learn/signals.mdx @@ -55,4 +55,12 @@ There is also `saw2`, `sine2`, `cosine2`, `tri2`, `square2` and `rand2` which ha +## mouseX + + + +## mouseY + + + Next up: [Random Modifiers](/learn/random-modifiers)