All the heavy lifting has been done by the code in this GitHub repository. I have just tweaked a few things to make it work like a desktop widget on system startup ...
A simple and lightweight audio visualizer for Windows. It captures any sound playing on your PC (like music from Spotify, YouTube, or games) and turns it into beautiful, real-time animations. Works ...