Skip to content

Commit

Permalink
channge function name
Browse files Browse the repository at this point in the history
  • Loading branch information
daslyfe committed Jan 8, 2025
1 parent 1d144fa commit f512714
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/core/pattern.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3104,14 +3104,13 @@ Pattern.prototype.xfade = function (pos, b) {
/**
* creates a structure pattern from divisions of a cycle
* especially useful for creating rhythms
* @name onSubCycle
* @synonyms onSub, os
* @name beat
* @example
* s("bd").os("0:7:10", 16)
* s("bd").beat("0:7:10", 16)
* @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') {
times = [times];
}
Expand Down

0 comments on commit f512714

Please sign in to comment.