channge function name
This commit is contained in:
parent
1d144faed7
commit
f5127147de
1 changed files with 4 additions and 5 deletions
|
|
@ -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];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue