Suggestions on how to remove the click in this bass(kick)?

Trying to understand/getting better at sculpting the sound that I want. I initially was going for a bass but no I have a kick. It sounds pretty fat which is nice. I am wondering how I could remove the click but still have the same sound but more as a bass. Alternately adding another sound on top, covering the click with something more percussive, more like a kick. Either way I need to remove the click.

	SynthDef(\kickbass, {
	var sig, env;
		sig = SinOsc.ar(\freq.kr(1).varlag(\time.kr(0.5),-8));
		env= Env.adsr(
			\atk.ar(0.001), \dec.ir(0.1),0.1, \rel.ir(5),curve: \crv.ir(-2)).ar(gate:\t_trig.tr(1));
		// sig = RLPF.ar(sig, \lpf.ir(110), \rq.ir(0.3), 1/\rq.ir(0.3).sqrt);  //1/rq.sqrt
	sig = sig * env;
	sig = Pan2.ar(sig, \pan.ir(0), \amp.kr(0.1));
	Out.ar(\out.ir(0), sig);
}).add;


(
~kickBass = Pmono(\kickbass,
		\dur, Pseq([Pdefn(\kickdur, Pseq([0.5,0.5,0.5,0.25,Rest(0.125),0.125],1))],inf).trace,
		\freq, Pdefn(\kdur,Pwrand([Pseq([50,50,60,50,50,30],1), Pseq([50,50,80,50,50,30],1),Pseq([50,50,60,50,30,30],1)],[0.8,0.2,0.1].normalizeSum,inf)),
		\amp, Pdefn(\kickbassAmp,Pseq([0.27,0.2],inf)),
	\atk, 0.001,
	\dec, Pseq([0.2,0.9],inf),
	\rel, 0.4,
		\crv, -3,
	\out, 0,
		\trig,Pwrand([1,0],[0.97,0.03].normalizeSum,inf),
	)
)

~kickBass.play

Maybe try with longer attack

A click is a quick change in amplitude, i see several in your code. The \atk is too low. Also the enveloppe is gated (\adsr) but you give it a trigger, this mean the env will immediately release, making a click, I suggest using Trig.kr to change the trigger into a gate:

(gate:Trig.kr(\t_trig.tr(1), 0.1))

also there is a sudden jump in amplitude in your pattern which cause a click, i suggest adding a lag to it (in synthdef):

		\amp, Pdefn(\kickbassAmp,Pseq([0.27,0.2],inf)),
1 Like

That sound alot better! Great job! Also I think this line adds to the clicks

\trig, Pwrand([1,0],[0.97,0.03].normalizeSum,inf) 

Many thanks!

This line trigger the enveloppe, so it add click only if the enveloppe is clicking (no gate or too short segments)

I will get back to this post everytime I run into this problem