FastLED 3.9.15
Loading...
Searching...
No Matches

◆ reset()

void fl::audio::NoiseFloorTracker::reset ( )

Reset noise floor to initial state.

Definition at line 25 of file noise_floor_tracker.cpp.hpp.

25 {
26 mCurrentFloor = 100.0f;
27 mLastHysteresisFloor = 0.0f; // Start at 0 to allow initial floor rise
29 mStats.currentFloor = 100.0f; // Initialize to match mCurrentFloor
30 mStats.minObserved = 0.0f;
31 mStats.maxObserved = 0.0f;
32 mStats.samplesProcessed = 0;
33 mStats.inHysteresis = false;
34}
float mCurrentFloor
Current noise floor estimate.
float mLastHysteresisFloor
Floor value at last hysteresis trigger Used to enforce hysteresis margin before allowing floor to ris...
u32 mBelowFloorCount
Count of consecutive samples below floor (for slow attack)

References mBelowFloorCount, mCurrentFloor, mLastHysteresisFloor, and mStats.