Restart a polymetric sequence

Is it possible to make a polymetric sequence "restart"?

For example "{1 2 3}%8" gives |12312312|31231231|, but what I'm after is way to force "1 2 3" to restart every bar (for example), to produce this: |12312312|12312312|.

This is similar to euclidian patterns, but of course just doing "[1 2 3](3, 8)" doesn't give the correct result. Ideally it would be a function, f, such that f 3 8 "1 2 3 4 5 6 7 8" results in |12312312|, f 5 16 "1 2 3 4 5 6 7 8" results in |1234512345123456|, etc. It's sort of a euclidian function that distributes restarts equally over the bar.

2 Likes

Not your 'ideal' function, but I use timeLoop to get this effect. timeLoop n will restart your pattern after n cycles. So, for example:

timeLoop 1 $ n "{1 2 3}%8" # s "arpy"

will give you the |12312312|12312312| n pattern that you're looking for.

Fwiw, timeLoop also works great with linger

6 Likes

Thanks! timeLoop will definitely do the trick, and I think it can create the two results I described above.

I wasn't aware of that function, do you know if it is documented anywhere?

Timeloop is the function I’ve been waiting for my entire life

3 Likes