Inside a SynthDef, is there a way to randomly reset something? I have the following:
SynthDef("waveset", { arg lvol = 0, hvol = 0.5, lfreq = 0.1, hfreq = 0.3, out = 0;
Out.ar(out, {
~freq = Rand(lfreq, hfreq);
~modwave = SinOsc.kr(~freq).range(lvol, hvol);
WhiteNoise.ar(~modwave);
});
}).add;
Can I change ~freq inside the SynthDef to another random value?