MCPcopy Create free account
hub / github.com/FastLED/FastLED / isMultiBandBeat

Method isMultiBandBeat

src/fl/audio/detector/multiband_beat_detector.cpp.hpp:109–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109bool MultiBandBeat::isMultiBandBeat() const {
110 u32 bandCount = 0;
111 if (mBassBeat) bandCount++;
112 if (mMidBeat) bandCount++;
113 if (mTrebleBeat) bandCount++;
114 return bandCount >= 2;
115}
116
117void MultiBandBeat::reset() {
118 mBassBeat = false;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected