[Ivan Voras] shows how to use interrupts to service the ESP32 analog to digital converters when sampling sound. Interestingly, he uses the Arduino IDE mixed with native ESP-IDF APIs to get the ...
To achieve this he created Fade, a custom programming language/framework for controlling LED animations from the ESP32. Fade is written for addressable RGB LEDs like the Neopixel/WS2812.