I am creating a convolution reverb plugin for university and I have managed to get a simple plugin working, where the output is the input through an impulse response. I am wondering how I can alter the code to make a wet/dry parameter.
I have added a "blend" parameter for this:
const float defaultBlend = 0.5f;
addParameter(blendParam = new FloatParameter (defaultBlend, "Blend"));
the convolver is then initialised:
convolver.init (512, buffer.getReadPointer(0), buffer.getNumSamples());
and processed here:
for (int channel = 0; channel < getNumInputChannels(); ++channel)
{
float* channelData = buffer.getWritePointer (channel);
const float* inputData = buffer.getReadPointer(channel);
for (int i = 0; i < buffer.getNumSamples(); ++i)
channelData[i] = inputData[i] * level / 20;
//convolver stuff
convolver.process (inputData, channelData, buffer.getNumSamples());
}
any ideas?