Hello all,
I’m quite baffled here as to why the voice synth is not going through effects. I built a simplified version which worked, but the one below still not. I’ve even hard coded the bus numbers in the arguments.
SynthDef.new (\voice, {
arg out=3;
var gate = Line.kr(0, 1, \dur.kr) <= 0.999999;
var main_env = EnvGen.kr(Env.asr(\attackTime.kr, 1, \releaseTime.kr), gate: gate, doneAction: 2);
var playback_ptr = Phasor.ar(0, BufRateScale.kr(\buf.kr) * \rate.kr(-1), \start.kr, \end.kr);
var window_ptr = playback_ptr.linlin(\start.kr, \end.kr, 0, 1);
var window = IEnvGen.ar(Env.sine(), window_ptr);
var sig = BufRd.ar(2, \buf.kr, playback_ptr) * \amp.kr * window;
var panned = Pan2.ar(sig, \pan.kr);
Out.ar(out, panned * main_env * 0.5);
}).add;
SynthDef.new (\effects, {
arg in=3, out=0;
var sig = In.ar(in, 1);
Out.ar(out, sig);
}).add;
I thought it might be something to do with stereo or mono but it appears not. If I set the out of voice to 0 I get audio, so that synth is definitely working. The bottom synth could hardly be simpler, but I can’t get a signal out of it.
Any insight would be greatly appreciated!