Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide
translations



Rockbox mail archive

Subject: Re: Ratings

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>
To: <rockbox_at_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 2006-02-20

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy