FastLED 3.9.15
Loading...
Searching...
No Matches
audio_frame.h
Go to the documentation of this file.
1#pragma once
2
3#include "fl/stl/stdint.h"
4
5namespace fl {
6
10struct AudioFrame {
11 float bass = 0.0f;
12 float mid = 0.0f;
13 float treble = 0.0f;
14 float volume = 0.0f;
15 bool beat = false;
16 fl::u32 timestamp = 0;
17};
18
19} // namespace fl
Base definition for an LED controller.
Definition crgb.hpp:179
fl::u32 timestamp
When this audio sample was captured (ms)
Definition audio_frame.h:16
float volume
Overall volume (0.0-1.0, normalized RMS)
Definition audio_frame.h:14
float mid
Mid energy (0.0-1.0, normalized)
Definition audio_frame.h:12
float bass
Bass energy (0.0-1.0, normalized)
Definition audio_frame.h:11
bool beat
True if a beat was detected this sample.
Definition audio_frame.h:15
float treble
Treble energy (0.0-1.0, normalized)
Definition audio_frame.h:13
Lightweight snapshot of pre-computed audio analysis for one audio sample.
Definition audio_frame.h:10