mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-11 13:48:40 +00:00
Fix accidental multi-line jsdoc name
This commit is contained in:
parent
426c5edf25
commit
8644b3d163
@ -160,8 +160,9 @@ const timeToRands = (t, n) => timeToRandsPrime(timeToIntSeed(t), n);
|
|||||||
export const run = (n) => saw.range(0, n).floor().segment(n);
|
export const run = (n) => saw.range(0, n).floor().segment(n);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name binary
|
|
||||||
* Creates a pattern from a binary number.
|
* Creates a pattern from a binary number.
|
||||||
|
*
|
||||||
|
* @name binary
|
||||||
* @param {number} n - input number to convert to binary
|
* @param {number} n - input number to convert to binary
|
||||||
* @example
|
* @example
|
||||||
* "hh".s().struct(binary(5))
|
* "hh".s().struct(binary(5))
|
||||||
@ -173,8 +174,9 @@ export const binary = (n) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name binaryN
|
|
||||||
* Creates a pattern from a binary number, padded to n bits long.
|
* Creates a pattern from a binary number, padded to n bits long.
|
||||||
|
*
|
||||||
|
* @name binaryN
|
||||||
* @param {number} n - input number to convert to binary
|
* @param {number} n - input number to convert to binary
|
||||||
* @param {number} nBits - pattern length, defaults to 16
|
* @param {number} nBits - pattern length, defaults to 16
|
||||||
* @example
|
* @example
|
||||||
|
|||||||
@ -967,8 +967,7 @@ exports[`runs examples > example "begin" example index 0 1`] = `
|
|||||||
]
|
]
|
||||||
`;
|
`;
|
||||||
|
|
||||||
exports[`runs examples > example "binary
|
exports[`runs examples > example "binary" example index 0 1`] = `
|
||||||
Creates a pattern from a binary number." example index 0 1`] = `
|
|
||||||
[
|
[
|
||||||
"[ 0/1 → 1/3 | s:hh ]",
|
"[ 0/1 → 1/3 | s:hh ]",
|
||||||
"[ 2/3 → 1/1 | s:hh ]",
|
"[ 2/3 → 1/1 | s:hh ]",
|
||||||
@ -981,8 +980,7 @@ Creates a pattern from a binary number." example index 0 1`] = `
|
|||||||
]
|
]
|
||||||
`;
|
`;
|
||||||
|
|
||||||
exports[`runs examples > example "binaryN
|
exports[`runs examples > example "binaryN" example index 0 1`] = `
|
||||||
Creates a pattern from a binary number, padded to n bits long." example index 0 1`] = `
|
|
||||||
[
|
[
|
||||||
"[ 0/1 → 1/16 | s:hh ]",
|
"[ 0/1 → 1/16 | s:hh ]",
|
||||||
"[ 1/16 → 1/8 | s:hh ]",
|
"[ 1/16 → 1/8 | s:hh ]",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user