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

◆ isBackbeatPosition()

bool fl::audio::detector::Backbeat::isBackbeatPosition ( ) const
private

Definition at line 299 of file backbeat.cpp.hpp.

299 {
300 // Check if current beat number matches backbeat mask
301 // Beat numbers are 1-based, mask is 0-based
302 if (mCurrentBeat == 0 || mCurrentBeat > 8) {
303 return false; // Invalid beat number
304 }
305
306 u8 bitIndex = mCurrentBeat - 1; // Convert to 0-based
307 return (mBackbeatMask & (1 << bitIndex)) != 0;
308}
unsigned char u8
Definition stdint.h:131

References mBackbeatMask, and mCurrentBeat.

Referenced by detectBackbeat().

+ Here is the caller graph for this function: