xxxxxxxxxx
17
let osc
function setup() {
createCanvas(400, 400);
osc = new p5.Oscillator();
osc.setType('sine')
osc.freq(0);
osc.start()
}
function draw() {
background(220);
}
function keyPressed(){
let r=random(Ratios)
let f = random(200,400);
osc.freq(f);
}