Hi,
I am getting clicks when using the following code: (sounds like the filter blowing)
~synth = { Saw.ar(110) };
~fftSynth = { |input|
var chain;
chain = FFT( LocalBuf(2048), input );
chain = PV_BinScramble( chain, 0.6, 0.5, 0 );
IFFT( chain );
};
~filterSynth = { |into| LPF.ar(into,440) };
SynthDef(\test, { |out, gate=1|
var synth, fftSynth, filterSynth;
synth = ~synth.value;
fftSynth = ~fftSynth.value( synth );
filterSynth = ~filterSynth.value( fftSynth );
Out.ar(
out,
Pan2.ar(
filterSynth *
EnvGen.ar(
Env.adsr(0.1,0.2,0.3,0.4),
gate,
doneAction:2
),
0
)
);
}).add;
~bind = Pbind(
\instrument, \test,
\dur, 0.5
);
p = ~bind.play;
p.stop;
I have used this format to match that of a larger project.
Is there something wrong with the code /
is there a fix?
Thanks,
L.