Rockbox mail archive
Subject: Re: Ratings
----- Original Message -----
From: "Brent Coutts" <email@example.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 Mon Feb 20 01:51:48 2006
Page was last modified "Jan 10 2012" The Rockbox Crew