46 {
47
50 for (
size_t i = 0; i <
sample.pcm().size(); ++i) {
52 if (v > peak) {
53 peak = v;
54 }
55 }
56 }
57
58
61
63}
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.
constexpr enable_if< is_fixed_point< T >::value, T >::type abs(T x) FL_NOEXCEPT
void fill_solid(CRGB *targetArray, int numToFill, const CRGB &color) FL_NOEXCEPT
Fill a range of LEDs with a solid color.
MapRedBlackTree< Key, T, Compare, fl::allocator_slab< char > > map
CRGB sample(const CRGB *grid, const XYMap &xyMap, float x, float y, SampleMode mode)
Sample a pixel from a 2D CRGB grid at floating-point coordinates.