Hello everyone!
I was having a play with the IEnvGen
class but I ran into this problem. If I try to set the envelope on Synth
instantiation, the server crashes.
(
s.waitForBoot({
SynthDef(\testIEnvGen, {
var env = \env.kr(Env.newClear(2).asArray);
Out.ar(0, IEnvGen.ar(env, LFSaw.ar(1).range(0, 1) * \envTimesSum.kr(1)))
}).add;
s.sync;
~env = Env([0, 1], 1);
a = Synth(\testIEnvGen, [\env, ~env, \envTimesSum, ~env.times.sum]);
})
)
Is there a way to set the env
without having to include it in the SynthDef
, as it’s possible with EnvGen
?