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

◆ isBeat()

bool fl::audio::detector::MusicalBeat::isBeat ( ) const

Check if a musical beat was detected in the last frame.

Returns
True if a beat with sufficient confidence was detected

Definition at line 78 of file musical_beat_detector.cpp.hpp.

78 {
79 return mBeatDetected && (mLastBeatConfidence >= mConfig.minBeatConfidence);
80}
bool mBeatDetected
Last beat was detected.
float mLastBeatConfidence
Last beat confidence score.

References mBeatDetected, mConfig, and mLastBeatConfidence.

Referenced by ~MusicalBeat().

+ Here is the caller graph for this function: