This thing here called Strudel is coding/producing in one box.
This is so weird.
This thing here called Strudel is coding/producing in one box.
This is so weird.
This is actually quite fascinating. I’ve dealt with both Supercollider and TidalCycles years ago, but this is the first time I see a Javascript port.
It’s not complicated as it looks, though. One of TidalCycles’ goal is to be a more accessible livecode environment in comparison to traditional SC. I do notice some syntax differences in this port, though.
Despite the example you provided being complex (and super cool), the basic patterns are super easy to do:
s("bd hh")
Hit Control+Enter to play the code block.
This example will fetch samples bd and hh and play them in sequence ad infinitum (in og TidalCycles there’s a built-in sample library for defaults like bd, hh, sd etc).
You can also stack patterns so they play at the same time:
stack (
s("bd bd bd bd"),
s("~ sd ~ sd")
)
In this example you have a classic “four on the floor”. The tilde (~) means silence. So the snare hits on 2nd and 4th beats of the cycle.
Let’s stack some hi-hats and this time change their speed/pitch and also panning:
stack (
s("bd bd bd bd"),
s("~ sd ~ sd"),
s("hh*8").speed("2 1 3 1").pan("0 1")
)
Notice we’re playing the hihats 8 times, changing the speed every step (looping every 4th) and also panning left and right (0 and 1).
Anyways, I highly recommend trying other stuff. It’s super fun and satisfying to use.