FastLED 3.9.15
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}
FL_DISABLE_WARNING_PUSH U constexpr common_type_t< T, U > min(T a, U b) FL_NOEXCEPT
Definition math.h:71
constexpr common_type_t< T, U > max(T a, U b) FL_NOEXCEPT
Definition math.h:75

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

+ Here is the call graph for this function: