I think there's something fundamental about the difference between note patterns and control patterns that I've yet to fully digest...
Say that I have a pattern that uses fit
like:
s "rytm" (fit "<3 2 4>" ["bd2", "cp", "lt", "~", "sd", "ch"] "{0 [1 2?] 4 3*4 [5 6]}%8")
Now I want to alter the velocity using another pattern (I have a helper function that converts the velocity numbers into amp): vel "{127 [90 120] 111 127 90 110 127 [80 100]}%8"
Now say I'd like to rotate just the control pattern every 5 cycles. My first thought is this, but it does not work:
s (fit "<3 2 4>" ["bd2", "cp", "lt", "~", "sd", "ch"] "{0 [1 2?] 4 3*4 [5 6]}%8")
$ every 5 (rot) (# vel "{127 [90 120] 111 127 90 110 127 [80 100]}%8)
I'm pretty sure that's because I can't use one of these types of modifier functions where I put it using the dollar sign. I think I'd have to put the every
before the sound pattern and tell it to only effect the "vel" parameter somehow? I often get confused around this so can someone enlighten me, and/or let me know how to accomplish this using functions just on control patterns?
Many thanks!