FastLED 3.9.15
Loading...
Searching...
No Matches
multiband_beat_detector.h File Reference
#include "fl/stl/int.h"
#include "fl/stl/span.h"
#include "fl/stl/noexcept.h"
+ Include dependency graph for multiband_beat_detector.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  fl::audio::detector::MultiBandBeat
 MultiBandBeat performs frequency-specific beat detection. More...
 
struct  fl::audio::detector::MultiBandBeat::Stats
 Get statistics (for debugging/monitoring) More...
 
struct  fl::audio::detector::MultiBandBeatDetectorConfig
 Configuration for multi-band beat detection. More...
 

Namespaces

namespace  fl
 Base definition for an LED controller.
 
namespace  fl::audio
 
namespace  fl::audio::detector
 

Class Documentation

◆ fl::audio::detector::MultiBandBeat::Stats

struct fl::audio::detector::MultiBandBeat::Stats
Class Members
u32 bassBeats = 0
float bassEnergy = 0.0f
u32 midBeats = 0
float midEnergy = 0.0f
u32 multiBandBeats = 0
u32 trebleBeats = 0
float trebleEnergy = 0.0f

◆ fl::audio::detector::MultiBandBeatDetectorConfig

struct fl::audio::detector::MultiBandBeatDetectorConfig
Class Members
float bassThreshold = 0.15f Bass beat threshold (0.0-1.0) Energy increase required to trigger bass beat.
u32 beatCooldownFrames = 10 Minimum cooldown between beats in same band (frames) Prevents double-triggering on same beat.
float correlationBoost = 0.05f Cross-band correlation boost (0.0-1.0) Added to threshold when multiple bands trigger together.
bool enableCrossBandCorrelation = true Enable cross-band correlation Boosts confidence when multiple bands trigger simultaneously.
float midThreshold = 0.12f Mid beat threshold (0.0-1.0) Energy increase required to trigger mid beat.
float trebleThreshold = 0.08f Treble beat threshold (0.0-1.0) Energy increase required to trigger treble beat.