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

◆ fireCallbacks()

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

Reimplemented from fl::audio::Detector.

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

73 {
74 if (mFirePitch) {
77 mFirePitch = false;
78 }
79 if (mFirePitchChange) {
81 mFirePitchChange = false;
82 }
84 if (onVoiced) onVoiced(static_cast<u8>(mConfidence * 255.0f));
86 mVoicedStateChanged = false;
87 }
88}
function_list< void(float hz)> onPitch
Definition pitch.h:45
function_list< void(float hz)> onPitchChange
Definition pitch.h:47
function_list< void(float hz, float confidence)> onPitchWithConfidence
Definition pitch.h:46
function_list< void(u8 voiced)> onVoiced
Definition pitch.h:48
unsigned char u8
Definition stdint.h:131

References mConfidence, mFirePitch, mFirePitchChange, mIsVoiced, mPreviousVoiced, mSmoothedPitch, mVoicedStateChanged, onPitch, onPitchChange, onPitchWithConfidence, and onVoiced.

Referenced by ~Pitch().

+ Here is the caller graph for this function: