FastLED 3.10.8
Loading...
Searching...
No Matches

◆ setSmoothingFactor()

void fl::audio::detector::DynamicsAnalyzer::setSmoothingFactor ( float alpha)

Definition at line 190 of file dynamics_analyzer.cpp.hpp.

190 {
191 // Clamp to 0-1
192 mSmoothingFactor = fl::max(0.0f, fl::min(1.0f, alpha));
193}
constexpr common_type_t< T, U > max(T a, U b) FL_NO_EXCEPT
Definition math.h:75
FL_DISABLE_WARNING_PUSH U constexpr common_type_t< T, U > min(T a, U b) FL_NO_EXCEPT
Definition math.h:71

References fl::FL_NO_EXCEPT, fl::max(), fl::min(), and mSmoothingFactor.

+ Here is the call graph for this function: