flecs icon indicating copy to clipboard operation
flecs copied to clipboard

Add a better shuffle algorithm (suggestion)

Open YvesW opened this issue 3 years ago • 4 comments

I personally feel like shuffling my liked songs very often results in songs being played by the same artist in a row. Not entirely sure if youtube's algorithm is just shit, of that it actually uses e.g. Fisher-Yates shuffling but that it's just gambler's fallacy. However, implementing an algorithm based on e.g. http://keyj.emphy.de/balanced-shuffle/ or Floyd–Steinberg dithering would be very cool.

YvesW avatar Feb 13 '22 17:02 YvesW

From what I know the problem is that it only "shuffle" the current queue (which is max 50 songs)

no clue how to fix it without rewriting the whole music playing logic

Araxeus avatar Feb 14 '22 15:02 Araxeus

Hm, even if you use the shuffle button at the top? Thought it only did that if you clicked the shuffle in the player button.

afbeelding

YvesW avatar Feb 14 '22 19:02 YvesW

You're right, the shuffle icon at the top does shuffle the whole playlist from what I know

Araxeus avatar Feb 14 '22 21:02 Araxeus

You're right, the shuffle icon at the top does shuffle the whole playlist from what I know

Yeah, would be cool if an option could be added for changing to a "better" shuffling algorithm when using that shuffle button, but I've got no experience with shuffle algorithms or YT music myself, so no idea how difficult that'd be to implement. As an example, in my current queue I got 12 pentakill songs followed by 30 foo fighters songs, which is probably (close to) all the Foo Fighters songs I have on my liked list, so the currently used algorithm might also be broken.

YvesW avatar Feb 15 '22 04:02 YvesW