hydra+strudel
code:js
update = () => {
t = getTime() / 60 * cpm % 1
o = osc()
for (cycle of window.c.firstCycle()) {
whole = cycle.whole
begin = whole.begin.n / whole.begin.d
end = whole.end.n / whole.end.d
if (begin < t && t < end) {
if (cycle.value.s === "sd") o.modulate(noise())
}
}
o.out()
}
code:js
window.c = stack(
s("bd ~"),
s("~ sd"),
).cpm(window.cpm=60)