՝#Ztr>,$num(%tracknumber%,2)),::) i $if(%_is_first%, 737373|737373|000000|525252|000000||0000FF||0000FF, 737373|737373|FFFFFF|E2E2E2 )  Foobar Database;*-a-*  Title & Length|$if(%title%,$if($strcmp(1,%various%),[%artist% :: ][%title%],%title%),%_filename_ext%) $tab() [737373|737373%_length%]e$if(%_is_first%, FFFFFF|FFFFFF|000000|525252|000000||0000FF||0000FF, 000000|000000|FFFFFF|E2E2E2 )$num(%tracknumber%,2) Foobar Database;*-a-*  7$if(%_isplaying%,0000FF|0000FF>>>>,6E6E6E|6E6E6E::)000000|000000|FFFFFF|FFFFFF *-s-*;Internet Radio;Default  Title[%title%]$tab()[%_length%] M$if(%_isplaying%,FFFFFF|FFFFFF|000000|616161,000000|000000|FFFFFF|E2E2E2) %title% *-s-*;Internet Radio;Default  Hotness$if(%_is_first%, $blend(C5C5C5|C5C5C5,0000FF|0000FF,%_hotness%,100) $repeat('lllll',$if(%rating%,%rating%,2)) , $blend(000000|000000,0000FF|0000FF,%_hotness%,100) $repeat('lllll',$if(%rating%,%rating%,2)) )e$if(%_is_first%,FFFFFF|FFFFFF|000000|000000|000000||0000FF|000000|0000FF,FFFFFF|FFFFFF|FFFFFF|FFFFFF) %_hotness%d Foobar Database;*-a-* 2 kt al ar g y #$if(%_is_first%, $if(%title%,FFFFFF|FFFFFF√,0000FF|0000FF'x') $if(%album%,FFFFFF|FFFFFF√,0000FF|0000FF'x') $if(%artist%,FFFFFF|FFFFFF√,0000FF|0000FF'x') $if(%genre%,FFFFFF|FFFFFF√,0000FF|0000FF'x') $if(%date%,FFFFFF|FFFFFF√,0000FF|0000FF'x') $if(%tracknumber%,FFFFFF|FFFFFF√,0000FF|0000FF'x') , $if(%title%,000000|000000√,0000FF|0000FF'x') $if(%album%,000000|000000√,0000FF|0000FF'x') $if(%artist%,000000|000000√,0000FF|0000FF'x') $if(%genre%,000000|000000√,0000FF|0000FF'x') $if(%date%,000000|000000√,0000FF|0000FF'x') $if(%tracknumber%,000000|000000√,0000FF|0000FF'x') ) g$if(%_is_first%,FFFFFF|FFFFFF|000000|000000|000000||0000FF|0000FF|0000FF,000000|000000|FFFFFF|FFFFFF) $if(%title%,1,2) $if(%artist%,1,2) $if($or(%album%,%venue%),1,2) $if(%tracknumber%,1,2) $if(%date%,1,2) $if(%genre%,1,2) $if(%publisher%,1,2) $if(%conductor%,1,2) $if(%comment%,1,2)\ Foobar Database;*-a-* # Hotnessa$blend(000000|000000,0000FF|0000FF,%_hotness%,100) $repeat('lllll',$if(%rating%,%rating%,2))FFFFFF|FFFFFF|FFFFFF|FFFFFF %_hotness%d *-s-*;Default d t al ar g y #E $if(%title%,000000|000000√,0000FF|0000FF'x') $if(%album%,000000|000000√,0000FF|0000FF'x') $if(%artist%,000000|000000√,0000FF|0000FF'x') $if(%genre%,000000|000000√,0000FF|0000FF'x') $if(%date%,000000|000000√,0000FF|0000FF'x') $if(%tracknumber%,000000|000000√,0000FF|0000FF'x')000000|000000|FFFFFF|FFFFFF$if(%title%,1,2) $if(%artist%,1,2) $if($or(%album%,%venue%),1,2) $if(%tracknumber%,1,2) $if(%date%,1,2) $if(%genre%,1,2) $if(%publisher%,1,2) $if(%conductor%,1,2) $if(%comment%,1,2)\ *-s-*;Default # Gap2FFFFFF|FFFFFF|FFFFFF|FFFFFF  Foobar Database;*-a-*   $if($strcmp($tracknumber(),01),is_first=1) $if($strcmp($tracknumber(),02),is_second=1) $if($strcmp($tracknumber(),03),is_third=1) $if($strcmp($tracknumber(),04),is_fourth=1) $if($strcmp($tracknumber(),05),is_fifth=1) $if($strcmp($tracknumber(),06),is_sixth=1) $if($strcmp($tracknumber(),07),is_seventh=1) Codec= $replace($codec(),'Vorbis','Ogg',codec(),'Monkey$char(27)s Audio','APE') %__bitrate% kbps$if([%__extrainfo%],' VBR',$if($stricmp($codec(),'MP3'),' CBR')) $puts(folder,$replace($trim($caps2(%__directoryname%)),'_',' ','%20',' ',' ',' ')) ///////////////////////////////////////// // HOTNESS - an algorithm for meta-rating // hourly decay version ///////////////////////////////////////// // baselines: define baseline frequency and decay periods // // baselinefrequency: decrease if songs stay hot too long // baselinedecay: decrease if too many songs are hot // $puts(baselinefrequency,20) $puts(baselinedecay,14) // default rating for unrated songs $puts(avgrating,3) // convert baselines to hours $puts(baselinefrequency,$mul($get(baselinefrequency),24)) $puts(baselinedecay,$mul($get(baselinedecay),24)) // calculate "age": the number of hours the song has been in the library $if(%added%, $puts(age, $sub( $add( $mul( $add( $mul($right(%_system_year%,2),365), $select(%_system_month%,0,31,59,90,120,151,181,212,243,273,304,334), $add($div($right(%_system_year%,2),4),$if($or($greater(%_system_month%,2),$greater($mod(%_system_year%,4),0)),1,0)), %_system_day% ), 24 ), %_system_hour% ) , $mul( $add( $mul($substr(%added%,3,4),365), $select($substr(%added%,5,6),0,31,59,90,120,151,181,212,243,273,304,334), $add($div($substr(%added%,3,4),4),$if($or($greater($substr(%added%,5,6),2),$greater($mod($substr(%added%,1,4),4),0)),1,0)), $right(%added%,2) ), 24 ) ) ) , $puts(age,$mul(%play_counter%,$get(baselinefrequency))) ) // calculate "recentness": number of hours since song was last played $puts(recentness, $sub( $add( $mul( $add( $mul($right(%_system_year%,2),365), $select(%_system_month%,0,31,59,90,120,151,181,212,243,273,304,334), $add($div($right(%_system_year%,2),4),$if($or($greater(%_system_month%,2),$greater($mod(%_system_year%,4),0)),1,0)), %_system_day% ), 24 ), %_system_hour% ) , $add( $mul( $add( $mul($substr(%last_played%,3,4),365), $select($substr(%last_played%,6,7),0,31,59,90,120,151,181,212,243,273,304,334), $add($div($substr(%last_played%,3,4),4),$if($or($greater($substr(%last_played%,6,7),2),$greater($mod($substr(%last_played%,1,4),4),0)),1,0)), $substr(%last_played%,9,10) ), 24 ), $substr(%last_played%,12,13) ) ) ) // calculate "decay": the specific decay period $puts(decay,$div($mul(%play_counter%,$get(baselinefrequency),$get(baselinedecay),$if2(%rating%,$get(avgrating))),$mul($max($get(age),$get(baselinefrequency)),3))) // calculate "hotness" hotness=$div($mul($max($sub($get(decay),$get(recentness)),0),100),$get(decay))000000|555555|$if(%_isplaying%,$rgb(220,220,220),$rgb(255,255,255))|$if(%_isplaying%,$rgb(204,208,212),$rgb(230,234,238))|$if(%_isplaying%,$rgb(204,208,212),$rgb(240,244,248))     <"Calibri<"Segoe UI<AvantGarde LT Medium<"CalibriF$iflonger(%_path%,169,$left(%_path%,59).... %_filename_ext%,%_path%) >[%artist% • ]$if2(%title%,%_filename_ext%) ['('%_LENGTH%')']%_foobar2000_version%