Add mousex and mousey the Docs

This commit is contained in:
Enelg52 2024-05-29 10:42:31 +02:00
parent be6634f919
commit 0efac42d92
3 changed files with 9 additions and 22 deletions

View File

@ -100,7 +100,7 @@ export const time = signal(id);
* @name mousey * @name mousey
* @return {Pattern} * @return {Pattern}
* @example * @example
* n(mousex.segment(4).range(0,7)).scale("C:minor") * n(mousey.segment(4).range(0,7)).scale("C:minor")
* *
*/ */
let _mouseY = 0, let _mouseY = 0,

View File

@ -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`] = ` exports[`runs examples > example "accelerate" example index 0 1`] = `
[ [
"[ 0/1 → 2/1 | s:sax accelerate:0 ]", "[ 0/1 → 2/1 | s:sax accelerate:0 ]",

View File

@ -55,4 +55,12 @@ There is also `saw2`, `sine2`, `cosine2`, `tri2`, `square2` and `rand2` which ha
<JsDoc client:idle name="brandBy" h={0} /> <JsDoc client:idle name="brandBy" h={0} />
## mouseX
<JsDoc client:idle name="mousex" h={0} />
## mouseY
<JsDoc client:idle name="mousey" h={0} />
Next up: [Random Modifiers](/learn/random-modifiers) Next up: [Random Modifiers](/learn/random-modifiers)