|
Try this (see the comments) // double click the paren - press enter to execute this block (or, all the code in the parens) ( SynthDef("tutorial-args", { arg freq = 440, out = 0; Out.ar(out, SinOsc.ar(freq, 0, 0.2)); }).send(s); ) // now, place the cursor on the next line, and press enter - do this for each line of code x = Synth("tutorial-args"); // no args, so default values y = Synth("tutorial-args", ["freq", 660]); // change freq z = Synth("tutorial-args", ["freq", 880, "out", 1]); Hope that helps, Josh On Oct 21, 2007, at 9:46 AM, Djého Youn wrote: hi, everyone! ****************************************** /* 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 */ |