Member-only story
Visualize Your Favourite Music - See What It Looks Like
A Step-by-Step Tutorial to Visualize Audio and Understand Your Favorite Songs
“If you wanna run away with me, I know a galaxy
And I can take you for a ride
I had a premonition that we fell into a rhythm
Where the music don’t stop for life…”
Have you ever wondered what sound looks like? How does a melody, a beat, or the frequencies of a song manifest visually? Imagine being able to “see” music — not just listen to it. What if we could understand the structure of sound, its rhythm, its harmony, and even its energy, by transforming it into images? Well, it’s possible!
Thanks to Python and its powerful libraries, we can visualize audio in ways that offer deeper insights into the music we love. Today, I’ll do just that. I’ll take one of my favorite songs, “Levitating” by Dua Lipa, and see into the inner workings of the track using Python. I’ll explore the various features of the song, like its waveform, frequency components, and how different aspects of the sound evolve over time.
But before we explore the visualization, let’s listen to this amazing song together:

