Hi,
Given 2 Synthdefs below. If I play with PBind I am hearing pops at the beginning and end.
Anyone spot the problem ?
Thanks.
eob.
(
SynthDef("crossoverDistortion",
{
arg ampl = 0.5, smooth = 0.5, mul = 1.0, busIn = -1, busOut = 0;
Out.ar(busOut,
CrossoverDistortion.ar(
In.ar(busIn),
ampl,
smooth,
mul
)
);
}
).load(s);
)
(
SynthDef("makeASound",
{
arg freq = 300, busOut = 0, dur = 1, mul = 1;
Out.ar(busOut,
SinOsc.ar(
freq,0,mul
);
);
FreeSelfWhenDone.kr(EnvGen.kr(Env([1,0], dur), gate: 1));
}
).load(s);
)
(
~aBus = Bus.audio(s);
~mldy2 = Pbind(
\instrument, "makeASound",
\dur, 0.25,
\degree, Pseq([
Rest(), Rest(), 0, Rest(),
2, Rest(), Rest(), Rest(),
], 1),
\mul, 0.1,
\busOut, ~aBus);
~mldy2 = Pfx(~mldy2, \crossoverDistortion, \busIn, ~aBus);
~play = ~mldy2.play;
)
~play.stop;