Modify the attack of the sampler from a scripting knob call back
-
I've been looking a lot but I couldn't find a good answer. I think it has smt to do with
const var sampler = Sampler.getSampler("SamplerName");
sampler.setAttribute(Sampler.Attack, value);thats the chatgpt answer but it doesn't work lol.
-
You could connect the knob directly to the envelope's attack parameter in the interface designer, you don't have to script.
However if you want to script it you need to get a reference to the envelope, not the sampler.
-
@d-healey Thanks how do I reference the envelope in the script?
-
@DobleDot23 Same way you did for the sampler,
Synth.getModulator("myModulatorsID");