Q: dynamic playlist of unrated songs

Ben K mrmrpotatohead at gmail.com
Mon Jun 29 01:22:16 UTC 2009


Actually the last time I looked at the source, an unrated song IS the same
as a zero rating. The DB stores unrated songs' rating as zero, but it should
probably be null. If people are happy for this to change I'll see if I can
write a patch tonight.

On Mon, Jun 29, 2009 at 11:13 AM, D. R. Evans <doc.evans at gmail.com> wrote:

> Leo Franchi said the following at 06/28/2009 07:01 PM :
>
> >>
> >> Suppose I want to populate a playlist with random songs from the set
> >>  { unrated } ∪ { 5 stars }
> >> How would I do that?
> >>
> >> The closest I have been able to come seems to select with equal
> >> probability
> >> from the two sets { unrated } and { 5 stars }, which isn't the same
> >> thing
> >> at all :-(
> >
> > If you set two 100% proportional biases, you'll end up with a randomly
> > selected playlist that always picks from one of those two possible
> > conditions.
>
> Right; that's exactly what I did, with the results I described :-(
>
> Selecting with equal probability from two disjoint sets is not (in general)
> at all the same as selecting randomly from the union of those sets (an
> operation which was trivial in 1.4, and which is what I'm trying to do).
>
>  Doc
>
> --
> Web:  http://www.sff.net/people/N7DR
>
>
> _______________________________________________
> Amarok mailing list
> Amarok at kde.org
> https://mail.kde.org/mailman/listinfo/amarok
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/amarok/attachments/20090629/40ef37bb/attachment.html>


More information about the Amarok mailing list