You're making it more complicated than it needs to be. SynthDef.wrap automatically promotes arguments of the given function to be synthdef controls, so you don't need to take any action related to the func's argnames and so forth. d = SynthDef(\demo, { |out| Out.ar(out, SynthDef.wrap({ |freq| SinOsc.ar(freq) })) }); d.allControlNames; --> [ ControlName P 0 out control 0, ControlName P 1 freq control 0 ] Therefore both the \out and \freq controls will respond to set messages etc. hjh On Dec 28, 2008, at 12:12 PM, Batuhan Bozkurt wrote:
: H. James Harkins .::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..: "Come said the Muse, Sing me a song no poet has yet chanted, Sing me the universal." -- Whitman |