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

◆ reset()

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

Reimplemented from fl::audio::Detector.

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

114 {
115 mCurrentBPM = 120.0f;
116 mConfidence = 0.0f;
117 mIsStable = false;
118 mStability = 0.0f;
119 mPreviousFlux = 0.0f;
120 mAdaptiveThreshold = 0.0f;
123 mHypotheses.clear();
124 mOnsetTimes.clear();
125 mFluxAvg.reset();
126 mBPMMedian.reset();
127 mBPMHistory.clear();
128 mConfidenceEnvelope.reset(0.0f);
129 mPrevTimestamp = 0;
130 mHasPrevTimestamp = false;
131}
vector< TempoHypothesis > mHypotheses
MovingAverage< float, 43 > mFluxAvg
MedianFilter< float, 21 > mBPMMedian
void fill(Iterator first, Iterator last, const T &value) FL_NOEXCEPT
Definition algorithm.h:204

References fl::fill(), mAdaptiveThreshold, mBPMHistory, mBPMMedian, mConfidence, mConfidenceEnvelope, mCurrentBPM, mFluxAvg, mHasPrevTimestamp, mHypotheses, mIsStable, mOnsetTimes, mPreviousFlux, mPreviousMagnitudes, mPrevTimestamp, mStability, and mStableFrameCount.

+ Here is the call graph for this function: