update snapshot

This commit is contained in:
Jade (Rose) Rowland 2025-01-02 22:39:56 -05:00
parent 7b914e7f22
commit 1d144faed7
2 changed files with 34 additions and 7 deletions

View file

@ -3101,7 +3101,6 @@ Pattern.prototype.xfade = function (pos, b) {
return xfade(this, pos, b);
};
/**
* creates a structure pattern from divisions of a cycle
* especially useful for creating rhythms
@ -3112,11 +3111,9 @@ Pattern.prototype.xfade = function (pos, b) {
* @example
* s("sd").os("4:12", 16)
*/
export const {onSubCycle, onSub, os} = register(['onSubCycle', 'onSub', 'os'], (times, div, pat) => {
export const { onSubCycle, onSub, os } = register(['onSubCycle', 'onSub', 'os'], (times, div, pat) => {
if (typeof times === 'number') {
times = [times]
times = [times];
}
return stack(
...times.map(t => pat.pressBy(_mod(t, div)/div).duration(1/div))
)}
)
return stack(...times.map((t) => pat.pressBy(_mod(t, div) / div).duration(1 / div)));
});