Help - Search - Members - Calendar
Full Version: trackinfo mod
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
shrinky
can anyone explain how to enable the last played/times played... and my times info doesnt update every second... it just stays at 0%

thanks

CODE
// CONFIGURE COLORS
// *****************

// BACKGROUND COLOR
// --------------------------
// $puts(background,$rgb(0,0,0))

$puts(background,000000)


// HEAD TITLES LEFT OR CENTER
// -------------------------------------
// 0-Left, 1-Right
$puts(format,0)


// FORMAT LEFT HEAD
// ------------------------
// is used in Left Format
$puts(head_char,$char(9642))
//$puts(head_char,●)
$puts(head_lenght,25)
//
// SPECIAL COLOR
// $puts(head_special,0CEBA4)
$puts(head_special,$rgb(157,194,203))


// INFO HEADING COLOR > Ex: "Song Info"
// --------------------------------------------------
$puts(head,$rgb(255,250,216))

//$puts(head,F9F5D4)


// INFO ITEMS COLOR > Ex: "Artist:"
// ------------------------------------------
// $puts(info,$rgb(255,255,255))

$puts(info,D7B997)


// RESULT ITEM COLOR > Ex: "Vivaldi"
// -------------------------------------------
// $puts(result,$rgb(255,255,255))

$puts(result,F3EAE0)


// SPECIAL COLOR > Ex: "4:20" for highlight time, bitrate, title
// ------------------------------------
//$puts(high,$rgb(255,255,255))

$puts(high,FFFFFF)




// Day Conversion
$puts(day,$substr(%last_played%,9,10))
$if(%last_played%,
$if($strcmp($left($get(day),1),0),$puts(day,$right($get(day),1))))
$if($strcmp($get(day),11),$puts(xx,th),
$if($strcmp($get(day),12),$puts(xx,th),
$if($strcmp($get(day),13),$puts(xx,th),
$if($strcmp($right($get(day),1),1),$puts(xx,st),
$if($strcmp($right($get(day),1),2),$puts(xx,nd),
$if($strcmp($right($get(day),1),3),$puts(xx,rd),
$puts(xx,th)))))))

// Month Conversion
$puts(month,$substr(%last_played%,6,7))
$puts(month_name,$select($get(month),
Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec))

// Year Conversion
$puts(year,$substr(%last_played%,1,4))

// Time Conversion
$puts(hour,$substr(%last_played%,12,13))
$puts(min,$substr(%last_played%,14,16))
$puts(sec,$substr(%last_played%,17,19))

// 24 Hour to 12 Hour Conversion
$if($strcmp($left($get(hour),1),0),$puts(hour1,$right($get(hour),1)))
$if($strcmp($left($get(hour),1),1),$puts(hour1,$sub($get(hour),12)))
$if($strcmp($left($get(hour),1),2),$puts(hour1,$sub($get(hour),12)))
$if($strcmp($get(hour),00),$puts(hour1,12))
$if($strcmp($get(hour),10),$puts(hour1,10))
$if($strcmp($get(hour),11),$puts(hour1,11))
$if($strcmp($get(hour),12),$puts(hour1,12))

// AM/PM Conversion
$if($strcmp($get(hour),00),$puts(yy,am))
$if($strcmp($get(hour),10),$puts(yy,am))
$if($strcmp($get(hour),11),$puts(yy,am))
$if($strcmp($get(hour),12),$puts(yy,pm))
$if($strcmp($get(hour),24),$puts(yy,am))
$if($strcmp($left($get(hour),1),0),$puts(yy,am))
$if($strcmp($left($get(hour),1),1),$puts(yy,pm))
$if($strcmp($left($get(hour),1),2),$puts(yy,pm))

// Date Format
$puts(time_of_year,$get(month_name) $get(day)$get(xx)',' $get(year))

// Time Format
$puts(time_of_day,$get(hour1)$get(min)$get(sec) $get(yy))















// ___________________
// PROGRESS BAR CONFIG
// ********************

// PROGRESS BAR COLORS
// ------------------------------

$puts(progress_color1,$rgb(157,194,203))
$puts(progress_color2,$rgb(255,250,216))


// PROGRES BAR LENGH & CHAR
// -------------------------------------
// $puts(progress_char,$char(9642))
// $puts(progress_char,█)
$puts(progress_char,●)
$puts(progress_length,20)


//
// SYMBOL FOR ACCURATE LENGTH
// ----------------------------------------
// $puts(head_char,$char(9642))

$puts(accurate_char,●)


//
// ___
// END
// ***
//
// __________
// CODE START:
// ***********
//

// MODE
// *****
//DCAE8DMode: %_trackinfo_mode%
//$char(10)

//
// NO TRACK
// ********
$if(%_trackinfo_notrack%,
//$char(1)C$get(head)%_foobar2000_version% $char(10)$get(high)

// if track selected
,
//
//
// TRACK INFO
// **********
//
$if($strcmp($get(format),0),
// LEFT FORMAT
$get(head_special)$get(head_char)$get(head_char)$get(head) TRACK INFO $transition($repeat($get(head_char),$get(head_lenght)),$get(head_special),$get(background))
,
// CENTER FORMAT TEXT
$char(1)C$get(head)Song Info )

//$char(10)
$if(%artist%,$char(10)$get(info)Artist: $get(result)$caps2(%artist%),)

//$if(%title%,$char(10)$get(info)Title: $get(high)$caps2(%title%),)
//
// SPECIAL FOR REMIXES
// ******************
// TITLE CONTROL FOR CD
//
$if(%title%,$if($stricmp(%__codec%,CDDA),,$char(10)$get(info)Title:
$if(%_isplaying%,
// ADD REMIX MOD
$replace($get(high)$caps2(%title%),'(',$get(result)'(',')',')'$get(result)),$replace($get(high)$caps2(%title%),'(',$get(result)'(',')',')'$get(high)))),)


$if(%album artist%,$char(10)$get(info)Performer: $get(result)$caps2(%album artist%),)

$if(%album%,$char(10)$get(info)Album: $get(result)$caps2(%album%),)

$if(%tracknumber%,$char(10)$get(info)Track: $get(result)%tracknumber%,)

$if(%date%,$char(10)$get(info)Date: $get(result)%date%,)

$if(%genre%,$char(10)$get(info)Genre: $get(result)$caps(%genre%),)

$if(%partinset%,$char(10)$get(info)Set: $get(result)$caps(%partinset%),)

$if(%__path_volumelabel%,$char(10)$get(info)Label: $get(result)$caps(%__path_volumelabel%),)

$if(%comment%,$char(10)$get(info)Comments: $get(result)$if($greater($len(%comment%),33),$cut(%comment%,33)...,%comment%),)

//
//
// NO MP3-OGG ID3 TAGS
// *******************
//
$if(%artist%,,$if(%title%,,$if(%album%,,$if(%tracknumber%,,$if(%date%,,$if(%genre%,,$if(%comment%,,
$if(%_filename%,$char(10)$get(info)File: $get(high)$caps2(%_filename%),)
//$char(10)
$char(10)$get(info)Directory: $get(result)$if(%_directoryname%,%_directoryname%,$cut(%_path%,3))

$char(10)$get(info)Path: $get(result)%_path%
//%_path_raw%
)))))))

//
//
//
// STREAMING SPECIAL
// *****************
//
$if(%_isplaying%,$if(%_time_total%,,$char(10)$get(info)Location: $get(result)%_path%),)
//
//
$char(10)

//
//
// TECH INFO
// **********
//
$if($strcmp($get(format),0),
// LEFT FORMAT
$get(head_special)$get(head_char)$get(head_char)$get(head) TECH INFO $transition($repeat($get(head_char),$get(head_lenght)),$get(head_special),$get(background))
,
// CENTER FORMAT TEXT
$char(1)C$get(head)Tech Info
)
$char(10)

$if(%_isplaying%,,$if(%_length%,$get(info)Time: $get(result)%_length%$char(10),))
//
// CODEC
// ******
$if(%__codec%,$get(info)Codec: $get(result)$caps2(%__codec%)
$if(%__extrainfo%, '('$caps2(%__extrainfo%)')',)$char(10),)
// DESCRIPTION LIST OF CODEC
// ************************
$if($stricmp(%__codec%,MP3),$get(info)Description: $get(result)MPEG-1 Audio Layer 3$char(10),)
$if($stricmp(%__codec%,AAC),$get(info)Description: $get(result)Advanced Audio Coding$char(10),)
$if($stricmp(%__codec%,FLAC),$get(info)Description: $get(result)Free Lossless Audio Codec$char(10),)
$if($stricmp(%__codec%,ATSC A/52),$get(info)Description: $get(result)Dolby Digital AC3$char(10),)
$if($stricmp(%__codec%,Vorbis),$get(info)Description: $get(result)$caps($ext(%_filename_ext%)) File$char(10),)
$if($stricmp(%__codec%,PCM),$get(info)Description: $get(result)Wave$char(10))
$if($or($stricmp($ext(%_filename_ext%),mka),$stricmp($ext(%_filename_ext%),mkv)),$get(info)Description: $get(result)Matroska$char(10),)
$if($stricmp($cut(%__codec%,6),Monkey),$get(info)Description: $get(result)Lossless Audio Compressor$char(10),)
$if($stricmp(%__codec%,Musepack),$get(info)Description: $get(result)MPEGPlus/MP+$char(10),)
$if($stricmp(%__codec%,MP2),$get(info)Description: $get(result)MPEG-1 Audio Layer 2$char(10),)
$if($stricmp(%__codec%,CDDA),$get(info)Description: $get(result)CD Digital Audio$char(10),)

// BITRATE
$get(info)Bitrate: $get(result)$if(%__bitrate_dynamic%,$if(%_isplaying%,$select($add($mod(%_time_elapsed_seconds%,2),1),%__bitrate_dynamic%,$get(high)%__bitrate_dynamic%),%__bitrate_dynamic%),%__bitrate%) $get(result)Kbit/s$char(10)
//
// LAME PROFILE
// ************
//$if(%__lame_version%,$get(info)Preset: $get(result)$left(%__lame_version%,4) $right(%__lame_version%,4) [$upper(%__lame_profile%)]$if($greater(%__lame_profile_index%,0),%__lame_profile_index%,)$if(%__mp3_accurate_length%,$get(accurate_char),)$char(10),)
$if(%__lame_version%,$get(info)Preset: $get(result)$left(%__lame_version%,4) $right(%__lame_version%,4) [$upper(%__lame_profile%)]$if($greater(%__lame_profile_index%,0),%__lame_profile_index%,)$if(%__mp3_accurate_length%,$get(accurate_char),)$char(10),)
$if($greater(%__lame_profile_index%,0),$get(info)Profile: $get(result)$select(%__lame_profile_index%,R3Mix,Extreme,Standard,Fast Standard,Fast Extreme,Insane)$char(10),)

)
// LAME DELAY/PADDING
$if(%__enc_delay%,$get(info)Enc Del/Pad: $get(result)%__enc_delay% / %__enc_padding%$char(10),)
// MONKEYS AUDIO APE
$if(%__version%,$get(info)Preset: $get(result)$upper($if2($ext(%__referenced_file%),$ext(%_path%))) %__version%$char(10),)
$if(%__compression%,$get(info)Profile: $get(result)%__compression%$if(%__flags%, / %__flags% Flags,)$char(10),)
// FLAC VENDOR
$if(%__flac_vendor%,$get(info)Encoder: $get(result)$if($stricmp(%__flac_vendor%,reference libFLAC 1.1.2 20050205),FLAC 1.1.2 -8,$substr(%__flac_vendor%,14,23))$char(10),)
// VORBIS BITRATE NOMINAL
$if(%__bitrate_nominal%,$get(info)Nominal: $get(result)%__bitrate_nominal% Kbit/s$char(10),)
// VORBIS VERSION
$if(%__vorbis_vendor%,$get(info)Preset: $get(result)$cut(%__vorbis_vendor%,8)$if(%__vorbis_version%, %__vorbis_version%,)$char(10),)
// MUSEPACK
$if(%__mpc_encoder%,$get(info)Preset: $get(result)$upper($if2($ext(%__referenced_file%),$ext(%_path%))) %__mpc_encoder% $if($greater(%__mpc_streamversion%,0),%__mpc_streamversion%,)$if(%__mpc_accurate_length%,$get(accurate_char),)$char(10),)
$if(%__mpc_profile%,$get(info)Profile: $get(result)%__mpc_profile%$char(10),)
// AAC PROFILE
$if(%__aac_profile%,$get(info)Profile: $get(result)%__aac_profile%$char(10),)

// COMRPESSION
$if($greater($muldiv(%__bitrate%,100,1411),0),$if($strcmp($muldiv(%__bitrate%,100,1411),100),,$get(info)Compression: $get(result)$div(1411,%__bitrate%).$substr($muldiv(1411,100,%__bitrate%),2,3):1 '('$sub(100,$muldiv(%__bitrate%,100,1411))'%)'$char(10)),)
// SAMPLERATE
$if(%__samplerate%,$get(info)Samplerate: $get(result)%__samplerate% Hz$char(10),)
//$get(info)Channels: $get(result)$if(%__channels%,$ifgreater(%__channels%,2,%__channels%ch,$ifgreater(%__channels%,1,' 'Stereo,''Mono)),)$char(10)
// CHANELS
// for Joint Stereo, 4Ch or 5.1/7.1
$if(%__channels%,$get(info)Channels: $get(result)$if($stricmp($codec(),MP3),$get(space2)$caps(%__mp3_stereo_mode%),$if(%__channels%,$ifgreater(%__channels%,1,Stereo,Mono),$if($strcmp(%__channels%,4),4 Ch,$sub(%__channels%,1)'.1' Ch)))$char(10),)
// BITDEPTH
$if(%__bitspersample%,$get(head)$get(info)Bitdepth: $get(result)%__bitspersample% bits/sample$char(10),)
// FILE SIZE
$if($greater(%_filesize%,0),$if($stricmp($upper($ext(%_path%)),CUE),$get(info)Font: $get(result)Cue File$char(10),$get(info)Size: $get(result)$div(%_filesize%,1048576).$num($muldiv($mod(%_filesize%,1048576),100,1048576),2) MB$char(10)),)

//
//
//
// MORE INFO
// **********
//
//$char(1)C$get(head)Special Info $char(10)
$if($or(%__replaygain_track_gain%,%__replaygain_album_gain%,%last_played%,%play_counter%,%rating%),
//$char(10)

// MORE INFO
// **********
$if($strcmp($get(format),0),
// LEFT FORMAT
$get(head_special)$get(head_char)$get(head_char)$get(head) USER INFO $transition($repeat($get(head_char),$get(head_lenght)),$get(head_special),$get(background))
,
// CENTER FORMAT TEXT
$char(1)C$get(head)User Info
)
$char(10)
$if(%__replaygain_track_gain%,$get(info)Track Gain: $get(result)%__replaygain_track_gain%$char(10),)
$if(%__replaygain_album_gain%,$get(info)Album Gain: $get(result)%__replaygain_album_gain%$char(10),)
$if(%last_played%$get(info)Last Played: $get(result)%last_played%$char(10),)
$if(%play_counter%,$get(info)Nš Times: $get(result)%play_counter%$char(10),)
$if(%rating%,$get(info)Rating: $get(result)%rating% / $get(high)5$char(10),)
,)

//$char(10)
//
// WHEN PLAYING
// ************
//
$if(%_isplaying%,
//
// SONG PLAYING
// *************
//
$if($strcmp($get(format),0),
// LEFT FORMAT
$get(head_special)$get(head_char)$get(head_char)$get(head) $if(%_time_total%,TIME INFO,STREAMING ) $transition($repeat($get(head_char),$get(head_lenght)),$get(head_special),$get(background))
,
// CENTER FORMAT TEXT
$char(1)C$select($add($mod(%_time_elapsed_seconds%,2),1),$get(head)$if(%_time_total%,Time Info ,Streaming ),$get(head)Now Playing )
)
//$char(1)C$if(%_isplaying%,$select($add($mod(%_time_elapsed_seconds%,2),1),$get(head)$if(%_time_total%,Time Info ,Streaming ),$get(head)Now Playing ),)

$char(10)
$if(%_time_total%,$get(info)Total: $get(result)%_time_total%$char(10),)

$get(info)Elapsed: $get(result)$select($add($mod(%_time_elapsed_seconds%,2),1),$get(high)%_time_elapsed%,%_time_elapsed%)
$char(10)
$if(%_time_total%,$get(info)Remaining: $get(result)%_time_remaining%$char(10),)

$if(%_time_total%,$get(info)Listened: $get(result)$pad_right($muldiv(%_time_elapsed_seconds%,100,%_length_seconds%),3)'%',)
,)
$char(10)





//
//
//


// PREPARE COLOR-STRINGS
// =========================================
$puts(progress_color1a,$blend($get(progress_color1),000000,1,4.5))
$puts(progress_color2a,$blend($get(progress_color2),000000,1,5.7))
// progressbar
$puts(progressbar,
$if(%_length_seconds%,

$puts(progress,$muldiv(%_time_elapsed_seconds%,$get(progress_length),%_length_seconds%))
$transition($repeat($get(progress_char),$get(progress)),$get(progress_color1a),$get(progress_color1))
$transition($repeat($get(progress_char),$sub($get(progress_length),$get(progress))),$get(progress_color2a),$get(progress_color2))
$pad_right($muldiv(%_time_elapsed_seconds%,100,%_length_seconds%),3)'%'
,Streaming...
)
)
//
//
// PROGRESS BAR
// ------------------
//
$if(%_time_total%,
//
// NOW PLAYING
// **********
//
$if($strcmp($get(format),0),
// LEFT FORMAT
$get(head_special)$get(head_char)$get(head_char)$get(head) SEEKBAR $transition($repeat($get(head_char),$get(head_lenght)),$get(head_special),$get(background))
,
// CENTER FORMAT TEXT
$char(1)C$if(%_isplaying%,$select($add($mod(%_time_elapsed_seconds%,2),1),$get(head)Now Playing ,$get(progress_color2)Now Playing ),)
)

$char(10)$rgb(16,40,46)
$if(%_isplaying%,$char(1)C$get(head) $get(progressbar)$char(10),)
,)
//
// end progress bar
//

// end notrack info
)
ojdo
Of course, you need comments to set the Redraw Type:

CODE

// Global
...
// Background
...
// PerTrack
...
// PerSecond
...

And, please, edit your post and use a
CODE
[codebox]...[/codebox]

HTH
ojdo
shrinky
k, i added persecond, but the time shows up at the very top. how do i make persecond refresh but not display any text/numbers
Yotsuya
I took the liberty of adding the headers to your originally posted code myself. There was some weirdness concerning $char(1)C at the beginning of your progress bar, I don't know what that is about so I commented it out and I think this code is more or less what you were looking for:
CODE
// Global

// CONFIGURE COLORS
// *****************

// BACKGROUND COLOR
// --------------------------
// $puts(background,$rgb(0,0,0))

$puts(background,000000)


// HEAD TITLES LEFT OR CENTER
// -------------------------------------
// 0-Left, 1-Right
$puts(format,0)


// FORMAT LEFT HEAD
// ------------------------
// is used in Left Format
$puts(head_char,$char(9642))
//$puts(head_char,●)
$puts(head_lenght,25)
//
// SPECIAL COLOR
// $puts(head_special,0CEBA4)
$puts(head_special,$rgb(157,194,203))


// INFO HEADING COLOR > Ex: "Song Info"
// --------------------------------------------------
$puts(head,$rgb(255,250,216))

//$puts(head,F9F5D4)


// INFO ITEMS COLOR > Ex: "Artist:"
// ------------------------------------------
// $puts(info,$rgb(255,255,255))

$puts(info,D7B997)


// RESULT ITEM COLOR > Ex: "Vivaldi"
// -------------------------------------------
// $puts(result,$rgb(255,255,255))

$puts(result,F3EAE0)


// SPECIAL COLOR > Ex: "4:20" for highlight time, bitrate, title
// ------------------------------------
//$puts(high,$rgb(255,255,255))

$puts(high,FFFFFF)


// PerTrack

// Day Conversion
$puts(day,$substr(%last_played%,9,10))
$if(%last_played%,
$if($strcmp($left($get(day),1),0),$puts(day,$right($get(day),1))))
$if($strcmp($get(day),11),$puts(xx,th),
$if($strcmp($get(day),12),$puts(xx,th),
$if($strcmp($get(day),13),$puts(xx,th),
$if($strcmp($right($get(day),1),1),$puts(xx,st),
$if($strcmp($right($get(day),1),2),$puts(xx,nd),
$if($strcmp($right($get(day),1),3),$puts(xx,rd),
$puts(xx,th)))))))

// Month Conversion
$puts(month,$substr(%last_played%,6,7))
$puts(month_name,$select($get(month),
Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec))

// Year Conversion
$puts(year,$substr(%last_played%,1,4))

// Time Conversion
$puts(hour,$substr(%last_played%,12,13))
$puts(min,$substr(%last_played%,14,16))
$puts(sec,$substr(%last_played%,17,19))

// 24 Hour to 12 Hour Conversion
$if($strcmp($left($get(hour),1),0),$puts(hour1,$right($get(hour),1)))
$if($strcmp($left($get(hour),1),1),$puts(hour1,$sub($get(hour),12)))
$if($strcmp($left($get(hour),1),2),$puts(hour1,$sub($get(hour),12)))
$if($strcmp($get(hour),00),$puts(hour1,12))
$if($strcmp($get(hour),10),$puts(hour1,10))
$if($strcmp($get(hour),11),$puts(hour1,11))
$if($strcmp($get(hour),12),$puts(hour1,12))

// AM/PM Conversion
$if($strcmp($get(hour),00),$puts(yy,am))
$if($strcmp($get(hour),10),$puts(yy,am))
$if($strcmp($get(hour),11),$puts(yy,am))
$if($strcmp($get(hour),12),$puts(yy,pm))
$if($strcmp($get(hour),24),$puts(yy,am))
$if($strcmp($left($get(hour),1),0),$puts(yy,am))
$if($strcmp($left($get(hour),1),1),$puts(yy,pm))
$if($strcmp($left($get(hour),1),2),$puts(yy,pm))

// Date Format
$puts(time_of_year,$get(month_name) $get(day)$get(xx)',' $get(year))

// Time Format
$puts(time_of_day,$get(hour1)$get(min)$get(sec) $get(yy))


// PerSecond

// ___________________
// PROGRESS BAR CONFIG
// ********************

// PROGRESS BAR COLORS
// ------------------------------

$puts(progress_color1,$rgb(157,194,203))
$puts(progress_color2,$rgb(255,250,216))


// PROGRES BAR LENGH & CHAR
// -------------------------------------
// $puts(progress_char,$char(9642))
// $puts(progress_char,█)
$puts(progress_char,●)
$puts(progress_length,20)


//
// SYMBOL FOR ACCURATE LENGTH
// ----------------------------------------
// $puts(head_char,$char(9642))

$puts(accurate_char,●)


//
// ___
// END
// ***
//
// __________
// CODE START:
// ***********
//

// MODE
// *****
//DCAE8DMode: %_trackinfo_mode%
//$char(10)

//
// NO TRACK
// ********
$if(%_trackinfo_notrack%,
//$char(1)C$get(head)%_foobar2000_version% $char(10)$get(high)

// if track selected
,
//
//
// TRACK INFO
// **********
//
$if($strcmp($get(format),0),
// LEFT FORMAT
$get(head_special)$get(head_char)$get(head_char)$get(head) TRACK INFO $transition($repeat($get(head_char),$get(head_lenght)),$get(head_special),$get(background))
,
// CENTER FORMAT TEXT
$char(1)C$get(head)Song Info )

//$char(10)
$if(%artist%,$char(10)$get(info)Artist: $get(result)$caps2(%artist%),)

//$if(%title%,$char(10)$get(info)Title: $get(high)$caps2(%title%),)
//
// SPECIAL FOR REMIXES
// ******************
// TITLE CONTROL FOR CD
//
$if(%title%,$if($stricmp(%__codec%,CDDA),,$char(10)$get(info)Title:
$if(%_isplaying%,
// ADD REMIX MOD
$replace($get(high)$caps2(%title%),'(',$get(result)'(',')',')'$get(result)),$replace($get(high)$caps2(%title%),'(',$get(result)'(',')',')'$get(high)))),)


$if(%album artist%,$char(10)$get(info)Performer: $get(result)$caps2(%album artist%),)

$if(%album%,$char(10)$get(info)Album: $get(result)$caps2(%album%),)

$if(%tracknumber%,$char(10)$get(info)Track: $get(result)%tracknumber%,)

$if(%date%,$char(10)$get(info)Date: $get(result)%date%,)

$if(%genre%,$char(10)$get(info)Genre: $get(result)$caps(%genre%),)

$if(%partinset%,$char(10)$get(info)Set: $get(result)$caps(%partinset%),)

$if(%__path_volumelabel%,$char(10)$get(info)Label: $get(result)$caps(%__path_volumelabel%),)

$if(%comment%,$char(10)$get(info)Comments: $get(result)$if($greater($len(%comment%),33),$cut(%comment%,33)...,%comment%),)

//
//
// NO MP3-OGG ID3 TAGS
// *******************
//
$if(%artist%,,$if(%title%,,$if(%album%,,$if(%tracknumber%,,$if(%date%,,$if(%genre%,,$if(%comment%,,
$if(%_filename%,$char(10)$get(info)File: $get(high)$caps2(%_filename%),)
//$char(10)
$char(10)$get(info)Directory: $get(result)$if(%_directoryname%,%_directoryname%,$cut(%_path%,3))

$char(10)$get(info)Path: $get(result)%_path%
//%_path_raw%
)))))))

//
//
//
// STREAMING SPECIAL
// *****************
//
$if(%_isplaying%,$if(%_time_total%,,$char(10)$get(info)Location: $get(result)%_path%),)
//
//
$char(10)

//
//
// TECH INFO
// **********
//
$if($strcmp($get(format),0),
// LEFT FORMAT
$get(head_special)$get(head_char)$get(head_char)$get(head) TECH INFO $transition($repeat($get(head_char),$get(head_lenght)),$get(head_special),$get(background))
,
// CENTER FORMAT TEXT
$char(1)C$get(head)Tech Info
)
$char(10)

$if(%_isplaying%,,$if(%_length%,$get(info)Time: $get(result)%_length%$char(10),))
//
// CODEC
// ******
$if(%__codec%,$get(info)Codec: $get(result)$caps2(%__codec%)
$if(%__extrainfo%, '('$caps2(%__extrainfo%)')',)$char(10),)
// DESCRIPTION LIST OF CODEC
// ************************
$if($stricmp(%__codec%,MP3),$get(info)Description: $get(result)MPEG-1 Audio Layer 3$char(10),)
$if($stricmp(%__codec%,AAC),$get(info)Description: $get(result)Advanced Audio Coding$char(10),)
$if($stricmp(%__codec%,FLAC),$get(info)Description: $get(result)Free Lossless Audio Codec$char(10),)
$if($stricmp(%__codec%,ATSC A/52),$get(info)Description: $get(result)Dolby Digital AC3$char(10),)
$if($stricmp(%__codec%,Vorbis),$get(info)Description: $get(result)$caps($ext(%_filename_ext%)) File$char(10),)
$if($stricmp(%__codec%,PCM),$get(info)Description: $get(result)Wave$char(10))
$if($or($stricmp($ext(%_filename_ext%),mka),$stricmp($ext(%_filename_ext%),mkv)),$get(info)Description: $get(result)Matroska$char(10),)
$if($stricmp($cut(%__codec%,6),Monkey),$get(info)Description: $get(result)Lossless Audio Compressor$char(10),)
$if($stricmp(%__codec%,Musepack),$get(info)Description: $get(result)MPEGPlus/MP+$char(10),)
$if($stricmp(%__codec%,MP2),$get(info)Description: $get(result)MPEG-1 Audio Layer 2$char(10),)
$if($stricmp(%__codec%,CDDA),$get(info)Description: $get(result)CD Digital Audio$char(10),)

// BITRATE
$get(info)Bitrate: $get(result)$if(%__bitrate_dynamic%,$if(%_isplaying%,$select($add($mod(%_time_elapsed_seconds%,2),1),%__bitrate_dynamic%,$get(high)%__bitrate_dynamic%),%__bitrate_dynamic%),%__bitrate%) $get(result)Kbit/s$char(10)
//
// LAME PROFILE
// ************
//$if(%__lame_version%,$get(info)Preset: $get(result)$left(%__lame_version%,4) $right(%__lame_version%,4) [$upper(%__lame_profile%)]$if($greater(%__lame_profile_index%,0),%__lame_profile_index%,)$if(%__mp3_accurate_length%,$get(accurate_char),)$char(10),)
$if(%__lame_version%,$get(info)Preset: $get(result)$left(%__lame_version%,4) $right(%__lame_version%,4) [$upper(%__lame_profile%)]$if($greater(%__lame_profile_index%,0),%__lame_profile_index%,)$if(%__mp3_accurate_length%,$get(accurate_char),)$char(10),)
$if($greater(%__lame_profile_index%,0),$get(info)Profile: $get(result)$select(%__lame_profile_index%,R3Mix,Extreme,Standard,Fast Standard,Fast Extreme,Insane)$char(10),)

)
// LAME DELAY/PADDING
$if(%__enc_delay%,$get(info)Enc Del/Pad: $get(result)%__enc_delay% / %__enc_padding%$char(10),)
// MONKEYS AUDIO APE
$if(%__version%,$get(info)Preset: $get(result)$upper($if2($ext(%__referenced_file%),$ext(%_path%))) %__version%$char(10),)
$if(%__compression%,$get(info)Profile: $get(result)%__compression%$if(%__flags%, / %__flags% Flags,)$char(10),)
// FLAC VENDOR
$if(%__flac_vendor%,$get(info)Encoder: $get(result)$if($stricmp(%__flac_vendor%,reference libFLAC 1.1.2 20050205),FLAC 1.1.2 -8,$substr(%__flac_vendor%,14,23))$char(10),)
// VORBIS BITRATE NOMINAL
$if(%__bitrate_nominal%,$get(info)Nominal: $get(result)%__bitrate_nominal% Kbit/s$char(10),)
// VORBIS VERSION
$if(%__vorbis_vendor%,$get(info)Preset: $get(result)$cut(%__vorbis_vendor%,8)$if(%__vorbis_version%, %__vorbis_version%,)$char(10),)
// MUSEPACK
$if(%__mpc_encoder%,$get(info)Preset: $get(result)$upper($if2($ext(%__referenced_file%),$ext(%_path%))) %__mpc_encoder% $if($greater(%__mpc_streamversion%,0),%__mpc_streamversion%,)$if(%__mpc_accurate_length%,$get(accurate_char),)$char(10),)
$if(%__mpc_profile%,$get(info)Profile: $get(result)%__mpc_profile%$char(10),)
// AAC PROFILE
$if(%__aac_profile%,$get(info)Profile: $get(result)%__aac_profile%$char(10),)

// COMRPESSION
$if($greater($muldiv(%__bitrate%,100,1411),0),$if($strcmp($muldiv(%__bitrate%,100,1411),100),,$get(info)Compression: $get(result)$div(1411,%__bitrate%).$substr($muldiv(1411,100,%__bitrate%),2,3):1 '('$sub(100,$muldiv(%__bitrate%,100,1411))'%)'$char(10)),)
// SAMPLERATE
$if(%__samplerate%,$get(info)Samplerate: $get(result)%__samplerate% Hz$char(10),)
//$get(info)Channels: $get(result)$if(%__channels%,$ifgreater(%__channels%,2,%__channels%ch,$ifgreater(%__channels%,1,' 'Stereo,''Mono)),)$char(10)
// CHANELS
// for Joint Stereo, 4Ch or 5.1/7.1
$if(%__channels%,$get(info)Channels: $get(result)$if($stricmp($codec(),MP3),$get(space2)$caps(%__mp3_stereo_mode%),$if(%__channels%,$ifgreater(%__channels%,1,Stereo,Mono),$if($strcmp(%__channels%,4),4 Ch,$sub(%__channels%,1)'.1' Ch)))$char(10),)
// BITDEPTH
$if(%__bitspersample%,$get(head)$get(info)Bitdepth: $get(result)%__bitspersample% bits/sample$char(10),)
// FILE SIZE
$if($greater(%_filesize%,0),$if($stricmp($upper($ext(%_path%)),CUE),$get(info)Font: $get(result)Cue File$char(10),$get(info)Size: $get(result)$div(%_filesize%,1048576).$num($muldiv($mod(%_filesize%,1048576),100,1048576),2) MB$char(10)),)

//
//
//
// MORE INFO
// **********
//
//$char(1)C$get(head)Special Info $char(10)
$if($or(%__replaygain_track_gain%,%__replaygain_album_gain%,%last_played%,%play_counter%,%rating%),
//$char(10)

// MORE INFO
// **********
$if($strcmp($get(format),0),
// LEFT FORMAT
$get(head_special)$get(head_char)$get(head_char)$get(head) USER INFO $transition($repeat($get(head_char),$get(head_lenght)),$get(head_special),$get(background))
,
// CENTER FORMAT TEXT
$char(1)C$get(head)User Info
)
$char(10)
$if(%__replaygain_track_gain%,$get(info)Track Gain: $get(result)%__replaygain_track_gain%$char(10),)
$if(%__replaygain_album_gain%,$get(info)Album Gain: $get(result)%__replaygain_album_gain%$char(10),)
$if(%last_played%$get(info)Last Played: $get(result)%last_played%$char(10),)
$if(%play_counter%,$get(info)Nš Times: $get(result)%play_counter%$char(10),)
$if(%rating%,$get(info)Rating: $get(result)%rating% / $get(high)5$char(10),)
,)

//$char(10)
//
// WHEN PLAYING
// ************
//
$if(%_isplaying%,
//
// SONG PLAYING
// *************
//
$if($strcmp($get(format),0),
// LEFT FORMAT
$get(head_special)$get(head_char)$get(head_char)$get(head) $if(%_time_total%,TIME INFO,STREAMING ) $transition($repeat($get(head_char),$get(head_lenght)),$get(head_special),$get(background))
,
// CENTER FORMAT TEXT
$char(1)C$select($add($mod(%_time_elapsed_seconds%,2),1),$get(head)$if(%_time_total%,Time Info ,Streaming ),$get(head)Now Playing )
)
//$char(1)C$if(%_isplaying%,$select($add($mod(%_time_elapsed_seconds%,2),1),$get(head)$if(%_time_total%,Time Info ,Streaming ),$get(head)Now Playing ),)

$char(10)
$if(%_time_total%,$get(info)Total: $get(result)%_time_total%$char(10),)

$get(info)Elapsed: $get(result)$select($add($mod(%_time_elapsed_seconds%,2),1),$get(high)%_time_elapsed%,%_time_elapsed%)
$char(10)
$if(%_time_total%,$get(info)Remaining: $get(result)%_time_remaining%$char(10),)

$if(%_time_total%,$get(info)Listened: $get(result)$pad_right($muldiv(%_time_elapsed_seconds%,100,%_length_seconds%),3)'%',)
,)
$char(10)





//
//
//


// PREPARE COLOR-STRINGS
// =========================================
$puts(progress_color1a,$blend($get(progress_color1),000000,1,4.5))
$puts(progress_color2a,$blend($get(progress_color2),000000,1,5.7))
// progressbar
$puts(progressbar,
$if(%_length_seconds%,

$puts(progress,$muldiv(%_time_elapsed_seconds%,$get(progress_length),%_length_seconds%))
$transition($repeat($get(progress_char),$get(progress)),$get(progress_color1a),$get(progress_color1))
$transition($repeat($get(progress_char),$sub($get(progress_length),$get(progress))),$get(progress_color2a),$get(progress_color2))
$pad_right($muldiv(%_time_elapsed_seconds%,100,%_length_seconds%),3)'%'
,Streaming...
)
)
//
//
// PROGRESS BAR
// ------------------
//
$if(%_time_total%,
//
// NOW PLAYING
// **********
//
$if($strcmp($get(format),0),
// LEFT FORMAT
$get(head_special)$get(head_char)$get(head_char)$get(head) SEEKBAR $transition($repeat($get(head_char),$get(head_lenght)),$get(head_special),$get(background))
,
// CENTER FORMAT TEXT
$char(1)C$if(%_isplaying%,$select($add($mod(%_time_elapsed_seconds%,2),1),$get(head)Now Playing ,$get(progress_color2)Now Playing ),)
)

$char(10)$rgb(16,40,46)
$if(%_isplaying%,
//$char(1)C
$get(head) $get(progressbar)$char(10),)
,)
//
// end progress bar
//

// end notrac

NOTE: This code is rather messy, it has obviously been modded many times and you might want to go through and clean up all the bits and pieces that were commented out before it was posted here.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.