It was more comfortable for the testing purposes to use
sound to generate input for the strip than image or video (I will implement it some time, anyway).
PyAudio library comes in handy for such a purpose. Implementation of a simple real-time amplitude analysis was fast and easy with PyAudio (as long as you remember to stay on
Python <= 3.6), but let’s
complicate things a bit. I wanted to have freedom of choice regarding the source of the music. I wanted PyAudio to listen to all sounds on my computer, so if I play music from Spotify, YouTube, iTunes, or even
Cubase, I would not need to change a thing around configuration. This is the tricky part, as you get it done by configuring a loopback device and feeding the input from this device to PyAudio. This configuration differs according to the platform you are on and
might require the installation of additional drivers.