Suggestion: playtime statistics

Greg Meyer greg at gkmweb.com
Tue Jun 27 23:31:23 UTC 2006


On Tuesday 27 June 2006 3:05 pm, Christer Ekholm wrote:
> >> I have a suggestion. I think it would be useful to keep a statistic
> >> for each track the total time it has been played. The reason is to
> >> have fair comparision between long tracks and short tracks.
> >
> > If you are using the standard method of scoring tracks, I think
> > (playcount - 1) * score * tracklength will get you there.
>
> I calculated that for some tracks, and it looks like it could be
> right.  But what about tracks played only once? And I would alos like
> to see that number in the playlist, or use it in a smartplaylist.
>
that would be [(score * 2) - 50] * length

> Is the scoreformula documented somewhere?
>
I don't think it is documented in the handbook, but I think there was a forum 
thread that detailed it.  It is basically as follows:

First play = (50 + percentage of length played) divided by 2

    This means a song played from beginning to end will 
    get an initial score of 75

Thereafter = (percentage played + playcount*oldscore)/playcount + 1

so a song played for the third time that had a score of 80 will score a 87

    80 * 2 = 160 + 100 =260 / 3 = 86.7

> Can I modify it?
You will be able to in 1.4.1.  The new version will allow a custom scoring 
script to disable automatic scoring/
-- 
Greg



More information about the Amarok mailing list