Probably something verry stupid I have overlooked , but I get the "failure in server nset node not found " when executing play , altough it does play correctly
Strange because I have done this a hundreds times
(
SynthDef(\hat,
{
|att=0.001,dec=1,amp=0.2,gate=1,out|
var sig,env;
sig=WhiteNoise.ar*amp;
env=EnvGen.ar(Env.perc(att,dec),gate:gate,doneAction:2);
sig=sig*env!2;
Out.ar(out,sig)
}).add
)
q=Synth(\hat,[\dec,0.015])
q.free
(
Pdef(\riet,
Pbind(
\instrument,
\hat,
\dur,0.25,
\att,0,
\dec,0.02,
\amp,0.2,
\out,0,
)
)
)
;
Pdef(\riet).play
Pdef(\riet).stop