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

◆ reset() [2/2]

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

Reimplemented from fl::audio::Detector.

Definition at line 90 of file pitch.cpp.hpp.

90 {
91 mCurrentPitch = 0.0f;
92 mSmoothedPitch = 0.0f;
93 mConfidence = 0.0f;
94 mIsVoiced = false;
95 mPreviousVoiced = false;
96 mPreviousPitch = 0.0f;
97 mAutocorrelation.clear();
98 mPitchSmoother.reset();
99}
vector< float > mAutocorrelation
Definition pitch.h:91
OneEuroFilter< float > mPitchSmoother
Definition pitch.h:82

References mAutocorrelation, mConfidence, mCurrentPitch, mIsVoiced, mPitchSmoother, mPreviousPitch, mPreviousVoiced, and mSmoothedPitch.

Referenced by reset().

+ Here is the caller graph for this function: