I guess that’s a quite easy question.
What is the best way to reduce the volume of the frequencies 220 -1760 Hz. Maybe even exponentially? There’s Pif. Is this the way to go?
(
SynthDef('kick', {
arg freq = 40, dec = 0.1, amp = 0.5;
var osc, env, sig, clickosc,clickenv ;
clickosc = {LPF.ar(WhiteNoise.ar(1),1500)};
clickenv = {Line.ar(1, 0, 0.001)};
osc = {SinOsc.ar(freq)};
env = EnvGen.ar(Env.perc(0.001, dec, 1, -4), doneAction:2);
sig = (osc * env + (clickosc * clickenv)) * amp;
sig = sig;
Out.ar(0,
Pan2.ar(sig, 0)
)
}).add;
)
Pdef(\bass,
Pbind(
\instrument, \kick,
\dur, Prand([0.25, 1, Prand([0.5, Rest(0.5)]), 1, 1], inf),
\freq,
Pwrand(
[55, 220, 440, 880, 1760],
[2, 0.3, 0.1, 0.1, 0.1].normalizeSum, inf),
\amp, 0.4,
\dec, Pwhite(0.3, 0.5),
)
);