736
submitted 11 months ago by WashedOver@lemmy.ca to c/memes@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] baltakatei@sopuli.xyz 8 points 11 months ago* (last edited 11 months ago)

I am fond of a partial shuffle algorithm I wrote in Bash for my music playlists that often preserves neighbors of the input list in the output list.

Image

  • Blue: input sequence.
  • Red: complete shuffle.
  • Green: partial shuffle.

The result is like skipping through my media library in order but occasionally randomly enabling shuffle to jump to a new place. Since the input list clumps albums together and since albums often have a similar vibe, if I want several similar songs of a particular feel to play one after another, I just have to manually advance through the outputted playlist until I hit a song that has what I'm looking for; then I can let the playlist continue automatically since each subsequent song is likely to be similar to the previous song (until another random jump occurs).

[-] Melody@lemmy.one 2 points 11 months ago

Nice. Once upon a time Winamp had a functional preferences slider that controlled the "Shuffle Morph Rate" and I can imagine it likely used a similar algorithm to shuffle.

I only wish this existed in more software in general...and that music players would let you select what method the randomization is achieved with.

this post was submitted on 09 Dec 2023
736 points (98.8% liked)

Memes

45660 readers
1611 users here now

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

founded 5 years ago
MODERATORS