Hi!
I'm looking for a function or workaround to apply a function to every x event of a pattern. Preferably in a way that carries over to the next cycle. Like this example:
I do this with inside, but you need to specify how you're subdividing the pattern. If you're breaking it into 4, then: d1 $ inside 4 (every 3 (# speed 2)) $ s "bd sd clap ch"
Fwiw, because I use this so much (and because I hate typing parentheses), I made a custom function for my BootTidal.hs: inevery div freq f = inside div (every freq f)
This way I can just type: d1 $ inevery 4 3 (# speed 2) $ s "bd sd clap ch"
edit:
on reflection, this isn't exactly what was asked for. every 3 applies its function to the first cycle, then every third cycle after that. In the example above that would be bd first, then ch, then clap etc. If you wanted to start on the third element you would need to use every' 3 2 or whenmod 3 2 as in