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

◆ reset()

void fl::audio::detector::Beat::reset ( )
overridevirtual

Reimplemented from fl::audio::Detector.

Definition at line 67 of file beat.cpp.hpp.

67 {
68 mBeatDetected = false;
69 mBPM = 120.0f;
70 mPhase = 0.0f;
71 mConfidence = 0.0f;
72 mSpectralFlux = 0.0f;
73 mLastBeatTime = 0;
74 mBeatInterval = 500;
75 mAdaptiveThreshold = 0.0f;
77 mFluxAvg.reset();
78}
MovingAverage< float, 43 > mFluxAvg
Definition beat.h:62
vector< float > mPreviousMagnitudes
Definition beat.h:51
void fill(Iterator first, Iterator last, const T &value) FL_NOEXCEPT
Definition algorithm.h:204

References fl::fill(), mAdaptiveThreshold, mBeatDetected, mBeatInterval, mBPM, mConfidence, mFluxAvg, mLastBeatTime, mPhase, mPreviousMagnitudes, and mSpectralFlux.

+ Here is the call graph for this function: