File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -356,8 +356,8 @@ static FAST_CODE_NOINLINE void dynNotchProcess(void)
356
356
// Convert bin to frequency: freq = bin * binResoultion (bin 0 is 0Hz)
357
357
const float centerFreq = constrainf (meanBin * sdftResolutionHz , dynNotch .minHz , dynNotch .maxHz );
358
358
359
- // PT1 style smoothing moves notch center freqs rapidly towards big peaks and slowly away, up to 10x faster
360
- const float cutoffMult = constrainf (peaks [p ].value / sdftNoiseThreshold , 1.0f , 10 .0f );
359
+ // PT1 style smoothing moves notch center freqs rapidly towards big peaks and slowly away, up to 5x faster
360
+ const float cutoffMult = constrainf (( peaks [p ].value * 0.5 ) / sdftNoiseThreshold , 1.0f , 5 .0f );
361
361
const float gain = pt1FilterGain (DYN_NOTCH_SMOOTH_HZ * cutoffMult , pt1LooptimeS ); // dynamic PT1 k value
362
362
363
363
// Finally update notch center frequency p on current axis
You can’t perform that action at this time.
0 commit comments