add timecat to parser
This commit is contained in:
parent
40d4e138b7
commit
ad777ed183
2 changed files with 24 additions and 2 deletions
|
|
@ -7,8 +7,21 @@ import * as toneStuff from './tone';
|
||||||
import shapeshifter from './shapeshifter';
|
import shapeshifter from './shapeshifter';
|
||||||
|
|
||||||
// even if some functions are not used, we need them to be available in eval
|
// even if some functions are not used, we need them to be available in eval
|
||||||
const { pure, stack, slowcat, fastcat, cat, sequence, polymeter, pm, polyrhythm, pr, /* reify, */ silence, Fraction } =
|
const {
|
||||||
strudel;
|
pure,
|
||||||
|
stack,
|
||||||
|
slowcat,
|
||||||
|
fastcat,
|
||||||
|
cat,
|
||||||
|
sequence,
|
||||||
|
polymeter,
|
||||||
|
pm,
|
||||||
|
polyrhythm,
|
||||||
|
pr,
|
||||||
|
/* reify, */ silence,
|
||||||
|
Fraction,
|
||||||
|
timeCat,
|
||||||
|
} = strudel;
|
||||||
const { autofilter, filter, gain } = toneStuff;
|
const { autofilter, filter, gain } = toneStuff;
|
||||||
|
|
||||||
function reify(thing: any) {
|
function reify(thing: any) {
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,12 @@
|
||||||
|
export const timeCat = `stack(
|
||||||
|
timeCat([3, c3], [1, stack(eb3, g3, m(c4, d4).slow(2))]),
|
||||||
|
m(c2, g2),
|
||||||
|
sequence(
|
||||||
|
timeCat([5, eb4], [3, m(f4, eb4, d4)]),
|
||||||
|
m(eb4, c4).slow(2)
|
||||||
|
).slow(4)
|
||||||
|
)`;
|
||||||
|
|
||||||
export const shapeShifted = `stack(
|
export const shapeShifted = `stack(
|
||||||
sequence(
|
sequence(
|
||||||
e5, [b4, c5], d5, [c5, b4],
|
e5, [b4, c5], d5, [c5, b4],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue