Merge branch 'main' into uzu
This commit is contained in:
commit
67bfedb317
20 changed files with 351 additions and 117 deletions
|
|
@ -1984,6 +1984,7 @@ export const apply = register('apply', function (func, pat) {
|
|||
|
||||
/**
|
||||
* Plays the pattern at the given cycles per minute.
|
||||
* @deprecated
|
||||
* @example
|
||||
* s("<bd sd>,hh*2").cpm(90) // = 90 bpm
|
||||
*/
|
||||
|
|
@ -2722,7 +2723,7 @@ export function stepcat(...timepats) {
|
|||
if (timepats.length === 0) {
|
||||
return nothing;
|
||||
}
|
||||
const findsteps = (x) => (Array.isArray(x) ? x : [x._steps, x]);
|
||||
const findsteps = (x) => (Array.isArray(x) ? x : [x._steps ?? 1, x]);
|
||||
timepats = timepats.map(findsteps);
|
||||
if (timepats.find((x) => x[0] === undefined)) {
|
||||
const times = timepats.map((a) => a[0]).filter((x) => x !== undefined);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue