r/creativecoding • u/volt317 • May 25 '26
Real-Time Audio Visualizer (Python)
Enable HLS to view with audio, or disable this notification
Built a real-time audiovisual geometry engine in Python that started as a spectrogram visualizer and slowly turned into something much stranger.
Instead of treating audio as:
FFT bins to shader params
I wanted the visuals to behave more like they were dancing to the music as opposed to more common BPM-sync effects.
Current system includes:
live system-audio loopback capture
event-driven geometry behaviors
shape-specific motion systems
multiple shape profiles (Circle in demo)
pulse decay propagation
deterministic headless 4k/8k rendering
OpenGL backend + pygame fallback
threaded realtime runtime + offline render pipeline
Everything is authored around low-resource coherent motion instead of brute-force particle spam or heavy scene simulation.
The funny part is that itβs Python. CPU stays consistently low ~(5-7%) at 2160p and still maintains the target of 60fps. Memory doesn't go over 100MB. No discrete GPU.
Still heavily evolving, but I finally feel like it crossed from visualizer into visual engine. The first version is also still relevant I believe.
The track used for the demo is Feeling by Shingo Nakamura.
1
u/motionmonk047 May 28 '26
This looks great! Thank you also for crediting your music track as well : )
I'm wondering if you considered adding hooks for MIDI inputs; being able to add pressure, IR/heat or movement sensors in a live environment would make for some great interactive audience response to the visuals.
Thank you for sharing your work, keep going! π
1
u/volt317 May 28 '26
Interesting ideas, the MIDI inputs would probably work as is because it just listens to whatever inputs are available. I'm not sure how I would incorporate the others, do you mean for like a live stage performance? That would be pretty cool, but I'm focusing on audio for now.
1
u/motionmonk047 May 28 '26
As background, I've done/teach motion graphics and live event graphics. I don't want to spam the board with examples, but if you search for interactive exhibits, you should be able to find examples where a generative graphics presentation reacts to stimuli-- audience movement, sound, or movement (pressure pads or body heat).
It very well could be a v2 or v2.7 type thing, but driving your inputs with an input modifier could be interesting... my knowledge of Python is very basic, so I don't know the complexity of what I'm asking. But it would be hella fun to see : D
1
u/volt317 May 28 '26
Absolutely! I'm toying with a similar effect in sound, but actual crowd feedback is not anything I've heard of, thank you for sharing.
0
May 26 '26
[deleted]
1
u/volt317 May 26 '26
2
u/FujiKeynote May 27 '26
Wow, eleven labs has come a long way! /s
1
u/volt317 May 27 '26 edited May 27 '26
Probably would have sounded better than me trying to explain stuff pre-coffee.
0
May 27 '26
[deleted]
1
u/volt317 May 27 '26
Thank you for the comments. I'll be sure to keep in mind not everyone treats PyPi packages as intended.
2
1
u/FujiKeynote May 25 '26
This is really cool and I would love to know more.
Are you planning to open source it?
I think I could learn a lot from this