This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Algorithm to compute score of a song

Tags: None
(comma "," separated)
Jason Mercer
Karma
0
Hi there

I have a pretty good feel for how the score of a song works. If it\'s played all the way through it\'s score goes up. If it\'s cancelled before it\'s complete, it\'s score goes down.

I just noticed one thing though, I was playing a song and it was near the end and I wanted to hear it again so I double clicked it in the playlist and it\'s score went from 93 to 91. By the alg above, this is unexpected, but it doesn\'t make sense. I think that if a song\'s play is cancelled but the next song to play is the same one, it should count as a song played to completion.

Version is 1.3-CVS, looks like it\'s from may 4th or there abouts.

On the same topic, it would be nice to be able to set a song\'s score manually. For instance, I may have a song that I played to death. It once rocked. Now I can\'t stand it. I can queue it up and cancel it over and over and over, but a way to set it\'s score, or reset it\'s score to the base would be nice. It wouldn\'t show up in party mode as much.
greyhound
Karma
0
a way to set it\'s score, or reset it\'s score to the base would
be nice


Select the song, then right mouse click over the score. You\'ll get a menu choice that lets you type in whatever score you want.

hth,
john
Jason Mercer
Karma
0
Right you are, under the meta-info. Thanks.
User avatar
oggb4mp3
Registered Member
Posts
166
Karma
0
Jason Mercer wrote:
Hi there

I have a pretty good feel for how the score of a song works. If it\'s played all the way through it\'s score goes up. If it\'s cancelled before it\'s complete, it\'s score goes down.

I just noticed one thing though, I was playing a song and it was near the end and I wanted to hear it again so I double clicked it in the playlist and it\'s score went from 93 to 91. By the alg above, this is unexpected, but it doesn\'t make sense. I think that if a song\'s play is cancelled but the next song to play is the same one, it should count as a song played to completion.


The algorithm is as follows:

First play
(50 + (% played to completion)) / 2

So a song that is played completely the first time it is played starts it\'s life at 75. If you only play a song half way, it will get a score of 50.

Every subsequent play:
((current score) * (# of plays) + (% played to completion)) / ((# of plays) + 1)

So, in this case, if the score was 93, you must have played the song to less than 89% to the end, since (89+93)/2 = 91 (assuming you only played the song once before)

Of course, the more times you played it, the less complete the play would have had to be for it to lower the score. For instance, if the song had been played twice, the % would have had to be 86%. HTH


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar