"all" function mishap

hi friends,

long time user of tidalcycles here and I was experimenting with the “all” function out of curiosity and now I’m not sure how to undo what I’ve done without rebooting Tidal.

I had several tracks playing and wondered what would happen if I ran:

all $ struct "1*32"

I got the result I was looking for (sort of) – all the tracks had struct “1*32” applied to them.

then I realized I didn’t have any way to undo it or revert all the patterns back to their original states. I could only revert back to the original code I’d written by rebooting Tidal and running the setcps function.

There isn’t really much documentation on “all” and searching for “all” isn’t really helpful and (big surprise) doesn’t yield any logical results lol.

I’m hoping someone has some info or use cases for “all” or how it could be effectively used without the obvious drawback of rebooting Tidal? I could see it being used in interesting ways if there was a way to restore all the patterns back to their normal states!

1 Like

hi, every execution of all replaces the single global fx function (stored internally) with the passed function. This means you can pass it the identity function, which essentially ‘does nothing’. In short, you’ll just have to execute

all id

1 Like

thanks so much! definitely a lot of cool use cases here that I had never considered.

see also https://club.tidalcycles.org/t/using-all/5853 (on how it's implemented)

1 Like