I was gonna go on a big ramble about rhythm trees. But I just wanted to say that this concept of rhythm is one of the things I truly love about Tidal Cycles. It’s actually a really helpful way to understand “musical” rhythm, too, at least from a 20thC perspective.
I came up with this fun example to test whether slow takes decimal values (I think it does?)
d1 $ every (irand 4) (slow (((rand + 1.0)/2.0)*3.0)) $ n “1 0 2 3” # s “bd bd bd bd” # cut 1
This has the kind of expanding and contracting rhythmic quality of late 20thC music where complex rhythm is employed, but what makes it powerful is it’s not gridlocked like traditional notation (mostly) is, and like most DAWs are.
PS. Can someone tell me how to do the code highlighting thing?
PPS. Alex, does Tidal differentiate between integers and floats like I’ve done in that example?
Hey ben, yeah it worked for me. But I am unsure how good the code is as far as being structurally sound. It’s not helpful that there are multiple 1s to be throwing the error - take cut out and see if that does anything?
Thanks for the preformat tip!
Also, I didn’t check whether rand is unipolar or bipolar - I wrote that little passage on the assumption that it’s a bipolar oscillator, but if it’s unipolar it doesn’t need anything other than *3.0.
I suspect it’s the directional quotes. The forum software replaces straight quotes with fancy curvy quotes in non-preformatted text which aren’t valid in tidal. If you delete and retype the quotes in your editor it will probably start working. At least it worked for me once I fixed the quotes.
Yeah, but the quote thing kind of a mis-feature for a forum like this. It would be nice to be able to casually paste snippets into messages and have them run without worrying about the preformat stuff. Especially since tidal snippets tend to be so short, if they were always huge blocks of code you’d want the preformat anyway. I wonder if it’s possible to turn it off…
great one ! i also felt compelled to dig into this example which was super cool to understand irand - i played with cut a bit but i still didn't get it fully
here's my hack of your cool snippet, i added funny samples and a phaser....
I thought so, but i ran into a problem. i went in quarks, ticked 3Dj and recompiled and got quite an error message (detailed in this post).
which plugins did you mean?
Ooh hot tip, I thought that was the case. What happens if you have $ n "1 0 2 3" # s "bd sn"? Does that then mean that 1 and 0 will apply to bd and 2 3 to sd?