Hey folks! I suspect the answer to this is staring me in the face somehow, but for some reason I can't see it - I'm looking for a way of rotating a pattern, including it's structure, so that eg
rot' 1 $ n "0 1 1 ~ 1 1 ~ 1 ~ 1 1"
would give back something like "1 1 ~ 1 1 ~ 1 ~ 1 1 0"
.
the rot
function isn't quite it, as it just rotates the events that aren't rests, giving: "1 1 1 ~ 1 1 ~ 1 ~ 1 0"
.
Any idea if anything like this exists, or clues on how to implement it? I tried using cat
and trunc
but fell down when I realised i coudn't find a way to get the number of events in the pattern.
Thanks!
Tim