# Convolution Dry/Mix

**URL:** <https://forum.juce.com/t/convolution-dry-mix/27035>\
**Category:** Audio Plugins\
**Created:** [March 31, 2018, 11:32pm UTC](https://forum.juce.com/t/convolution-dry-mix/27035 "2018-03-31T23:32:44Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jonathonracz](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@jonathonracz](https://forum.juce.com/u/jonathonracz)\
**Post date:** [April 1, 2018, 4:50am UTC](https://forum.juce.com/t/convolution-dry-mix/27035/2 "2018-04-01T04:50:31Z")

</div>

I don’t believe there’s one included in the DSP library, but writing your own should be trivial. Just create a secondary buffer that gets allocated to the proper buffer size in your `prepare` method and make a copy to it as the first step in your `process` method, then apply a gain to both streams based on the normalized position of the dry/wet knob, and finally mix them together into the output buffer using addition.

Here’s an implementation I did for an old project using the `dsp::` API. The project as a whole is GPLv3, but this class is self contained and simple feel free to take it and modify it/use it as you wish:

> <https://github.com/jonathonracz/GoatMix/blob/master/GoatMix/Source/DSP/DryWet.h>

---

_[View the full topic](https://forum.juce.com/t/convolution-dry-mix/27035)._
