Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FastLED/FastLED
/ getEnergy
Method
getEnergy
src/fl/audio/audio_processor.cpp.hpp:482–484 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
480
}
481
482
float Processor::getEnergy() {
483
return clamp01(getEnergyAnalyzer()->getNormalizedRMS());
484
}
485
486
float Processor::getPeakLevel() {
487
return clamp01(getEnergyAnalyzer()->getPeak());
Callers
5
draw
Method · 0.80
begin
Method · 0.80
updateVolumeAndPeak
Method · 0.80
getEnergyLevel
Method · 0.80
FL_TEST_FILE
Function · 0.80
Calls
2
clamp01
Function · 0.85
getNormalizedRMS
Method · 0.80
Tested by
no test coverage detected