I am wondering if it is possible to have mic input from multiple users at the same time? Also is there an official name for the thing that I am trying to do?
Here is a little sketch that I made from some examples on the p5.js website and a little of my own code to make the ball more responsive:
function setup(){
let cnv = createCanvas(600, 300);
cnv.mousePressed(userStartAudio);
mic = new p5.AudioIn();
mic.start();
}
function draw(){
background(70, 80, 20);
fill(255);
text(‘tap to start’, 10, 20);
micLevel = mic.getLevel();
let y = height - 20 * micLevel * height;
ellipse(width/2, y-19, 40, 40);
}