hi,
beginner here. how can i create a low frequency oscillator with adjustable frequency? i am trying soundloop but i cant figure out how to adjust the tempo from a function with a slider. other examples very welcome? maybe with pulse and amplitude?
thanks a lot for any help
Hi
Sound library included frequency examples
yes, thanks, i cant find it there. how can i change the soundloop interval from a function or change the bpm from a function?
osc = new p5.Oscillator(‘sine’); osc.start();
soundLoop = new p5.SoundLoop(strt, interv);
soundLoop.start();
env = new p5.Envelope(0.1, 0.1, 0.1, 0.1);
} function draw() { background(220);
} function strt() { let r = random([1, 2, 4]); let soundLoopinterv = r; ??? env.setADSR(0.1, 0.1, 0.1, 0.1,); env.play(osc); }