xxxxxxxxxx
20
var mic;
function setup() {
createCanvas(windowWidth, windowHeight, WEBGL);
mic = new p5.AudioIn();
mic.start();
}
function draw() {
background(200);
let vol = mic.getLevel();
rotateX(frameCount * 0.01);
rotateY(frameCount * 0.01);
box(vol*2000);
}