[chuck-users] Any way to call an arbitrary function with some value

Rich Caloggero rjc at mit.edu
Tue Feb 24 21:04:03 EST 2015

I’m pretty sure I know the answer to this already – its not a dynamic language... However, I can put a UGen method into a variable, but I cannot apply it:
SndBuf2 input;
input.gain @=> Object f;

This compiles, but can I apply it to an argument?

Am trying to find a way of modifying arbitrary parameters via osc that doesn’t include writing unmaintainable code:
if (parameterName == “gain”) myUgen.gain (value);
... etc ...

Am I missing something...?
-- Rich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20150224/68cf9a80/attachment.html>

More information about the chuck-users mailing list