I was playing around with trigger, struct, and every today.
d1 $ trigger 1 $ struct "t f t f" $ n ("0 1 2 3") # s "bitwig" # midichan 0
When triggered it outputs 0 ~ 2 ~
~ representing false or no output.
d1 $ trigger 1 $ struct (every 3 rev "t f t f") $ n ("0 1 2 3") # s "bitwig" # midichan 0
when triggered outputs 1 ~ 3 ~ 0 ~ 2 ~ 0 ~ 2 ~
I thought the trigger would start on the first iteration of the pattern, like this:
0 ~ 2 ~ 0 ~ 2 ~1 ~ 3 ~ but it seems to start on the third (reversed).
Is this expected behaviour for trigger, or am I failing to understand something? (I'm probably failing to understand something).
Thanks Alex! Confusion still abounds, but I'm getting closer.
So in this case, I don't need every at all. I simply need to use while and set the rev in the while "pattern". The pattern determines when the rev is applied.
d1 $ trigger 1 $ while "<f f f t f f t>" rev $ n ("0 1 0 1") # s "bitwig" # midichan 0
I could use every like so:
d1 $ trigger 1 $ every 1 (while "<f f f t>" rev) $ n ("0 1 0 1") # s "bitwig" # midichan 0
while is a bit newer and I think more flexible. Instead of every 10 you could do while "<f!9 t>". A bit more fiddly but more flexible, as you can just as easily do while "<t f!9>" or while "<f!3 t f!4 t t>" .. Or even while (iter 4 "<f!3 t>")
I'm trying to write a big structure song using lots of "do" as I wrote below. When I change from first do to second do it seems doesn't synchronize. Why?