Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kalongn/shuffle-algorithm

Shuffle Algorithm for a Spotify Playlist
https://github.com/kalongn/shuffle-algorithm

bash data-structures java music node-js shuffle spotify

Last synced: 7 days ago
JSON representation

Shuffle Algorithm for a Spotify Playlist

Awesome Lists containing this project

README

        

# Song Shuffling Algorithm using Java.

Currently, the program requires a .env file which you will have to get from a spotify app, and install all the dependenceis via npm install.

In addition, the playlist can only have a maximum of 100 songs and must be set to public.

Inspired from a video by [gabi belle](https://www.youtube.com/@itsgabibelle) on [Why Spotify Playlists Never Truly Shuffle](https://youtu.be/OdLyKETk5o0)
There are many useful datas I am collecting which I am directly using Spotify API for. For example, for [Artist](https://developer.spotify.com/documentation/web-api/reference/#/operations/get-an-artist), for [Track](https://developer.spotify.com/documentation/web-api/reference/#/operations/get-track), [Track Audio Anaylsis](https://developer.spotify.com/documentation/web-api/reference/#/operations/get-audio-analysis) and [Track's feature](https://developer.spotify.com/documentation/web-api/reference/#/operations/get-audio-features), for [Album](https://developer.spotify.com/documentation/web-api/reference/#/operations/get-an-album) and for [Playlist](https://developer.spotify.com/documentation/web-api/reference/#/operations/get-playlist).

I have also used the following website to further the study on how to shuffle songs effectively.
- [Spotify 2014 shuffling blog post](https://engineering.atspotify.com/2014/02/how-to-shuffle-songs/)
- [The art of shuffling music by Martin Fiedler](http://keyj.emphy.de/balanced-shuffle/)