Skip to content

An experiment to see if you can sort a Spotify playlist using audio features!

Notifications You must be signed in to change notification settings

SamLolo/Playlist-Sorter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spotify Playlist Sorter

wakatime

About The Project

This playlist sorter was a project during Easter 2023 to experiment with the idea of how you sort a playlist. From working with the Spotify Web API during my A-Level project in 2021/22, I knew that Spotify categorised each track using different "audio features". These are float values between 0 and 1, and are created by analysisng the waveform, ect of the tracks. You can learn more about it here.

In my A-Level project, I used these values to help predict the genre of a song, but I wanted to use them to see if I could make a playlist slowly flow between genres, to make the listening experience as nice as possible. The program slowly rebuilds the playlist, using the audio features and finding each tracks closest match. Although not perfect, it mostly seperates songs out by genre, and proved an interesting concept to explore!

Technical Information

Python Written for Python 3.10!

Spotify Authenticates users using the Authorization Code Flow and communicates with several API endpoints.

Packages

Flask Used to write the user interface, alongside 4 HTML templates.

Pandas Used for easier manipulation of the Spotify audio features.

About

An experiment to see if you can sort a Spotify playlist using audio features!

Topics

Resources

Stars

Watchers

Forks