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

◆ SoundLevelMeter()

fl::SoundLevelMeter::SoundLevelMeter ( double spl_floor = 33.0f,
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 79 of file audio.cpp.

80 : spl_floor_(spl_floor), smoothing_alpha_(smoothing_alpha),
82 current_spl_(spl_floor) {}
double dbfs_floor_global_
Definition audio.h:93
double current_dbfs_
Definition audio.h:95
double smoothing_alpha_
Definition audio.h:92
double spl_floor_
Definition audio.h:91
double current_spl_
Definition audio.h:96
#define INFINITY_DOUBLE
Definition math_macros.h:45

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