Just gor a horrible crash console saying too many nodes in tree, resulting in a very nasty loud burst of sound and supercollider froze .
Nothing fancy going on , just a two osc synth and kick , I had some more tabs open with synthdefand pdefs but on of tehm were playing , except the one provided below.
The node tree was perfectly fine , voices were released , the envelopes were set to doneAction 2 .
The only remedie was to detach my sound interface
(
SynthDef (\simple,
{
|att=0.001,dec=0.200,mod=150,pitch=0,filterfreq=400,reso=0.5,vol=0.5,pan=0,pw=0.5,pww=0.8|
var sig,env;
env=EnvGen.ar(Env([0,1,0],[att,dec],[0,-5]),doneAction:2);
sig=Pulse.ar(pitch.midicps,mul:0.5,width:pw)+Pulse.ar((pitch+0.2).midicps,mul:0.5,width:pww);///////I an
sig=RLPF.ar(sig,filterfreq+(env*mod).clip(40,20000),rq:reso);
sig=sig*env;
sig=Pan2.ar(sig,pos:pan);
Out.ar(0,sig*vol)
}).add
)
////////////////////
(
Pdef(\zxcv,
Pbind(\instrument,\simple,
\dur,Pseq([0.25,0.125,0.250,0.125,0.250,0.125],inf),
\pitch,Pseq([48,51,53,48,53],inf),
\filterfreq,Pseq([150,150,350,250,200],inf),
\dec,Pseq([0.125,0.125,0.725,0.7,0.25],inf),
\att,Pseq([0.001,0.001],inf),
\reso,Pseq([0.5,0.5,0.5,1,0.5,0.5,0.5],inf),
\vol,Pseq([0.4,0.5],inf),
\pan,Pseq([-0.2,1,0,0.3,0.2],inf),
)
))
/////////////////////////
Pdef(\zxcv).play;
Pdef(\zxcv).stop;
Pdef(\kik).play;
Pdef(\kik).stop;
(
SynthDef (\kick,
{
arg pitch=50,patt=0.001,pdec=0.325,pcurve=(-50),pamt=100,att=0.001,dec=0.700,noisefreq=100,shamt=4,vol=0.3;
var kick,penv,ampenv,noiseosc;
penv=EnvGen.ar(Env([0,1,0],[patt,pdec],[0,pcurve]),doneAction:2);
kick=SinOsc.ar(pitch+(penv*pamt))*0.9;
noiseosc=LPF.ar(WhiteNoise.ar(0.1),noisefreq);
kick=(noiseosc+kick)*EnvGen.ar(Env([0,1,0],[att,dec],[0,-5]))!2;
kick=SineShaper.ar(kick*shamt)*vol;
kick=HPF.ar(kick,80);
Out.ar(0,kick);
}).add;
)
////////////
(
Pdef(\kik,
Pbind(\instrument,\kick,
\dur,Pseq([0.5,0.5],inf),
\pitch,Pseq([40,42,39],inf),
\pdec,0.8,
\shamt,Pseq([2,2,2,2],inf),
\vol,0.8,
))
)
///////////