Adding reverb to microphone input and play it through speakers?


#1

Hi

I am wondering if it is possible to use p5js and the p5sound library to do the following:

  • Get user input through the microphone
  • Add reverb to the signal
  • Output the wet signal (input + reverb) through the computers speakers/headphones?

Best
Andreas


#2

Figured it out myself:

var mic;
var reverb;

function setup(){
  mic = new p5.AudioIn()
  
  reverb = new p5.Reverb();
    
  mic.start();
  mic.connect();
  reverb.process(mic, 1, 2);
}