INTERACT FORUM

More => Old Versions => Media Center 11 (Development Ended) => Topic started by: MrHaugen on May 11, 2006, 07:21:23 am

Title: Smartlist rating weight
Post by: MrHaugen on May 11, 2006, 07:21:23 am
Hello. I could need a little help on my weight system for the ratings.

I have rated all my songs 1-5 with a costum "half rating" yes or no field.
What I would like is to get a smartlist with 300% songs of 5 rating, 200% songs of 4.5 rating and 100% for 4 star ratings etc.

The only problem I got is that I will get more 4 rating songs that 5. Even though the few 5 star songs I got will be played up to 3 times... The reason is that I have much more 4 rating songs than 4.5 and 5. So I would have to limit as well I guess.

Today I just generate smartlists of several rating smartlists I got. I have 1 list for every rating step, and include this in all my smartlists.

Can anyone give me a few hints or solutions on this rating weight problem?
Title: Re: Smartlist rating weight
Post by: MrHaugen on May 12, 2006, 11:35:43 am
Have nobody done anything similar or what??
Title: Re: Smartlist rating weight
Post by: hit_ny on May 12, 2006, 03:04:16 pm
I have rated all my songs 1-5 with a costum "half rating" yes or no field.
What I would like is to get a smartlist with 300% songs of 5 rating, 200% songs of 4.5 rating and 100% for 4 star ratings etc.
I'm gonna guess that you want to hear

3 times as many 5 star
twice as many 4.5
once as many 4 stars

presumably the smartlist you use is

[Genre]=List_of_Genres ~mix=NUMBER_OF_FILES, 3, A, 2, B, 1, C

A is {[Rating]=5}
B is {[Half Rating]=[4.5] ~%=50}
C is {[Rating]=4}

Could using ~% modifier be the limit that works :)

...might need to tweak that 50 to get it right.

I used this thread (http://yabb.jriver.com/interact/index.php?topic=29940.msg206134#msg206134) for reference.
Title: Re: Smartlist rating weight
Post by: MrHaugen on May 12, 2006, 06:26:00 pm
Thanks, that helped alot!

I just tried this one out:

g=rock ~mix=60,3,A,2,B,1,C ~sort=random

Where
A = {Rating==5}
B = {(Rating==4 [Half Rating]=[Yes])}
C = {(Rating==4 [Half Rating]=[NO])}

That gives me 60 tracks. 30 of them 5 star, 20 at 4.5 star and 10 at 4 star. Sweet.

I understand the ~%=50 limits the tracks returned with 50%, but I don't exactly understand what it is good for in your example. B would just return with the same amount of tracks as C would it not?? 50% of 2 is 1. B=1=C  ? Looks like double use of track limiting.... (the 3,A,2,B,1,C and the use of ~%=xx) Am I not thinking straight here?

The only problem I get with my playlist now is when I pick a genre I have about 20 tracks of both 5 and 4 star. It looks like they will all be played 3 times.

Is there any way to shrink the number of tracks when there are not enough? I guess I would have to get ridd of the 60 after the mix= :) But what to replace it with?
Title: Re: Smartlist rating weight
Post by: hit_ny on May 13, 2006, 04:29:09 am
That gives me 60 tracks. 30 of them 5 star, 20 at 4.5 star and 10 at 4 star. Sweet.
Then that's where to leave it, the ~%= modifier is not necessary in this case.

The only problem I get with my playlist now is when I pick a genre I have about 20 tracks of both 5 and 4 star. It looks like they will all be played 3 times.

Is there any way to shrink the number of tracks when there are not enough? I guess I would have to get ridd of the 60 after the mix= :) But what to replace it with?
To shrink the list, could adding ~nodup=[Artist],[Name] at the end, help to cut down on repeats.
Title: Re: Smartlist rating weight
Post by: MrHaugen on May 13, 2006, 05:56:53 am
Yea. I'll drop the ~%= for now.

No duplicates worked like a charm. Not 100% what I wanted, but very very close.

So, thanks alot for your help!
Have a good day all