Robert Poor
2020-03-08 23:38:46 UTC
I've been pleased with ease of use of the scipy.signal package for implementing bandpass filters: the `signal.butterworth()`, `signal.sosfilt_zi()` and `signal.sosfilt()` functions do just what I expect for a filter with constant center frequency and bandwidth.
But now I'd like to make the frequency and bandwidth settings be time varying functions themselves, and I'm not sure how to do that.
One nuance: I'm processing a buffer at a time, so I need to capture the filter state at the end of one buffer and re-initialize the filter state at the onset of the next.
Can anyone offer guidance or examples on how to do that, preferably in scipy?
But now I'd like to make the frequency and bandwidth settings be time varying functions themselves, and I'm not sure how to do that.
One nuance: I'm processing a buffer at a time, so I need to capture the filter state at the end of one buffer and re-initialize the filter state at the onset of the next.
Can anyone offer guidance or examples on how to do that, preferably in scipy?