How to make audio reactive?

Samuel Berube's icon

I followed AmazingMaxStuff's tutorial on how to make a particle system https://www.youtube.com/watch?v=4JDbAwiswGo but I would like to make it audio-reactive. Basically have the color and speed of the particles change depending on the frequency of the sounds. This project uses jitter and GL3 (GLSL code).

If anyone could help me out that would be greatly appreciated!

Here are all the files:

FInal Project.maxproj
application/octet-stream 0.60 KB
Max project

Particles.jxs
jxs 1.76 KB
GLSL code

Particles.maxpat
text/plain 28.08 KB
Actual patcher

I included all my files so that you may recreate the same environment.

Jean-Francois Charles's icon

Want to make something audio reactive?
Have a look at Jitter tutorial 28. Or, the lazy version:

Max Patch
Copy patch and select New From Clipboard in Max.

For frequency detection, you might use something as simple as the output of zerox~

Samuel Berube's icon

Thank you, I will look into it!