I wrote this simple method using NAudio to create a reverb effect on the current sound device. It's already working.
However, I would like to apply the reverb effect only on the higher frequencies, because otherwise you hear a lot of base drum echoes, which isn't what I want it to sound like.
private void CreateReverb()
{
WasapiLoopbackCapture waveIn = new WasapiLoopbackCapture();
BufferedWaveProvider bufferedWaveProvider = new BufferedWaveProvider(waveIn.WaveFormat);
VolumeSampleProvider volumeProvider = new VolumeSampleProvider(bufferedWaveProvider.ToSampleProvider());
WasapiOut wasapiOut = new WasapiOut(AudioClientShareMode.Shared, 0);
wasapiOut.Init(volumeProvider);
wasapiOut.Play();
waveIn.StartRecording();
waveIn.DataAvailable += delegate(object sender, WaveInEventArgs e)
{
bufferedWaveProvider.AddSamples(e.Buffer, 0, e.BytesRecorded);
volumeProvider.Volume = .8f * ReverbIntensity;
};
}
I tried some code I found online that creates an equalizer, but I couldn't apply it to my existing code.
Question: How do I change this reverb effect to only affect higher tones using some kind of euqalizer?