Quote:
Originally Posted by Thuneau
The only problem I have is that there is no direct equivalent of ReaFir when it comes to parameter setting.
|
SciPy can read and write WAV files, and should be able to generate whatever text format you need.
If you stick an impulse (a WAV with [1, 0, 0, ....]) through ReaFIR, you'll capture the impulse response. If you export the result as a 32-bit WAV (trimmed appropriately), you should be able to convert that WAV into the text format you need using Python.
Having said that: I'm pretty sure ReaFIR is using cubic curves on a logarithmic frequency scale. It does its processing in the frequency domain, rather than producing an IR (so isn't actually
completely linear, but the errors are usually miniscule), but it should be very possible to create IRs for the same shape of filters in Python.
You'd probably want to: (a) produce a Hz->dB function following the cubic curve, (b) assemble a spectrum, (c) IFFT, (d) apply some windowing.