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

Go to the source code of this file.

Classes

class  fl::audio::SignalConditioner
 SignalConditioner performs low-level audio preprocessing to clean raw PCM samples before FFT analysis or beat detection. More...
 
struct  fl::audio::SignalConditioner::Stats
 Get current statistics (for debugging/monitoring) More...
 
struct  fl::audio::SignalConditionerConfig
 Configuration for signal conditioning pipeline. More...
 

Namespaces

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

Class Documentation

◆ fl::audio::SignalConditioner::Stats

struct fl::audio::SignalConditioner::Stats
Class Members
i32 dcOffset = 0
bool noiseGateOpen = false
u32 samplesProcessed = 0
u32 spikesRejected = 0

◆ fl::audio::SignalConditionerConfig

struct fl::audio::SignalConditionerConfig
Class Members
bool enableDCRemoval = true Enable DC offset removal (running average high-pass filter)
bool enableNoiseGate = true Enable noise gate with hysteresis.
bool enableSpikeFilter = true Enable spike filtering for I2S glitches.
i16 noiseGateCloseThreshold = 300 Noise gate close threshold (signal must fall below to close gate)
i16 noiseGateOpenThreshold = 500 Noise gate open threshold (signal must exceed to open gate)
i16 spikeThreshold = 10000 Spike detection threshold (absolute value) Samples beyond ±spikeThreshold are rejected as glitches.