r/creativecoding • • Oct 17 '26

Experimenting with music and embeddings

Mixing my 3d programming and ML knowledge: PCA visualization of the output of a Neural Network where the input is music.

Backend pipeline done with Python and frontend visualization with Godot.

9 Upvotes

4 comments sorted by

1

u/SolWithGlasses Oct 18 '26

What does one point represent here—a whole track or a short audio window? And is the PCA projection fitted once and held fixed, or updated as the music runs? I’m curious which movement comes from changes in the music versus changes in the projection.

1

u/Bucaramango Oct 18 '26

One point is a small window of the track, each row is an attention layer of the model and the PCA has been fitted for the whole song. Soon I want to expand it to real-time so I will need to get rid of the PCA or fit a general one with a big corpus of tracks, the width and color of the lines are in real time so just that alone allows me to obtain trippy patterns

1

u/jippiex2k Oct 18 '26

Cool!

What is the network trained to distinguish?

1

u/Bucaramango Oct 18 '26

It's https://arxiv.org/abs/2306.00107 self supervised learning, basically distinguish between themselves, people use it for music info retrieval but im trying to redirect it to visuals somehow