Menu

PwrLPF fix

The PwrLPF slider and corresponding stage count selection box controls a set of identical low pass filters that smooths the rectified output of each band pass filter. Versions prior to 1.40 have a shortcoming (bug) where the cutoff slider isn't adjusted for stage count. This is fixed in version 1.4. The operation of previous versions can be seen here by adjusting the stage count slider on line 2. To see how the fix works, use the slider on line 1 to enable it, then once again change the stage count slider. With the fix, the -3dB cutoff point becomes independent of stage count. Without the fix, the LPF cutoff frequency decreases significantly with stage count.
The actual adjustment factor is calculated on line 102. To find this formula, I first tried asking some AI services:
What is the cutoff frequency of a low pass filter composed of N cascaded identical ideal second order stages as a function of Q, N and frequency?
To make a low pass filter with cutoff frequency Fc from a cascade of N identical ideal second order stages, what is the needed stage natural frequency?
AI confidently provided many wrong answers but never a correct answer. I finally derived the equation myself here.

Posted by sduplichan 2025-01-06

Log in to post a comment.

MongoDB Logo MongoDB