Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Autoplaylist: Sort by Hotness? (Read 3085 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Autoplaylist: Sort by Hotness?

hey,

is it possible to generate an autoplaylist from hotness and sort it by it?

thx


Autoplaylist: Sort by Hotness?

Reply #2
hi,

thank you for the link. that sounds quiet good. we'll hope...

Autoplaylist: Sort by Hotness?

Reply #3
Actually, using foo_playlist_tree, I was able to squeeze the Hotness code into a single line to be put in the "Population Order" field of a query.

This is very rough, and the first 200 or so characters will have to be customized to fit your statistics tag names, but I'll paste it anyway.

Code: [Select]
$puts(baselinefrequency,45)$puts(baselinedecay,28)$puts(lp,[%last_played_ci%])$puts(fp,[%first_played_ci%])$puts(pc,[%play_count_ci%])$puts(rating,[%rating%])$puts(avgrating,3)$puts(baselinefrequency,$mul($get(baselinefrequency),24))$puts(baselinedecay,$mul($get(baselinedecay),24))$puts(lp_age,$add($substr($get(lp),12,13),$mul(24,$cwb_datediff($get(lp),2000-01-01))))$puts(fp_age,$add($substr($get(fp),12,13),$mul(24,$cwb_datediff($get(fp),2000-01-01))))$puts(age,$sub($get(lp_age),$get(fp_age)))$puts(now_age,$add($substr(%cwb_systemdatetime%,12,13),$mul(24,$cwb_datediff(%cwb_systemdate%,2000-01-01))))$puts(recentness,$sub($get(now_age),$get(lp_age)))$puts(decay,$div($div($mul($get(pc),$get(baselinefrequency),$get(baselinedecay),$if2($get(rating),$get(avgrating)),100),$mul($max($get(age),$get(baselinefrequency)),$get(avgrating))),100))$puts(rawhotness,$div($mul($max($sub($get(decay),$get(recentness)),0),1000),$get(decay)))$puts(forecast,$div($mul($max($sub($get(decay),$add($div($max(0,$sub($get(baselinedecay),$get(recentness))),2),$get(recentness))),0),1000),$get(decay)))$num($div($add($get(rawhotness),$get(forecast)),2),4)

I plan to update the Hotness thread with this code as well, and make it a little more friendly.

 

Autoplaylist: Sort by Hotness?

Reply #4
hey!

thank you very much - this sounds good. i'll try it.

greets