I’m getting a lot of clicking when I play my PmonoArtic pattern. I copied the example synthdef from the docs and made some slight changes but I don’t understand what’s causing the clicking. I also tried an even simpler synthdef that is using Lag.kr
to see if that would maybe give me a better clue but I still have the same issue. Overall I’m just trying to replicate what mono synths can usually do and I would like to sequence the legato/slide kind of like a 303 synth. Is there a simple way to do this in SC?
First synthdef I tried:
(
SynthDef.new(\acid, {| out = 1, freq= 100, amp= 3, width=0.5, ffreq = 1400, rez=0.8|
var plfo, fcurve, sig;
plfo = SinOsc.kr(6, mul:0, add:1);
freq = Lag.kr(freq, 0.05) * plfo;
fcurve = EnvGen.kr(Env.adsr(0.01, 0.2, 0.1, 20), 0.5);
fcurve = (fcurve - 0.01).madd(0.7, 1) * ffreq;
sig = Pan2.ar( Pulse.ar(freq, width) );
sig = RLPFD.ar(sig, fcurve, rez,) *
EnvGen.kr(Env.adsr(0.04, 0.2, 0.5, 0.1), 0.5, doneAction: Done.freeSelf);
///also for some reason the amp argument doesn't do anything here so I just hardcode 3.2
Out.ar(out, sig * 3.2 );
}).add;
)
(
~acid = PmonoArtic(
\acid,
\legato, Pseq([0.25, 1.0], inf),
\degree, Pxrand(
[ Pxrand([5, 8, 12, 3, 4, 7, 3, 4]-12, 2),
Pseq([5, 8, 12, -6, 4, -14, -6, 4], 1)
], inf),
\dur, Pseq([0.25, 0.50, 1, 0.25, 0.50, 0.25, 0.25, 0.25, 1],inf)
);
~acid.play();
)
Second simple synthdef I tried using the same PmonoArtic Pattern:
(
SynthDef.new(\acid, {| out = 1, freq= 100, amp= 3, width=0.5, ffreq = 1400, rez=0.8|
var sig;
sig = Pan2.ar( Pulse.ar(Lag.kr(freq, 0.2)) );
sig = RLPFD.ar(sig, 400 , rez);
Out.ar(out, sig * 3.2 );
}).add;
)