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

◆ isAboveFloor()

bool fl::audio::NoiseFloorTracker::isAboveFloor ( float level) const

Check if signal is above noise floor + margin.

Parameters
levelSignal level to check
Returns
True if signal exceeds floor + hysteresis margin

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

71 {
72 // Check if signal exceeds floor plus hysteresis margin
73 return level > (mCurrentFloor + mConfig.hysteresisMargin);
74}
float mCurrentFloor
Current noise floor estimate.
NoiseFloorTrackerConfig mConfig

References mConfig, and mCurrentFloor.