Reputation: 11131
I'm new to Supercollider, couldn't find a lot of resources to learn from, so I'm proceeding by attempts and intuitions to some extent.
I can get a wonderful sine wave with this line of code
{SinOsc.ar(freq: 440.0 , phase: 0.0, mul: 0.7 , add: 0.0)}.plot;
But i'm only gettig a flat line with this one
(
x=SinOsc.ar(freq: 440.0 , phase: 0.0, mul: 0.7 , add: 0.0);
{x}.plot;
)
To me those two statements seem equivalent, but I'm obviously missing something crucial. What is happening behing the scenes? Why/how are they actually different?
Upvotes: 0
Views: 47