MCPcopy 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
482float Processor::getEnergy() {
483 return clamp01(getEnergyAnalyzer()->getNormalizedRMS());
484}
485
486float Processor::getPeakLevel() {
487 return clamp01(getEnergyAnalyzer()->getPeak());

Callers 5

drawMethod · 0.80
beginMethod · 0.80
updateVolumeAndPeakMethod · 0.80
getEnergyLevelMethod · 0.80
FL_TEST_FILEFunction · 0.80

Calls 2

clamp01Function · 0.85
getNormalizedRMSMethod · 0.80

Tested by

no test coverage detected