Hello everyone, having a look at SC filter and missing a bit frequency hand automation you find in most DAWs I was wondering what would be the closest way to get a similar result.
Exprand gives a nice result but also produces some artefacts in the code I left below
– WARNING TO NOT PLAY AT FULL VOLUME —
I reduced the range of frequency to also reduce the artefacts but still please be careful with this code
~busCtrl =Bus.control(s);
//the synth for test
(SynthDef(\test,{|freq|Out.ar(0,BHiPass4.ar(Saw.ar(130),In.kr(freq)+30,0.5))}).add;)
//a lfo synth
SynthDef(\lfoStep, {|out, dur, val| Out.kr(out,EnvGen.kr(Env.step([val,0],[dur,0]),doneAction: 2))}).add;
//the pbind to get the lfo to change normally every 1/4 beat but I did not add a tempo here so set as 1/8
Pbind(\instrument, \lfoStep, \dur,Pseq([1/8],inf),\val,Pfunc({100.exprand(1000)}),\out, ~busCtrl).play
Synth(\test,[\freq,~busCtrl])
would anyone have a suggestion about a way to get a similar result as the screenshot provided?
https://drive.google.com/file/d/19k5c2RGqA3xmR9Y_MMupogSYoZDGERZf/view?usp=sharing
Many thanks ^^