~%=50 - This means, once you have the results, just give me half of them, discard the other half. It keeps the top half, so sorting is important. Having specified sorting rules to get at the files you want for that particular part of the mix, their order is subsequently randomised.
~sort=[number plays],[last played]-d,[date imported]-d - These push least played stuff to the top of the list, so they get caught by the ~%=50 rule. As you play these more, they will drop down the list, and new stuff will become "least played" and so the list remains fresh, automatically.
Still something very strange with this smartlist. Regardless of what total number of tracks I ask for at the start of the Mix parameter - I never actually get that number of tracks. It's always less.
Here what it current looks like:
[Media Type]=[audio] +[Chart]=[Billboardİ Rock Tracks] -[Style]=[Alternative Metal],[Hard Rock],[Heavy Metal],[Pop Adult]
~mix=40
,50%,{[rating]= 4,5 [date (year)]=2005-2016 ~sort=[number plays],[Last Played]-d,[date imported]-d ~%=50 ~sort=random}
,20%,{[rating]= 4,5 [date (year)]=1995-2004 ~sort=[number plays],[Last Played]-d,[date imported]-d ~%=50 ~sort=random}
,15%,{[rating]= 4,5 [date (year)]=1985-1994 ~sort=[number plays],[Last Played]-d,[date imported]-d ~%=50 ~sort=random}
,10%,{[rating]= 4,5 [date (year)]=1975-1984 ~sort=[number plays],[Last Played]-d,[date imported]-d ~%=50 ~sort=random}
,5%,{[rating]= 4,5 [date (year)]=<1975 ~sort=[number plays],[Last Played]-d,[date imported]-d ~%=50 ~sort=random}
~nodup=[Artist]
If I ask for 20 tracks as originally stated - I get 17. If I ask for 40 - I get 32.
Also - I am specifically targetting tracks with ratings of 4 or 5 - but am seeing tracks returned with a rating of 1 etc.
Do the items at the top of the constuct take priority? In my case I am targetting ONLY tracks tagged with a chart = "Billboard Rock Tracks" and am dropping a few styles that I do not want to appear.
But I have a ton of tracks that meet the "chart" requirement - without having to resort to getting one with a rating of 1?
Thoughts?
VP