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

◆ SoundLevelMeter()

fl::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 97 of file audio.cpp.

98 : spl_floor_(spl_floor), smoothing_alpha_(smoothing_alpha),
100 current_spl_(spl_floor) {}
double dbfs_floor_global_
Definition audio.h:95
double current_dbfs_
Definition audio.h:97
double smoothing_alpha_
Definition audio.h:94
double spl_floor_
Definition audio.h:93
double current_spl_
Definition audio.h:98
#define INFINITY_DOUBLE
Definition math_macros.h:77

References current_dbfs_, current_spl_, dbfs_floor_global_, INFINITY_DOUBLE, offset_, smoothing_alpha_, and spl_floor_.