View attachment filter_variable.cppView attachment filter_variable.h
I changed filter_variable.cpp and filter_variable.h (attached) to add an option for 4X Oversampling (instead of just 2x).
( #define OVERSAMPLE_4X in filter_variable.h which can be commented out to put the code back to the way it was.)
This allows the filters to have a q of as low as 0.5 while still allowing the cut off frequency to go to 20kHz.
Without these changes it is too easy to set the filter parameters such that the filter is unstable, creating harsh, full volume random noise.
I don't have a way to do a pull request, so perhaps someone here can do this for me.
The changes seem to work well for my synthesizer project:
https://github.com/windysynth/windy1
Let me know what you think.
I changed filter_variable.cpp and filter_variable.h (attached) to add an option for 4X Oversampling (instead of just 2x).
( #define OVERSAMPLE_4X in filter_variable.h which can be commented out to put the code back to the way it was.)
This allows the filters to have a q of as low as 0.5 while still allowing the cut off frequency to go to 20kHz.
Without these changes it is too easy to set the filter parameters such that the filter is unstable, creating harsh, full volume random noise.
I don't have a way to do a pull request, so perhaps someone here can do this for me.
The changes seem to work well for my synthesizer project:
https://github.com/windysynth/windy1
Let me know what you think.