[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-users] very heavy click problem with this synth/routine



Hello, list

I found this synth from old time, (it's not mine, it's from this list, kindly offered by Batuhan Bozkurt) and having fun to play with it.

SynthDef(\junglism_mono, {|out = 0, pan = 0, bufnum, div = 16, slice = 0, gateRatio = 1, stutter = 1, amp = 1, rate = 1|
    var needle, snd, addFrame, sliceDur, bufDur;
    bufDur = BufFrames.ir(bufnum);
    sliceDur = bufDur / div;
    addFrame = (slice * sliceDur);
    needle = Phasor.ar(0, BufRateScale.kr(bufnum) * rate, 0, bufDur);
    snd = BufRd.ar(1, bufnum, (needle % (sliceDur / stutter)) + addFrame);
    FreeSelf.kr(needle > (sliceDur / gateRatio));

    OffsetOut.ar(out, Pan2.ar(snd, pan) * amp);
}).add;

I wrote a nice GUI for it, running this routine with bunch of Pseqs.

~len =16;
~min = 0;
~max = 8;
~slice = Pseq(Array.fill(~len,{|i| rrand(~min, ~max)}), inf).asStream;
...etc.

Routine({loop({
Synth(\junglism_mono, [\bufnum, ~buf.next, \div, ~div.next, \slice, ~slice.next, \gateRatio, ~gateRatio.next, \stutter, ~stutter.next, \amp, ~amp.next, \rate, ~rate.next, \out,~ch[1]], ~synthGroup);
~dur.wait;
    })}).play;

the only problem is that it's horribly clicky. especially when loading not percussive samples. but also with perc samples which has kinda long decay. I tried to track down the source of the problem, but since it's not my synth and also that I'm quite bad at DSP stuff, I just can't figure out...randomly placing Lag or LPF here and there just mess things up, and create even more problems. I don't even know yet if it's my routine or the synth itself which produces click problems. I tried to set a master node with some filters, but I don't have knowledge on setting up filter parameters in a way to remove clicks without changing global ton of sound. the clicks are not this short, super high freq pop style, but more longer, and more...mmm...'rich' in spectrum...('sorry for my ignorance on DSP terms!!!)

I'm horribly lost...do anyone has any idea on how to remove the clicks here?

thanks...

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/