[sc-users] changing number of synth voices
Andre Castro
andre_castro83 at hotmail.com
Mon Oct 15 17:18:39 PDT 2007
can any one please tell me if there is a way of changing dynamically the
number of voices of a Synth, that is the size "n" of an Array.
Code follows.
Thank you,
a
(
SynthDef(\drops, {arg rate=1, stereoPos=0, delayTime=3;
var source, filter, pan;
source=Dust.ar(rate, 0.3);
filter=CombL.ar(source, 0.01, delayTime, 2);
pan=Pan2.ar(filter, stereoPos);
Out.ar(0, pan)}).load(s)
)
(
var n;
n=10; //Size, I'd like to change while Synth is running.
Array.fill(n, {Synth(\drops,
[ \rate , 1,
\stereoPos, 1.0.rand2,
\delayTime, 0.0004 + 0.0001.rand])
;});
)
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
More information about the sc-users
mailing list