mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-11 21:58:37 +00:00
Make the docs friendlier
This commit is contained in:
parent
111cea2381
commit
7cf7575e6d
@ -161,7 +161,7 @@ export const run = (n) => saw.range(0, n).floor().segment(n);
|
||||
|
||||
/**
|
||||
* @name binary
|
||||
* Creates a discrete pattern using binary representation.
|
||||
* Creates a pattern from a binary number.
|
||||
* @param {number} n - input number to convert to binary
|
||||
* @example
|
||||
* "hh".s().struct(binary(5))
|
||||
@ -174,7 +174,7 @@ export const binary = (n) => {
|
||||
|
||||
/**
|
||||
* @name binaryN
|
||||
* Creates a discrete pattern using binary representation.
|
||||
* Creates a pattern from a binary number, padded to n bits long.
|
||||
* @param {number} n - input number to convert to binary
|
||||
* @param {number} nBits - pattern length, defaults to 16
|
||||
* @example
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user