Rockbox mail archiveSubject: Re: Ratings
From: John Bauman <john_at_baumanfamily.com>
Date: Sun, 19 Feb 2006 19:50:41 -0500
----- Original Message -----
From: "Brent Coutts" <c0utta_at_hotmail.com>
Sent: Sunday, February 19, 2006 6:58 PM
> I've done enough maths at Uni to understand the Mersenne Twister, but I
> can't see that this can be modified to have one entry per MP3 but allow
> the rating to influence the frequency - sort of defeats the purpose of the
> whole concept of the Twister anyway.
It couldn't be done without modifying the code itself, but I can think of
A) After finding the file, generate a random number from 1-5, and use this
to determine whether to play this song, or find another: if the number is <=
the rating, play the song, otherwise find a new file and repeat the process.
B) Create five playlists, each with a different priority, and then add each
playlist to a metaplaylist, such that the playlist with five-star items is
added five items. Then, each time, select a random playlist from the
metaplaylist, and select a random file from the playlist.
Of course, both of these suggestions involve modifying the rockbox code
(possible drastically, I don't know), so they aren't really that helpful.
Received on 2006-02-20