I am new to DSP and filter design. I have developed a code in C++ to calculate FIR coefficients using Parks-McClellan algorithm. The inputs to calculations are:
- Filter type (Low-Pass, High-Pass)
- Passband Freq [Hz]
- Stopband Freq [Hz]
- Passband Ripple [dB]
- Stopband Attenuation [dB].
I got a new requirement for inputs, namely to use: 1. Cutoff freq (6dB@1.6kHz) 2. Slope [24dB/octave].
Is there a way to convert these inputs into the inputs I used in my C++ code, as listed above?
Or, more general question, how to design FIR filter with custom slope?
Thank you.
No comments:
Post a Comment