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

◆ SoundLevelMeter()

fl::audio::SoundLevelMeter::SoundLevelMeter ( double spl_floor = 33.0,
double smoothing_alpha = 0.0 )
Parameters
spl_floorThe SPL (dB SPL) that corresponds to your true noise-floor.
smoothing_alpha[0…1] how quickly to adapt floor; 0=instant min.

Definition at line 147 of file audio.cpp.hpp.

148 : mSplFloor(spl_floor), mSmoothingAlpha(smoothing_alpha),
150 mCurrentSpl(spl_floor) {}
#define FL_INFINITY_DOUBLE
Definition math.h:50

References FL_INFINITY_DOUBLE, mCurrentDbfs, mCurrentSpl, mDbfsFloorGlobal, mOffset, mSmoothingAlpha, and mSplFloor.