Open dipincluster opened 2 years ago
Q is bandwidth - not sure how that translates to decibels per octave for a low pass filter. The technical explanation is available here: https://www.w3.org/TR/audio-eq-cookbook/ Does the volume of the sin wave get attenuated at all in the output? Also, bear in mind that you should use the filter on a mono source, although looks like you're doing that
I am trying to use low pass filter to remove anything above 500 Hz, to test the implementation I have created a sign wave at 4kHz using Signal Generator. This is my sample provider implementation
I am generating a sin wave at 4000 hz frequency using the below code
Then I am creating a file and again reading the file because i want the original file to compare with the output.
Then creating my filter sample provider with a cutoff frequency of 500, output I am expecting is a file without the sin wave hum
I believe the q is for Quality Factor so I am passing 1
WaveFileWriter.CreateWaveFile("filteroutput1.wav", filteredWaveProvider);
Then I am create a new output file.
the output file after going through LFT is still having the sin wave at 4000Hz
Is there anything I am doing wrong?
After going through the Github Code repo of NAudio I am confused about the q value, is it quality factor or bandwidth? why would you have a bandwidth for low pass filter?