# Adding reverb to microphone input and play it through speakers?

**URL:** <https://discourse.processing.org/t/adding-reverb-to-microphone-input-and-play-it-through-speakers/7415>\
**Category:** Libraries\
**Created:** [January 11, 2019, 10:49am UTC](https://discourse.processing.org/t/adding-reverb-to-microphone-input-and-play-it-through-speakers/7415 "2019-01-11T10:49:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndreasRef](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/andreasref/32/133_2.png) [@AndreasRef](https://discourse.processing.org/u/AndreasRef)\
**Post date:** [January 11, 2019, 10:49am UTC](https://discourse.processing.org/t/adding-reverb-to-microphone-input-and-play-it-through-speakers/7415/1 "2019-01-11T10:49:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![AndreasRef](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/andreasref/32/133_2.png) [@AndreasRef](https://discourse.processing.org/u/AndreasRef)\
**Post date:** [January 11, 2019, 1:14pm UTC](https://discourse.processing.org/t/adding-reverb-to-microphone-input-and-play-it-through-speakers/7415/2 "2019-01-11T13:14:18Z")

</div>

Figured it out myself:

```auto
var mic;
var reverb;

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

```
