Skip to content

Commit

Permalink
pickRestart example
Browse files Browse the repository at this point in the history
  • Loading branch information
jarmitage authored Aug 3, 2024
1 parent 6e496b7 commit d40e4da
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/core/signal.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,13 @@ export const pickRestart = register('pickRestart', function (lookup, pat) {
* @param {Pattern} pat
* @param {*} xs
* @returns {Pattern}
* @example
* p1: "<a b c d>".pickRestart({
a: n("0 1 2 3"),
b: n("4 5 6 7"),
c: n("8 9 10 11"),
d: n("12 13 14 15")
}).scale("C:major").s("piano")
*/
export const pickmodRestart = register('pickmodRestart', function (lookup, pat) {
return _pick(lookup, pat, true).restartJoin();
Expand Down

0 comments on commit d40e4da

Please sign in to comment.