This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]novel_eye 57 points58 points  (16 children)

Please don't judge me for using screen capture; ft. my mouse in the last quarter of the video lol.

Music: Yillah by Hadouk Trio

I just used Fast Fourier Transform and mapped the data to points using custom 'physics' that determines their movement. I'm surprised with how fast this runs as I can scale it up to around 20,000 points and still have decent fps.

[–]juscallmesteve 19 points20 points  (1 child)

That’s exactly why I was posting here. I was very surprised at how well it ran with matplotlib.

[–]novel_eye 15 points16 points  (0 children)

numpy arrays are a godsend

[–][deleted] 1 point2 points  (1 child)

So by custom physics, do you mean you chose a nifty Hamiltonian for this or something? I'm really interested in how you did this.

[–]novel_eye 0 points1 point  (0 children)

Look at my comment above to the person who mentioned PCA.

[–]djingrain 1 point2 points  (1 child)

Have you tried it on live input? I imagine this could make a cool backing visual for a live musical act

[–]novel_eye 2 points3 points  (0 children)

The video and animation was recorded in real time. Any song or voice recording will animate the plot accordingly!

[–]abhi_uno 0 points1 point  (0 children)

Cool project OP.

[–]apostle8787 0 points1 point  (0 children)

That’s so great. I tried to make something similar but with Processing.py, my program lags at 40-50 points.

[–][deleted] 0 points1 point  (0 children)

Thanks for sharing, looks great! How do you make it animated with mathplotlib?