What's the fastest way (if possible in the browser thanks to an online tool, or if not possible easily, with Python), to get the frequency response curve (x-axis: Hz, y-axis: dB), when giving just:
- the sampling rate, example: 44100
- the coefficients, example:
1
and-1
, i.e.y[n] = 1 * x[n] + (-1) x[n-1] = x[n] - x[n-1]
?
This would be often useful to quickly have an eye on the frequency response curve of a filter.
Example:
fir frequency response python
directly yields the result I would've expected:scipy.signal.freqz
. I'm confident you already found that, too. So, what is the problem with that that you're trying to solve? Because the way you ask this question, it's asking for code that works according to your specification; asking for that is explicitly off-topic here. $\endgroup$ – Marcus Müller May 5 '18 at 15:14