50 void update(fl::u32 currentTimeMs);
103 1.70f, 1.71f, 1.73f, 1.78f, 1.68f, 1.56f, 1.55f, 1.63f,
104 1.79f, 1.62f, 1.80f, 2.06f, 2.47f, 3.35f, 6.83f, 9.55f
UINumberField palette("Palette", 0, 0, 2)
CRGB volumeToColor(const CRGBPalette16 &palette) const
const AudioData & getData() const
void update(fl::u32 currentTimeMs)
void processFFT(const AudioSample &sample)
fl::u8 volumeToScale255() const
void detectBeat(fl::u32 currentTimeMs)
void mapFFTBinsToFrequencyChannels()
float computeRMS(const fl::vector< fl::i16 > &samples)
static constexpr float PINK_NOISE_COMPENSATION[16]
void updateVolumeAndPeak(const AudioSample &sample)
void setConfig(const AudioConfig &config)
static constexpr fl::u32 BEAT_COOLDOWN
void begin(const AudioConfig &config=AudioConfig{})
float mapFrequencyBin(int fromBin, int toBin)
const AudioData & getSmoothedData() const
fl::u8 frequencyToScale255(fl::u8 binIndex) const
void processSample(const AudioSample &sample)
Defines the red, green, and blue (RGB) pixel struct.
Utility functions for color fill, palettes, blending, and more.
HeapVector< T, Allocator > vector
Representation of an RGB pixel (Red, Green, Blue)