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

◆ updateAdaptiveThreshold()

void fl::audio::detector::TempoAnalyzer::updateAdaptiveThreshold ( )
private

Definition at line 149 of file tempo_analyzer.cpp.hpp.

149 {
150 // O(1) running average via MovingAverage filter
151 float mean = mFluxAvg.update(mPreviousFlux);
152 mAdaptiveThreshold = mean * 1.5f;
153}
MovingAverage< float, 43 > mFluxAvg

References mAdaptiveThreshold, mFluxAvg, and mPreviousFlux.

Referenced by update().

+ Here is the caller graph for this function: