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

◆ reset() [2/2]

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

Reimplemented from fl::audio::Detector.

Definition at line 143 of file note.cpp.hpp.

143 {
145 mLastVelocity = 0;
146 mNoteActive = false;
147 mCurrentPitch = 0.0f;
148 mPitchBend = 0.0f;
149 mNoteOnEnergy = 0.0f;
150 mNoteOnTime = 0;
151 mLastUpdateTime = 0;
152
154 mPitchDetector->reset();
155 }
156}
shared_ptr< Pitch > mPitchDetector
Definition note.h:69
static constexpr u8 NO_NOTE
Definition note.h:110

References mCurrentNote, mCurrentPitch, mLastUpdateTime, mLastVelocity, mNoteActive, mNoteOnEnergy, mNoteOnTime, mOwnsPitchDetector, mPitchBend, mPitchDetector, and NO_NOTE.

Referenced by reset().

+ Here is the caller graph for this function: