CodingTrain / Suggestion-Box

A repo to track ideas for topics
571 stars 86 forks source link

Visualizing songs with self similarity matrices (Quick & Easy) #1213

Open loic-brtd opened 5 years ago

loic-brtd commented 5 years ago

image

I discovered a way of representing repetitions in music by analysing the lyrics and creating a self similarity matrix. I saw this technique on YouTube, in a Ted Talk video entitled "Pop Music is Stuck on Repeat | Colin Morris | TEDxPenn".

This could make a very beginner friendly coding challenge ;) Here's my code on the p5 web editor, with the lyrics of the Coding Train Song :)

Here's an interactive demo ;)

We could also use the Levenshtein distance between words and color the cells by mapping the score to HSB colors ^^

image

aneeka657 commented 3 years ago

where is code btw ?

loic-brtd commented 3 years ago

@aneeka657 You can find my personal implementation here : https://editor.p5js.org/lo.bertrand/sketches/py8NjtVHD