I've been trying to implement some filters in my VST Plugin but they just seem to mute the signal.
Below is the code I used to implement it in the prepareToPlay() function.
And below is the processBlock() function.
void HitDetectorAudioProcessor::processBlock (AudioSampleBuffer& buffer, MidiBuffer& midiMessages)
for (int i = getNumInputChannels(); i < getNumOutputChannels(); ++i)
buffer.clear (i, 0, buffer.getNumSamples());
for (int channel = 0; channel < getNumInputChannels(); ++channel)
float* channelData = buffer.getWritePointer (channel);
m_kFreqValue is an integer with a value ranging from 20-20000 (100 default) , and m_kWidthValue is an integer ranging from 0 to 100 (10 default).
Does anyone have any idea what I'm doing wrong?