46 {
47
50 for (
size_t i = 0; i <
sample.pcm().size(); ++i) {
52 if (v < 0) {
53 v = -v;
54 }
55 if (v > peak) {
56 peak = v;
57 }
58 }
59 }
60
61
64
66}
fl::UIAudio audio("Audio Input")
fl::UISlider brightness("Brightness", BRIGHTNESS, 0, 255)
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
void fill_solid(CRGB *targetArray, int numToFill, const CRGB &color) FL_NO_EXCEPT
Fill a range of LEDs with a solid color.
CRGB sample(const CRGB *grid, const XYMap &xyMap, float x, float y, SampleMode mode) FL_NO_EXCEPT
Sample a pixel from a 2D CRGB grid at floating-point coordinates.
MapRedBlackTree< Key, T, Compare, fl::allocator_slab< char > > map