I’m running out of nodes running simple patterns with a BufRd-based SynthDef. Help!
The synthdef:
SynthDef(\bufplay,{ arg buf,pan=0.0,amp=1.0,out;
Out.ar(out,Pan2.ar(BufRd.ar(
buf.numChannels,buf,
Sweep.ar(0,BufSampleRate.kr(buf)),
0),pan,amp))
}).add;
I have a datastructure with all the buffers loaded, here’s the pattern:
(
var k = ~r8.bufs["DRY_K1"], s = ~r8.bufs["WOOD_S1"];
play(Pbind(
\instrument, \bufplay,
\dur,0.125,
\amp, Pseq([0.8,0.4],inf),
\pan, Pseq([-1.0,0.0,1.0],inf),
\buf, Pseq([k,k,s,k,k,k,s,s],inf)))
)
This creates hundreds of nodes and eventually dies with “too many nodes”.
I’m wondering why this is not an issue more often with Patterns? is there some voice-stealing magic going on?