Rockbox.org home
releases
current build
extras FAQ
manual
wiki
docs index mailing lists
IRC
forums bugs
patches



Rockbox mail archive

Subject: Re: Ratings

Re: Ratings

From: John Bauman <john_at_baumanfamily.com>
Date: 2006-02-20

----- Original Message -----
From: "Brent Coutts" <c0utta@hotmail.com>
To: <rockbox@cool.haxx.se>
Sent: Sunday, February 19, 2006 6:58 PM
Subject: Ratings
>
> 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
two possibilities:
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.
Sorry.

John Bauman
Received on Mon Feb 20 01:51:48 2006


Page was last modified "Mar 9 2008" The Rockbox Crew