This project uses Aubio and Onset Detection to create real time visual effects to accompany somebody playing music.
It accompanies a blog post and video available at makeartwithpython.com.
$ python3 video-synthesizer.py
You'll get back out a list of audio inputs built into your computer. You can then call the program again with the correct number for your chosen input, and play back in real time.
$ python3 video-synthesizer.py -input 3
You can then play away!
We take in audio, in this example from a Rocksmith cable. We then pass the raw audio into a thread to handle and detect onsets within our Python program.
This thread then pushes any detected onsets onto a queue, which is picked up by our main Pygame thread.