Definition at line 382 of file advanced.h.
382 {
383
386 int currentIndex =
xyMap(
x,
y);
387 int aboveIndex =
xyMap(
x,
y - 1);
388 if (currentIndex >= 0 && currentIndex <
NUM_LEDS &&
389 aboveIndex >= 0 && aboveIndex <
NUM_LEDS) {
390 leds[currentIndex] =
leds[aboveIndex];
391 leds[currentIndex].fadeToBlackBy(40);
392 }
393 }
394 }
395
396
398 for (int i = 0; i < numDrops; i++) {
400 int ledIndex =
xyMap(
x, 0);
401 if (ledIndex >= 0 && ledIndex <
NUM_LEDS) {
402 leds[ledIndex] =
CHSV(96, 255, 255);
403 }
404 }
405}
fl::UISlider audioGain("Audio Gain", 1.0f, 0.1f, 5.0f, 0.1f)
References audioGain(), autoGainValue, HEIGHT, leds, NUM_LEDS, WIDTH, x, xyMap, and y.
Referenced by loop().