add some module level curried aliases
This commit is contained in:
parent
d6c22d516b
commit
fa59334a46
2 changed files with 29 additions and 3 deletions
12
strudel.mjs
12
strudel.mjs
|
|
@ -632,6 +632,14 @@ function pr(args) {
|
|||
polyrhythm(args)
|
||||
}
|
||||
|
||||
export {Fraction, TimeSpan, Hap, Pattern,
|
||||
pure, stack, slowcat, fastcat, cat, sequence, polymeter, pm, polyrhythm, pr, reify, silence}
|
||||
const fast = curry((a, pat) => pat.fast(a))
|
||||
const slow = curry((a, pat) => pat.slow(a))
|
||||
const early = curry((a, pat) => pat.early(a))
|
||||
const late = curry((a, pat) => pat.late(a))
|
||||
const rev = pat => pat.rev()
|
||||
|
||||
export {Fraction, TimeSpan, Hap, Pattern,
|
||||
pure, stack, slowcat, fastcat, cat, sequence, polymeter, pm, polyrhythm, pr, reify, silence,
|
||||
fast, slow, early, late, rev
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue