Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/kalongn/shuffle-algorithm
- Owner: kalongn
- Created: 2023-01-06T14:53:03.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-24T23:33:28.000Z (over 1 year ago)
- Last Synced: 2024-12-11T12:12:04.661Z (2 months ago)
- Topics: bash, data-structures, java, music, node-js, shuffle, spotify
- Language: Java
- Homepage:
- Size: 207 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/)