Help help help, I have a project with two other students and we are working in P5.js. So for the project we need two seperate Audio Inputs, but we don't get how to define different audio inputs, can anybody help us?😩 (p.s. we already got the default mic, which is the MacBook microphone, to work. What we need now is a second input from a wireless mic. Is there any way to do this?)
You need to scan the sources by getSources() method and use the setSource([int]) to set the input source for separate audio inputs.
Then you need to use the connect() method to connect these audio inputs into the master output.
The example in the official docs is quite helpful: https://p5js.org/reference/#/p5.AudioIn/getSources