Hi,
I’m trying to understand how to implement effects with my own parameters so that I could eventually write something like
d1 $ somepattern # myeffects # myparam 123
My current attempt which runs but ignore my param is as follows (this calls effects on pattern and then tries to apply params):
let effects p = p # cutoff (cF 400 "mycutoff") # resonance (cF 0.2 "myresonance")
d1 $ effects riff # pF "mycutoff" 100
Inspecting the Arc I can see that mycutoff is set as I ask, but that cutoff has already been bound to the default 400:
(0>⅛)|cutoff: 400.0f, mycutoff: 100.0f, note: 0.0n (c5), resonance: 0.2f
Is there a correct way to delay evaluation of the effects body until after the right-most pF “mycutoff” 100 has been evaluated? Alternatively is there an entirely different implementation pattern that I should be following?
Thank you!