FastLED 3.9.15
Loading...
Searching...
No Matches
audio_reactive.h File Reference
#include "fl/fft.h"
#include "fl/math.h"
#include "fl/vector.h"
#include "fl/stdint.h"
#include "fl/int.h"
#include "fl/audio.h"
#include "fl/array.h"
#include "fl/unique_ptr.h"
#include "fl/sketch_macros.h"
#include "crgb.h"
#include "fl/colorutils.h"
+ Include dependency graph for audio_reactive.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  fl::AudioData
 
class  fl::AudioReactive
 
struct  fl::AudioReactiveConfig
 
struct  fl::BeatDetectors
 
class  fl::PerceptualWeighting
 
class  fl::SpectralFluxDetector
 

Namespaces

namespace  fl
 IMPORTANT!
 

Class Documentation

◆ fl::AudioData

struct fl::AudioData
Class Members
bool bassBeatDetected = false
float bassEnergy = 0.0f
bool beatDetected = false
float dominantFrequency = 0.0f
float frequencyBins[16] = {0}
float magnitude = 0.0f
bool midBeatDetected = false
float midEnergy = 0.0f
float peak = 0.0f
float spectralFlux = 0.0f
u32 timestamp = 0
bool trebleBeatDetected = false
float trebleEnergy = 0.0f
float volume = 0.0f
float volumeRaw = 0.0f

◆ fl::AudioReactiveConfig

struct fl::AudioReactiveConfig
Class Members
bool agcEnabled = true
u8 attack = 50
float bassThreshold = 0.15f
u8 decay = 200
bool enableMultiBand = true
bool enableSpectralFlux = true
u8 gain = 128
float midThreshold = 0.12f
bool noiseGate = true
u16 sampleRate = 22050
u8 scalingMode = 3
u8 sensitivity = 128
float spectralFluxThreshold = 0.1f
float trebleThreshold = 0.08f