channge function name

This commit is contained in:
Jade (Rose) Rowland 2025-01-08 00:43:02 -05:00
parent 1d144faed7
commit f5127147de

View file

@ -3104,14 +3104,13 @@ Pattern.prototype.xfade = function (pos, b) {
/** /**
* creates a structure pattern from divisions of a cycle * creates a structure pattern from divisions of a cycle
* especially useful for creating rhythms * especially useful for creating rhythms
* @name onSubCycle * @name beat
* @synonyms onSub, os
* @example * @example
* s("bd").os("0:7:10", 16) * s("bd").beat("0:7:10", 16)
* @example * @example
* s("sd").os("4:12", 16) * s("sd").beat("4:12", 16)
*/ */
export const { onSubCycle, onSub, os } = register(['onSubCycle', 'onSub', 'os'], (times, div, pat) => { export const { beat } = register(['beat'], (times, div, pat) => {
if (typeof times === 'number') { if (typeof times === 'number') {
times = [times]; times = [times];
} }