Shuffling
Melon provides a couple options for Shuffling tracks in the API. These options are designed to bring shuffle modes for any situation or personal desires.
Shuffle Modes
- TrackRandom
- Shuffle tracks randomly, using a randomization algorithm designed to make things feel more random than actual random.
- TrackFullRandom
- Shuffles tracks randomly, without using an algorithm. Full chaos.
- TrackFavorites
- Shuffles tracks weighted based on characteristics that will make the top of the queue more likely to be your favorites.
- Uses track plays and rating to determine the weight
- TrackDiscovery
- Shuffles tracks weighted based on characteristics that will make the top of the queue more likely to be songs you rarely hear or haven't listen to.
- Uses track plays to weigh against songs.
- Album
- Orders tracks by album, for example a playlist with randomly inserted songs from 5 albums will order them from album 1-5, playing songs in their album order before moving to the next album.
- AlbumRandom
- Groups track by album, then shuffles the album order around. Plays each album's songs in album order.
- ArtistRandom
- Groups tracks by artist, then shuffles the artists around and plays them in "artist order" (by release date)
Track Links
You can enable or disable the use of Track Links in shuffling. Track Links are a property on Tracks called
NextTrack
. This property can hold the id of another track, linking them together. When two
tracks that are linked together appear in a queue that's being shuffled, they are placed at random, but
forced to play back to back. This is for those songs that are designed to play back to back, or ones you
just can't listen to without hearing the other.
Track Links are set by an Admin account but they affect every user, unless other users disable track links during shuffling.