I’m doing my first experiments with Sonic Pi, so fun!
I’m trying to write two live loops, each plays a random note in a chord (say, x and y). I want to make sure the two loops don’t “collide” (for example abs(x-y) should not be less or equal to 1). How to share information between the two loops?
I suppose I could generate before a long array of random pairs of numbers that satisfy my requirement but I was wondering if there is another way in general to share info between loops.