xxxxxxxxxx
25
let osc;
let f = 200;
function setup() {
createCanvas(400, 400);
angleMode(DEGREES);
osc = new p5.Oscillator();
osc.start();
osc.freq(800);
osc.freq(20, 10);
}
function draw() {
background(220);
textAlign(CENTER);
textSize(30);
translate(width/2, height/2);
rotate(45)
text("The sound of gradual disappointment", 0, 0);
if(osc.getFreq() == 20){
osc.stop();
}
}