Thanks for the reply!
I do have slightly more complex operations in mind. For example, if I want to invert values normalized between 0 and 1, I could make a simple function:
invert x = 1 - x
and this gives the kind of result I want when applied to a
Pattern String, e.g.,
pt = "0.0 0.25 1.0*4"
gain (invert pt)
But what I’m looking for is something that could take advantage of the operations available on ControlPatterns. I’d like to be able to get the same result with
invert (gain pt)
so that I could apply it to more elaborate expressions like
every 4 invert (gain pt)
invert $ slowcat [(gain pt1), (gain pt2), (gain pt3)]
My apologies, I should have been more explicit in my original post.