Hi all,
I'm new to the forum and new to "the Teensy with its AUDIO shield" community , and I find it extremely promising.
In the project I'd like to develop, I need to set up dynamically coefficients of FIR filters. In order to do so, I moved to the audio/Filter_FIR example and played with it.
My main concern is that when I set the coefficients of a FIR filter (even when setting the SAME coefficients) I have some audible clicks that appears...
I attached a minimal example of source code that illustrates that point.
If any of you have some idea to remove those unpleasant clicks, I'll be very grateful!
Thanks a lot in advance.
Marc
PS:
- I also tried to play with biquad filters and there is no problem changing dynamically their coefficients
- This may be due to that part of the library specifically developped for biquads: https://github.com/PaulStoffregen/Audio/blob/master/filter_biquad.cpp
I'm new to the forum and new to "the Teensy with its AUDIO shield" community , and I find it extremely promising.
In the project I'd like to develop, I need to set up dynamically coefficients of FIR filters. In order to do so, I moved to the audio/Filter_FIR example and played with it.
My main concern is that when I set the coefficients of a FIR filter (even when setting the SAME coefficients) I have some audible clicks that appears...
I attached a minimal example of source code that illustrates that point.
If any of you have some idea to remove those unpleasant clicks, I'll be very grateful!
Thanks a lot in advance.
Marc
PS:
- I also tried to play with biquad filters and there is no problem changing dynamically their coefficients
- This may be due to that part of the library specifically developped for biquads: https://github.com/PaulStoffregen/Audio/blob/master/filter_biquad.cpp