Is there a limit to array expansion?
When setting n to 76, I got these errors:
exception in GrafDef_Load: UGen '' not installed.
FAILURE z¿)`�º Command not found
FAILURE /d_recv alloc failed
exception in GrafDef_Load: UGen '' not installed.
while when it is set to 75 or less, it works.
(
r = Routine({
20.do{
SynthDef("bessel", {
var freqs, env, sig, choice, scaler,
letmesee;
freqs = [
[2.4048, 5.5201, 8.6537, 11.7915,
14.9309, 18.0711, 21.2116,
24.3525, 27.4935, 30.6346],
[3.8317, 7.0156, 10.1735, 13.3237,
16.4706, 19.6159,
22.7601, 25.9037, 29.0468, 32.1897],
[5.1356, 8.4172, 11.6198, 14.7960,
17.9598, 21.1170,
24.2701, 27.4206, 30.5692, 33.7165],
[6.3802, 9.761, 13.0152, 16.2235,
19.4094, 22.5827, 25.7482,
28.9084, 32.0649, 35.2187],
[7.5883, 11.0647, 14.3725, 17.616,
20.8269, 24.0190,
27.1991, 30.3710, 33.5371, 36.6990],
[8.7715, 12.3386, 15.7002, 18.9801,
22.2178, 25.4303,
28.6266, 31.8117, 34.9888, 38.1599]
].flat;
n = 76; scaler = 1000;
choice = Array.fill(n,
{freqs.choose} * scaler);
// letmesee =
(choice/scaler).postln;
env = EnvGen.kr( Env([0,1,0], [0.01,5],
-8), doneAction:2);
sig= SinOsc.ar(choice, 0,
1/choice.size) * env;
Out.ar (0, sig.dup(2));
}).play;
5.wait;
}; //end of do
}); //end of routine
SystemClock.play(r);
)
Thanks,
Phi.
_______________________________________________
sc-users mailing list
sc-users@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-users