I'm getting a raspy noise from the AudioFilterStateVariable under certain conditions.
(I'm using a Teensy 4.1 with TEENSY4_AUDIO adapter board).
when the combination of the freq control input, frequency(freq) and resonance(.707) push the filter parameters out of wack the filter outputs a awful, unwanted noise.
I've created an example design to demonstrate the problem. I believe that the problem occurs when the filter cutoff frequency is pushed close to or above Nyquist, particularly when the resonance is low (like .707).
It would be great if the filter could internally limit the F after the calculation F = Fcenter*2^(signal*octaves).
Or perhaps, someone has a work around?
The attached file has the example design is attached (filter_noise.ino).
View attachment filter_noise.ino
(I'm using a Teensy 4.1 with TEENSY4_AUDIO adapter board).
when the combination of the freq control input, frequency(freq) and resonance(.707) push the filter parameters out of wack the filter outputs a awful, unwanted noise.
I've created an example design to demonstrate the problem. I believe that the problem occurs when the filter cutoff frequency is pushed close to or above Nyquist, particularly when the resonance is low (like .707).
It would be great if the filter could internally limit the F after the calculation F = Fcenter*2^(signal*octaves).
Or perhaps, someone has a work around?
The attached file has the example design is attached (filter_noise.ino).
View attachment filter_noise.ino