3 ms·
FWIW I hacked up a program over the years that I use to shuffle my music. It works on unix based boxes with perl and mpv available. It does the following: * Ke
by reddytowns 12y ago
FWIW I hacked up a program over the years that I use to shuffle my music. It works on unix based boxes with perl and mpv available. It does the following:
* Keeps track of songs already played, so songs heard recently won't be played as much as songs not played recently
* If Control-C is pressed while listening to a song, it will reduce the frequency the song is played
* If the song is listened through in its entirety, the frequency it will be played is increased
* Any new music just added will be given higher priority than old, already played stuff
* Songs from each directory are played more or less equally. So if you have 30 songs from the Beatles and 500 from Black Sabbath, you won't hear Black Sabbath 94% of the time.
* Keeps track of every time a song is played and whether it is liked or not, so if later you want to use this data for something else, you have it available.
You need to pass the songs to it's standard in, eg:
find /disc1/my_music -type f | the_player.pl
To stop listening, you need to hit Control-Z to stop it, and then kill the process.
Here it is: http://pastebin.com/N7vj1pSc http://pastebin.com/N7vj1pSc