diff --git a/packages/core/controls.mjs b/packages/core/controls.mjs index 130608447..03de38666 100644 --- a/packages/core/controls.mjs +++ b/packages/core/controls.mjs @@ -1944,7 +1944,7 @@ export const { speed } = registerControl('speed'); * @name stretch * @param {number | Pattern} factor between `-4` and `inf`. Positive increases pitch, 0 does nothing, negative decreases the pitch. * @example - * s("gm_flute").stretch("<3 2 1 0 -2>") + * s("gm_flute").stretch("<2 1 0 -2>") * */ export const { stretch } = registerControl('stretch'); diff --git a/test/__snapshots__/examples.test.mjs.snap b/test/__snapshots__/examples.test.mjs.snap index 73278947d..a23806c1c 100644 --- a/test/__snapshots__/examples.test.mjs.snap +++ b/test/__snapshots__/examples.test.mjs.snap @@ -10439,18 +10439,10 @@ exports[`runs examples > example "stepcat" example index 1 1`] = ` exports[`runs examples > example "stretch" example index 0 1`] = ` [ - "[ (0/1 → 1/3) ⇝ 1/1 | s:gm_flute stretch:1 ]", - "[ 0/1 ⇜ (1/3 → 2/3) ⇝ 1/1 | s:gm_flute stretch:2 ]", - "[ 0/1 ⇜ (2/3 → 1/1) | s:gm_flute stretch:0.5 ]", - "[ (1/1 → 4/3) ⇝ 2/1 | s:gm_flute stretch:1 ]", - "[ 1/1 ⇜ (4/3 → 5/3) ⇝ 2/1 | s:gm_flute stretch:2 ]", - "[ 1/1 ⇜ (5/3 → 2/1) | s:gm_flute stretch:0.5 ]", - "[ (2/1 → 7/3) ⇝ 3/1 | s:gm_flute stretch:1 ]", - "[ 2/1 ⇜ (7/3 → 8/3) ⇝ 3/1 | s:gm_flute stretch:2 ]", - "[ 2/1 ⇜ (8/3 → 3/1) | s:gm_flute stretch:0.5 ]", - "[ (3/1 → 10/3) ⇝ 4/1 | s:gm_flute stretch:1 ]", - "[ 3/1 ⇜ (10/3 → 11/3) ⇝ 4/1 | s:gm_flute stretch:2 ]", - "[ 3/1 ⇜ (11/3 → 4/1) | s:gm_flute stretch:0.5 ]", + "[ 0/1 → 1/1 | s:gm_flute stretch:3 ]", + "[ 1/1 → 2/1 | s:gm_flute stretch:2 ]", + "[ 2/1 → 3/1 | s:gm_flute stretch:1 ]", + "[ 3/1 → 4/1 | s:gm_flute stretch:-2 ]", ] `;