| what James says :)
Josh On Jun 17, 2009, at 5:04 AM, James Harkins wrote: f = { |input| some ugens };
SynthDef(\one, { ...
signal = f.value(inputs);
...
})
or look at SynthDef.wrap (SynthDef helpfile) -- which externalizes the content that differs (which is just as useful). hjh
On Jun 17, 2009, at 6:13 AM, e deleflie wrote: Hi Josh
I suggest two synthdefs, and call the 'if' in the lang (to decide which synthdef to call).
is there a way that I can externalise duplicated code between the 2 synthdefs?
: H. James Harkins
.::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:
"Come said the Muse, Sing me a song no poet has yet chanted, Sing me the universal." -- Whitman
****************************************** /* Joshua D. Parmenter http://www.realizedsound.net/josh/
“Every composer – at all times and in all cases – gives his own interpretation of how modern society is structured: whether actively or passively, consciously or unconsciously, he makes choices in this regard. He may be conservative or he may subject himself to continual renewal; or he may strive for a revolutionary, historical or social palingenesis." - Luigi Nono */ |