hey there,
I’m a new SuperCollider user and trying to master fundamental concepts here.
I stumped on some problem here and dont understand how to fix it.
this code generates no sound:
(
~fn={
var sig, env;
sig = SinOsc.ar(300, mul:0.6);
env = Line.kr(1,0,0.1);
sig=sig*env;
})
x = {~fn}.play;
whereas the following one works perfectly well:
{SinOsc.ar(200, mul:0.6)*Line.kr(1,0,0.5);}.play;
I guess my variables sig and env dont work like expected. What could be the reason?
thanx…