Hi. This might be very newbie question, but I would really like to know why the second example does not produce sound despite ‘running’ on server.
// works (instance in the plotTree, sound:
c = {SinOsc.ar};
c.play;
// UGen instance in the plotTree, but no sound:
c = SinOsc.ar;
{c}.play;
Does the second example for some reason not create Out.ar? How can I see the precise message sent to server by the second example (that would enable me to debug this question myself)?
c = SinOsc.ar;
{c}.play; // not OK
c = { SinOsc.ar };
// now 'c' is not a UGen
// it's an instruction to create a UGen
{ c.value }.play; // run the instruction *in* a synth function - OK
{ c }.play; // also OK
The last one is OK because the function ‘c’ is automatically evaluated, when it’s used as an input to another UGen.