Skip to main content
Topic: foo_uie_trackinfo (Read 727991 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

foo_uie_trackinfo

Reply #350
Is there a way to have a "trackinfo 2" that can be treated as an independent panel from the normal one? I mean: do you mind compiling one with a different name so we could have two instances of it?

I tried placing a renamed copy in the components dir but, of course, FB can see it's the same thing and don't let you put the two panel side by side.

I think it would be the best way to use it's double faced behaviour: now playng vs selected track. With two we could have one focused on the now playing and the other on the selected track.

If it were just a matter of some renaming................

foo_uie_trackinfo

Reply #351
I was think of the same thing, except I would like to use it to show stats regarding my music database.  I took a look at the source files, and have no idea where to begin.  Need to do some reading up on C++.

 

foo_uie_trackinfo

Reply #352
Quote
I was think of the same thing, except I would like to use it to show stats regarding my music database.  I took a look at the source files, and have no idea where to begin.  Need to do some reading up on C++.
[{POST_SNAPBACK}][/a]

Its all in the GUID's I took a look at the source and it was easy enough to modify
I changed the guid in two places to make sure
I take no responsablity for the use or any problems associated with this build of this plugin, use at own risk, and please only use this if you know what you are doing
Link: [a href="http://home.comcast.net/~ghs-hunted/foo_uie_trackinfo2.zip]foo_uie_trackinfo2[/url]
I'm hosting this on comcast servers, I don't know how much bandwidth I get but this is tiny so what ever
I don't want to get shit for this, and if Phi (who I haven't seen in forever) would like me to take this down I'll be happy, but I thought some people might make use of this.
for lack of better name its called foo_uie_trackinfo2 and the config is Track info (two) as is the panel name, good luck anyone

Of course the proper thing to do is something like album list with multple tagz string settings and then a multi instance trackinfo, but that would be a major change that I am not interested in.

foo_uie_trackinfo

Reply #353
That's cool that you made the change...I'll have to test it out.  The one thing I do know is that there is a lot of code in there that is meaningless for what I would like to do with another window like Track Info.  Since I only want to display database stats, there is code in there that would no longer need to be there.  I still want to read up on it, to find out what I can trim out, and still accomplish my goal.

Edit:  I just loaded it into my components, and although it does have track info (two) listed, it interferes with the original track info panel.  I think there is more to it that just changing names and the GUID.

foo_uie_trackinfo

Reply #354
redid my trackinfo... not as much going on with it... no track progress or any dynamic info

but it does show LAME/musepack/wavpack info







also the code isn't such a sloppy mess

Code: [Select]
$puts(text1,ffffff)
$puts(text2,949494)
$puts(fadeend,313131)

$if(%_isplaying%,

$transition(-----------------,$get(fadeend),$get(text1))SONG INFO$transition(----------------,$get(text1),$get(fadeend))

$char(10)$char(10)
Artist: $get(text2)
$iflonger(%artist%,25,$trim($cut(%artist%,$sub(25,3)))...,%artist%)$char(10)
Album: $get(text2)
$iflonger(%album%,25,$trim($cut(%album%,$sub(25,3)))...,%album%)$char(10)
Track: $get(text2)[$num(%tracknumber%,2)]$char(10)
Title: $get(text2)
$iflonger(%title%,29,$trim($cut(%title%,$sub(29,3)))...,%title%)$char(10)
Date: $get(text2)[%date%]$char(10)
Genre: $get(text2)[%genre%]$char(10)
$char(10)

$transition(-----------------,$get(fadeend),$get(text1))TECH INFO$transition(----------------,$get(text1),$get(fadeend))

$char(10)$char(10)
Bitrate: $get(text2)%__bitrate%Kbps
$iflonger(%__codec%,15,$trim($cut(%__codec%,$sub(15,3)))...,%__codec%)
$char(10)
$if(%__mpc_profile%,Profile: $get(text2)%__mpc_profile%$char(10),)
$if(%__lame_version%,LAME: $get(text2)%__lame_version% %__lame_profile%$char(10),)
$if(%__compression%,Mode: $get(text2)%__compression%$char(10),)
Samplerate: $get(text2)$if(%__bitspersample%,%__bitspersample%bit ,)%__samplerate%Hz$char(10)

,$char(10)$char(10)$char(10)$char(10)$char(10)$char(10)
$char(1)CNO TRACK PLAYING)
- sig removed, no code allowed

foo_uie_trackinfo

Reply #355
Cleared mine up, ready for public consumption if anyone wants it (which they probably don't).
Now playing mode:

Follow cursor mode:


Code: [Select]
//Track-info code by Neil K (not all original)

//COLOR CODES
//blue color that is used a LOT
$puts(color1,$rgb(115,150,175))

//grey color that is also used a LOT
$puts(color2,$rgb(150,150,150))

//green color for word 'Original' for tracks with %origartist%, %origalbum% or %origyear%
$puts(orig_color,$rgb(116,175,170))

//light blue color for %origartist% and %origalbum%
$puts(orig_color2,$rgb(155,180,197))

//scrolling path color
$puts(scroll_color,$rgb(180,205,220))

$if(%_trackinfo_nowplaying%,

//color for 'SONG INFO' if in now-playing mode
$puts(transition_color,$rgb(0,170,0)),
//color for 'SONG INFO' if in follow-cursor mode
$puts(transition_color,$rgb(170,0,0)))

//// END OF COLOR CODES

$if(%_trackinfo_notrack%,No track playing,

//'SONG INFO' transitions
$char(1)C$transition(---------,FFFFFF,000000)$transition(-S O N G,000000,$get(transition_color))    $transition(I N F O-,$get(transition_color),000000)$transition(---------,000000,FFFFFF)

//ARTIST, TITLE, ALBUM info
$char(10)Artist:$char(10)$char(1)C%artist%$char(10)$char(10)
Title:$char(10)$char(1)C$get(color2)$if(%_isplaying%,$if(%_ispaused%,■  , ► ),)$rgb(0,0,0)$replace(%title%,'(',808080'(',')',')','[',808080'[',']',']')$char(10)$char(10)
$if(%album%,Album:$char(10)$char(1)C%album% $get(color2)[ '['%date%']']$char(10),)

//displays info if there is an %origartist%, %origalbum% or %origyear% tag
$if($or(%origartist%,%origalbum%,%origyear%),
$get(orig_color)Original:$char(10)
$get(orig_color2)[%origartist%$char(10)]
$get(orig_color2)$if2(%origalbum%,)
$get(color2)[ '['%origyear%']']$char(10),)

// PROGRESS BAR
$if(%_trackinfo_nowplaying%,
$char(10)
$char(1)C$puts(len,$muldiv(%_time_elapsed_seconds%,25,%_time_total_seconds%))
$transition($repeat(█,$get(len)),$get(color2),$get(color1))
$repeat(█,$sub(25,$get(len)))
$char(10),)

//TIME
$char(1)R$get(color1)[%_time_elapsed% / ][%_length%]

//PLAY COUNTER
$char(10)
$if(%play_counter%,$char(1)R$get(color1)♫: $rgb(0,0,0)%play_counter%,)

////  Play date needs to be in YYYY-MM-DD format, tag is %last_played%
$if(%last_played%,
$if($get(p1), 9a9a9aon,$char(10)$char(1)R$get(color1)◙)

$puts(pday,$substr(%last_played%,9,10))
$if($strcmp($left($get(pday),1),0),$puts(pday,$right($get(pday),1)))

$if($or($strcmp($get(pday),11),$strcmp($get(pday),12),
$strcmp($get(pday),13)),$puts(xx,th),
$if($strcmp($right($get(pday),1),1),$puts(xx,st),
$if($strcmp($right($get(pday),1),2),$puts(xx,nd),
$if($strcmp($right($get(pday),1),3),$puts(xx,rd),
$puts(xx,th)))))

$puts(pmonth,$select($substr(%last_played%,6,7),
Jan,Feb,March,April,May,June,July,
Aug,Sept,Oct,Nov,Dec))

' '$get(pmonth) $get(pday)$get(xx) $get(pyear)
$if(%play_time%, 9a9a9aat $get(ptime))9a9a9a$char(10))

// filesize output
$puts(fsize,$div(%_filesize%,1048576).$num($div($mul($mod(%_filesize%,1048576),100),1048576),2) $get(anno)MB$char(10))
$char(1)R$get(color1)$get(fsize)

//ENCODING (with a bit that just shortens WMA encoding names)
$char(1)R $get(color1)$if($stricmp(%__codec%,Windows Media Audio V7/V8),WMA,%__codec%) @ %__bitrate% kb/s

//SCROLLING PATH
$if(%_trackinfo_nowplaying%,
$char(10)$char(10)
$get(scroll_color)$puts(padding,$char(160)$char(160)•$char(160)$char(160))
$puts(size,34)
$puts(title,$replace(%_path%, ,$char(160)))

$ifgreater($len2($get(title)),$get(size),
// scroll text
$puts(title,$get(title)$get(padding))
$puts(start,$add(1,$mod( %_time_elapsed_seconds%,$len($get(title)))))
$puts(display,
$cut(
$substr($get(title)$get(title),
 $get(start),
 $add(
  $get(start),
  $get(size)
 )
)
,$add($get(size),1))
)
$get(display)$ifgreater($len2($get(display)),$get(size),,$char(160)),
// normal display
$get(title)
),))

foo_uie_trackinfo

Reply #356
I may be being stupid here (being fairly new to Foobar), but how do I actually get the panel to appear? I have a new enough version of the Columns UI and I put the trackinfo .dll into components, it shows up on the menu but it's nowhere to be found on the interface and I can't find any options to enable it 

foo_uie_trackinfo

Reply #357
Quote
I may be being stupid here (being fairly new to Foobar), but how do I actually get the panel to appear? I have a new enough version of the Columns UI and I put the trackinfo .dll into components, it shows up on the menu but it's nowhere to be found on the interface and I can't find any options to enable it 
[{POST_SNAPBACK}][/a]

look here:
[a href="http://eolindel.free.fr/foobar/sidebar.html#Use]http://eolindel.free.fr/foobar/sidebar.html#Use[/url]

taken from :
http://eolindel.free.fr/foobar/

foo_uie_trackinfo

Reply #358
Quote
redid my trackinfo... not as much going on with it... no track progress or any dynamic info

which font is that?
Brian

foo_uie_trackinfo

Reply #359
Quote
Quote
redid my trackinfo... not as much going on with it... no track progress or any dynamic info

which font is that?
[a href="index.php?act=findpost&pid=303868"][{POST_SNAPBACK}][/a]


Looks like Tahoma 7pt, maybe

foo_uie_trackinfo

Reply #360
arial unicode 7pt
- sig removed, no code allowed

foo_uie_trackinfo

Reply #361
Well, a new version of my trackinfo-string. (See code for changes)

Code: [Select]
//////////////////////////////
// Highly customizeable track information
// Author: Lycox
// Version 0.8
// Comments to: lycox@material-base.net
// Web: [url=http://www.material-base.net]http://www.material-base.net[/url]
//////////////////////////////

//////////////////////////////
// Changelog:
//////////////////////////////

// + = Added / - = Removed / * = Fixed / # = Changed

// v0.8
// + Enable/Disable progressbar

// v0.7
// + added support for foo_cwb_hooks (Active Playlist)

// v0.6
// + readded support for foo_playcount unofficial
// + readded First-Played Tag
// - Natural Language Timestamps (because it doesn't work)

// v0.5
// + New Section: User Info
// # Replaygain moved to User Info
// # Albumgain moved to User Info
// # First-Played moved to User Info
// # Last-Played moved to User Info
// # Rating moved to User Info
// # Play-Counter moved to User Info
// # Switch between Date-Format and Natural Language Timestamps (Default)

// v0.4
// + PlayCounter: First_Played-Tag (Default Off)
// + PlayCounter: Last_Played-Tag
// + Customizeable PlayCounter date format
// + WWW-Tag
// * Code cleanup
// * updated to work with columns_ui (06/04/28)

// # Updated to new PlayCounter-Tags
// # Spacer (Thanks Erich w/ an h)

// v0.3
// + Color-Schemes

// v0.2
// + DISC-Tag (DISCNUMBER-Tag)
// + TRACK-Tag
// + FEATURING-Tag
// + Extra Info on Codec 
// + Dynamic Bitrate
// + LAME Version and Profile
// + Musepack Profile
// + Bitdepth for lossless formats
// + STYLE-Tag
// + Truncate Multirow Comments

// * Filesize
// * small bug fixes

//////////////////////////////
// Credits:
// Peter Pawlowski for great fb2k
// Free - for great progressbar
// upNorth - for filesize string / Bugfixed Version from Forum
// Looks quite good with Arial, 8pt bold
//////////////////////////////

// ==============================================

//////////////////////////////
//  Global Config Part  //
//////////////////////////////

//////////////////////////////
// Color schemes
// 0 = Standard, 1 = HmmXP, 2 = Custom
//////////////////////////////

// Set the colorscheme
$puts(color_scheme,1)

// Standard
// Background (255,255,255)
$if($strcmp(0,$get(color_scheme)),
$puts(headline,256d3d)
$puts(info,ec9184)
$puts(text,000000)
$puts(grayed,c8c8c8)
$puts(playing_mode,DCAE8D)
$puts(add,888888)
$puts(spacer_color,d6d6d6)
// Colors for progressbar
$puts(progress_color1,ff6d66)
$puts(progress_color2,ffe1df))

// HmmXP
// Background (235,232,227) or (247,244,241)
$if($strcmp(1,$get(color_scheme)),
$puts(headline,B7A38A)
$puts(info,856551)
$puts(text,4C4C4C)
$puts(grayed,909090)
$puts(playing_mode,B7A38A)
$puts(add,9BA3A7)
$puts(spacer_color,d6d6d6)
// Colors for progressbar
$puts(progress_color1,856551)
$puts(progress_color2,E3E8EB))

// Custom
// Background (255,255,255)
$if($strcmp(2,$get(color_scheme)),
$puts(headline,256d3d)
$puts(info,ec9184)
$puts(text,000000)
$puts(grayed,c8c8c8)
$puts(playing_mode,DCAE8D)
$puts(add,888888)
$puts(spacer_color,d6d6d6)
// Colors for progressbar
$puts(progress_color1,ff6d66)
$puts(progress_color2,ffe1df))

//////////////////////////////
// Enable/Disable Progressbar
// 0 = No, 1 = Yes
//////////////////////////////
$puts(show_progressbar,1)

//////////////////////////////
// Shows Song Info in track info panel
// 0 = No, 1 = Yes
//////////////////////////////
$puts(show_songinfo,1)

//////////////////////////////
// Show various informations in Song Info
// 0 = No, 1 = Yes
//////////////////////////////
$puts(title,1)
$puts(artist,1)
$puts(featuring,1)
$puts(mixartist,1)
$puts(band,1)
$puts(album,1)
$puts(tracknumber,1)
$puts(disc,1)
$puts(genre,1)
$puts(style,1)
$puts(bpm,1)
$puts(date,1)
$puts(copyright,1)


//////////////////////////////
// Shows Additional Info in track info panel
// 0 = No, 1 = Yes
//////////////////////////////
$puts(show_additionalinfo,1)

//////////////////////////////
// Show various informations in Additional Info
// 0 = No, 1 = Yes
//////////////////////////////
$puts(comment,1)
// Use this to shorten Multirow Comments
$puts(comment_short,1)
$puts(comment_length,297)

$puts(www,1)
$puts(wwwartist,1)
$puts(publisher,1)
$puts(language,1)
$puts(composer,1)
$puts(lyricist,1)
$puts(conductor,1)
$puts(recordingdates,1)
$puts(fileowner,1)



//////////////////////////////
// Shows User Info in track info panel
// 0 = No, 1 = Yes
//////////////////////////////
$puts(show_userinfo,1)

//////////////////////////////
// Show various informations in User Info
// 0 = No, 1 = Yes
//////////////////////////////
$puts(trackgain,1)
$puts(albumgain,1)
$puts(rating,1)
$puts(play_counter,1)
$puts(first_played,0)
$puts(last_played,1)

// Set date format
// 1 = DD/MM/YYYY
// 2 = MM/DD/YYYY
// 3 = YYYY/MM/DD
// 4 = YYYY/DD/MM
$puts(first_played_scheme,1)
$puts(last_played_scheme,1)

// Show first/last played time
$puts(first_played_scheme_time,1)
$puts(last_played_scheme_time,1)


//////////////////////////////
// Shows Technical Info in track info panel
// 0 = No, 1 = Yes
//////////////////////////////
$puts(show_techinfo,1)

//////////////////////////////
// Show various informations in Tech Info
// 0 = No, 1 = Yes
//////////////////////////////
$puts(codec,1)
$puts(extra_info,1)
$puts(bitrate,1)
$puts(samplerate,1)
// Switch between Hz and kHz (default OFF)
$puts(samplerate_short,1)
$puts(lame_version,1)
$puts(lame_profile,1)
$puts(mpc_profile,1)
$puts(bitdepth,1)
$puts(channels,1)
$puts(time_elapsed_total,1)

$puts(encodedby,1)
$puts(encodersettings,1)
$puts(filesize,1)
// hidden, because not really needed
$puts(filename_ext,0)
$puts(mediatype,0)
$puts(size,0)
$puts(songlen,0)
$puts(time,0)


//////////////////////////////
// Shows Web Info in track info panel
// 0 = No, 1 = Yes
//////////////////////////////
$puts(show_webinfo,1)

//////////////////////////////
// Shows Web Related Infos in Web Info
// 0 = No, 1 = Yes
//////////////////////////////
$puts(show_webrelated,1)

//////////////////////////////
// Show various informations in Web Info
// 0 = No, 1 = Yes
//////////////////////////////
$puts(www,1)
$puts(wwwaudiofile,1)
$puts(wwwcopyright,1)
$puts(wwwcommercialinfo,1)
$puts(wwwpayment,1)
$puts(wwwpublisher,1)
$puts(wwwuser,1)

//////////////////////////////
// Shows NetRadio Info in Web Info
// 0 = No, 1 = Yes
//////////////////////////////
$puts(show_netradioinfo,1)

//////////////////////////////
// Show various informations in NetRadio Info
// 0 = No, 1 = Yes
//////////////////////////////
$puts(wwwradiopage,1)
$puts(netradioowner,1)
$puts(netradiostation,1)


//////////////////////////////
// Shows Misc Info in track info panel
// 0 = No, 1 = Yes
//////////////////////////////
$puts(show_miscinfo,1)

//////////////////////////////
// Show various informations in Misc Info
// 0 = No, 1 = Yes
//////////////////////////////
$puts(subtitle,1)
$puts(involvedpeople,1)
$puts(playlistdelay,0)
$puts(initialkey,0)
$puts(isrc,0)
$puts(partinset,0)


//////////////////////////////
// Shows Original Info in track info panel
// 0 = No, 1 = Yes
//////////////////////////////
$puts(show_originalinfo,1)

//////////////////////////////
// Show various informations in Original Info
// 0 = No, 1 = Yes
//////////////////////////////
$puts(origartist,1)
$puts(origyear,1)
$puts(origlyricist,1)
$puts(origfilename,1)

//////////////////////////////
// Define chars
// Show here: [url=http://eolindel.free.fr/foobar0.9/customize.shtml]http://eolindel.free.fr/foobar0.9/customize.shtml[/url]
//////////////////////////////
// Define rating char
$puts(rating_char,$char(9679))
// Define spacer char
$puts(spacer_char,-)
// Define progressbar char
$puts(progress_char,$char(9679))
// Set length of the progressbar
$puts(progress_length,25)


//////////////////////////////
// Spacer
//////////////////////////////
$puts(spacer_length,90)

// Don't change this line
$puts(spacer,$get(spacer_color)$repeat($get(spacer_char),$get(spacer_length))$char(10))

////////////////////////////////
// End Global Config Part //
////////////////////////////////
// ==============================================

//////////////////////////////
// Show Playing Mode
//////////////////////////////

$get(playing_mode)Mode: %_trackinfo_mode% $if(%cwb_activelist%,'('%cwb_activelist%')')$char(10)$if(%_trackinfo_notrack%,$get(grayed)'['No track']'$char(10),

// progressbar config
$puts(theme,1)

$if($strcmp($get(theme),1),
$puts($get(progress_color1))
$puts($get(progress_color2))
)


//////////////////////////////
// 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))
$get(text)$pad_right($muldiv(%_time_elapsed_seconds%,100,%_length_seconds%),3)'%'
,streaming...
))

$if($strcmp(1,$get(show_progressbar)),$get(progressbar)$char(10))
)
//////////////////////////////
// Song Info
//////////////////////////////
$if($strcmp(1,$get(show_songinfo)),
$get(spacer)
$tab()$get(headline)Song Info$tab()$char(10)
$if($strcmp(1,$get(title)),$get(info)Title: $get(text)$if($meta(title),$meta(title),$get(grayed)'['No Title']')$char(10))
$if($strcmp(1,$get(artist)),$get(info)Artist: $get(text)$if($meta(artist),$meta(artist),$get(grayed)'['Unknown Artist']') )
$if($strcmp(1,$get(featuring)),$if($meta(featuring),$get(add)feat. $get(text)$meta(featuring))$char(10))
$if($strcmp(1,$get(mixartist))
|$strcmp(1,$get(band))
,
$if($strcmp(1,$get(mixartist)),$if($meta(remixed by),$get(info)Remixed by: $get(text)$meta(remixed by)$char(10)))
$if($strcmp(1,$get(band)),$if($meta(band),$get(info)Band: $get(text)$meta(band)$char(10))))
$if($strcmp(1,$get(album)),$if($meta(album),$get(info)Album: $get(text)$meta(album)$char(10)))

$if($strcmp(1,$get(tracknumber)),$if($meta(tracknumber)|$meta(track),$get(info)Track: $get(text)$if($meta(tracknumber),$meta(tracknumber),$meta(track)) $if($strcmp(1,$get(disc)),$if($meta(disc)|$meta(discnumber),$get(grayed)'('$if($meta(disc),$meta(disc),$meta(discnumber))')'))$char(10),$if($meta(disc)|$meta(discnumber),$get(info)Disc: $get(text)$if($meta(disc),$meta(disc),$meta(discnumber))$char(10))))
$if($strcmp(0,$get(tracknumber)),$if($meta(disc)|$meta(discnumber),$get(info)Disc: $get(text)$if($meta(disc),$meta(disc),$meta(discnumber))$char(10)))


$if($strcmp(1,$get(genre)),$if($meta(genre),$get(info)Genre: $get(text)$meta(genre)$char(10)))

$if($strcmp(1,$get(style)),
$if($meta(style),$get(info)Style: $get(text)$meta(style)$char(10))
$if($meta(styles),$get(info)Style: $get(text)$meta(styles)$char(10)))

$if($strcmp(1,$get(bpm)),$if($meta(bpm),$get(info)bpm: $get(text)$meta(bpm)$char(10)))
$if($strcmp(1,$get(date)),$if($meta(date),$get(info)Date: $get(text)$meta(date)$char(10)))
$if($strcmp(1,$get(copyright)),$if($meta(copyright),$get(info)© $get(text)$meta(copyright)$char(10)))
)
// End Song Info

//////////////////////////////
// Additional Info
//////////////////////////////
$if($strcmp(1,$get(show_additionalinfo)),
$if($if(%comment%,$and($strcmp(1,$get(comment))))
|$if(%www%,$and($strcmp(1,$get(www))))
|$if(%wwwartist%,$and($strcmp(1,$get(wwwartist))))
|$if(%publisher%,$and($strcmp(1,$get(publisher))))
|$if(%language%,$and($strcmp(1,$get(language))))
|$if(%composer%,$and($strcmp(1,$get(composer))))
|$if(%lyricist%,$and($strcmp(1,$get(lyricist))))
|$if(%conductor%,$and($strcmp(1,$get(conductor))))
|$if(%recordingdates%,$and($strcmp(1,$get(recordingdates))))
|$if(%fileowner%,$and($strcmp(1,$get(fileowner))))
,$get(spacer)
$tab()$get(headline)Additional Info$tab()$char(10)

$if($strcmp(1,$get(comment)),$if($meta(comment),$get(info)Comment: $get(text)$if($strcmp(1,$get(comment_short)),
$iflonger($replace($meta(comment),$char(13),),$get(comment_length),
$cut($replace($meta(comment),$char(13),),$sub($get(comment_length),5))'(...)',
$replace($meta(comment),$char(13),)),
%comment%)$char(10)))

$if($strcmp(1,$get(www)),$if($meta(www),$get(info)WWW: $get(text)$meta(www)$char(10)))
$if($strcmp(1,$get(wwwartist)),$if($meta(wwwartist),$get(info)Web: $get(text)$meta(wwwartist)$char(10)))
$if($strcmp(1,$get(publisher)),$if($meta(publisher),$get(info)Publisher: $get(text)$meta(publisher)$char(10)))
$if($strcmp(1,$get(language)),$if($meta(language),$get(info)Language: $get(text)$meta(language)$char(10)))
$if($strcmp(1,$get(composer)),$if($meta(composer),$get(info)Composer: $get(text)$meta(composer)$char(10)))
$if($strcmp(1,$get(lyricist)),$if($meta(lyricist),$get(info)Lyricist: $get(text)$meta(lyricist)$char(10)))
$if($strcmp(1,$get(conductor)),$if($meta(conductor),$get(info)Conductor: $get(text)$meta(conductor)$char(10)))
$if($strcmp(1,$get(contentgroup)),$if($meta(contentgroup),$get(info)Group: $get(text)$meta(contentgroup)$char(10)))
$if($strcmp(1,$get(recordingdates)),$if($meta(recordingdates),$get(info)Rec. Date: $get(text)$meta(recordingdates)$char(10)))
$if($strcmp(1,$get(fileowner)),$if($meta(fileowner),$get(info)Owner: $get(text)$meta(fileowner)$char(10)))
))
// End Additional Info



//////////////////////////////
// User Info
//////////////////////////////
$if($strcmp(1,$get(show_userinfo)),
$if($if(%__replaygain_track_gain%,$and($strcmp(1,$get(trackgain))))
|$if(%__replaygain_album_gain%,$and($strcmp(1,$get(albumgain))))
|$if(%rating%,$and($strcmp(1,$get(rating))))
|$if(%play_counter%,$and($strcmp(1,$get(play_counter))))
|$if(%first_played%,$and($strcmp(1,$get(first_played))))
|$if(%last_played%,$and($strcmp(1,$get(last_played))))
|$if(%lyricist%,$and($strcmp(1,$get(lyricist))))
|$if(%conductor%,$and($strcmp(1,$get(conductor))))
|$if(%recordingdates%,$and($strcmp(1,$get(recordingdates))))
|$if(%fileowner%,$and($strcmp(1,$get(fileowner))))
,$get(spacer)
$tab()$get(headline)User Info$tab()$char(10)

$puts(size,5)
$if($strcmp(1,$get(trackgain)),$if(%__replaygain_track_gain%,$get(info)RG Track: $get(text)$cut(%__replaygain_track_gain%,$get(size)) dB$char(10)))
$if($strcmp(1,$get(albumgain)),$if(%__replaygain_album_gain%,$get(info)RG Album: $get(text)$cut(%__replaygain_album_gain%,$get(size)) dB$char(10)))

$puts(_rating,$repeat($get(rating_char),%rating%))
$if($strcmp(1,$get(rating)),$if(%rating%,$get(info)Rating: $get(text) $get(_rating) $get(grayed)'('%rating%')'$char(10)))

$if($strcmp(1,$get(play_counter)),$if(%play_counter%,$get(info)Played $get(text)%play_counter%$get(info) times.$char(10)))

$puts(first_played_year,$substr(%first_played%,1,4))
$puts(first_played_month,$substr(%first_played%,6,7))
$puts(first_played_day,$substr(%first_played%,9,10))
$puts(first_played_hour,$substr(%first_played%,12,13))
$puts(first_played_min,$substr(%first_played%,15,16))
$puts(first_played_sec,$substr(%first_played%,18,19))

$if($strcmp(1,$get(first_played_scheme_time)),
$puts(first_played_time,'('$get(first_played_hour):$get(first_played_min):$get(first_played_sec)')')

// DMY
$if($strcmp(1,$get(first_played_scheme)),
$puts(first_played_scheme,$get(first_played_day) / $get(first_played_month) / $get(first_played_year)))

// MDY
$if($strcmp(2,$get(first_played_scheme)),
$puts(first_played_scheme,$get(first_played_month) / $get(first_played_day) / $get(first_played_year)))

// YMD
$if($strcmp(3,$get(first_played_scheme)),
$puts(first_played_scheme,$get(first_played_year) / $get(first_played_month) / $get(first_played_day)))

// YDM
$if($strcmp(4,$get(first_played_scheme)),
$puts(first_played_scheme,$get(first_played_year) / $get(first_played_day) / $get(first_played_month)))

$if($strcmp(1,$get(first_played)),$if(%first_played%,$get(info)First played: $get(text)$get(first_played_scheme) $if($strcmp(1,$get(first_played_scheme_time)), $get(grayed)$get(first_played_time))$char(10))))

$puts(last_played_year,$substr(%last_played%,1,4))
$puts(last_played_month,$substr(%last_played%,6,7))
$puts(last_played_day,$substr(%last_played%,9,10))
$puts(last_played_hour,$substr(%last_played%,12,13))
$puts(last_played_min,$substr(%last_played%,15,16))
$puts(last_played_sec,$substr(%last_played%,18,19))

$if($strcmp(1,$get(last_played_scheme_time)),
$puts(last_played_time,'('$get(last_played_hour):$get(last_played_min):$get(last_played_sec)')')

// DMY
$if($strcmp(1,$get(last_played_scheme)),
$puts(last_played_scheme,$get(last_played_day) / $get(last_played_month) / $get(last_played_year)))

// MDY
$if($strcmp(2,$get(last_played_scheme)),
$puts(last_played_scheme,$get(last_played_month) / $get(last_played_day) / $get(last_played_year)))

// YMD
$if($strcmp(3,$get(last_played_scheme)),
$puts(last_played_scheme,$get(last_played_year) / $get(last_played_month) / $get(last_played_day)))

// YDM
$if($strcmp(4,$get(last_played_scheme)),
$puts(last_played_scheme,$get(last_played_year) / $get(last_played_day) / $get(last_played_month)))

$if($strcmp(1,$get(last_played)),$if(%last_played%,$get(info)Last played: $get(text)$get(last_played_scheme) $if($strcmp(1,$get(last_played_scheme_time)), $get(grayed)$get(last_played_time))$char(10))))
$if($strcmp(2,$get(last_played)),$if(%last_played%,$get(info)Last played: $get(text)$get(nat_lang_stamp)$char(10))))
)
// End User Info

//////////////////////////////
// Tech Info
//////////////////////////////
$if($strcmp(1,$get(show_techinfo)),
$get(spacer)
$tab()$get(headline)Tech Info$tab()$char(10)

$if($strcmp(1,$get(codec)),$get(info)Codec: $get(text)%__codec%
$if($strcmp(1,$get(extra_info)),$get(grayed)'['$if($stricmp(%__extrainfo%,vbr),VBR,CBR)']')
$char(10))

$if($strcmp(1,$get(lame_version)),$if(%__lame_version%,$get(info)LAME: $get(text)%__lame_version% $if($strcmp(1,$get(lame_profile)),$if(%__lame_profile%, %__lame_profile%)) $char(10)))
$if($strcmp(1,$get(mpc_profile)),$if(%__mpc_profile%,$get(info)MPC Profile: $get(text)%__mpc_profile%$char(10)))

$if($strcmp(1,$get(bitrate)),$get(info)Bitrate: $get(text)
$if(%__bitrate_dynamic%,$num(%__bitrate_dynamic%,3) Kbit/s,%__bitrate% Kbit/s)$char(10))

$if($strcmp(1,$get(samplerate)),$get(info)Samplerate: $get(text)$if($strcmp(1,$get(samplerate_short)),$div(%__samplerate%,1000).$substr(%__samplerate%,3,3) kHz,%__samplerate% Hz)$char(10))

$if($strcmp(1,$get(channels)),$get(info)Channels: $get(text)$if(%__channels%,$ifgreater(%__channels%,2,%__channels%,$ifgreater(%__channels%,1,Stereo,Mono)))$char(10))
$if($strcmp(1,$get(bitdepth)),$if(%__bitspersample%,$get(info)Bitdepth: $get(text)%__bitspersample%$char(10)))
$if($strcmp(1,$get(time_elapsed_total)),$get(info)Time: $get(text)$if(%_time_elapsed%,%_time_elapsed% / %_time_total%,%_length%)$char(10))

$if($strcmp(1,$get(encodedby)),$if(%encodedby%,$get(info)Encoded by: $get(text)%encodedby%$char(10)))
$if($strcmp(1,$get(encodersettings)),$if(%encodersettings%,$get(info)Encoder Settings: $get(text)%encodersettings%$char(10)))

$puts(ModSize,$muldiv($mod(%_filesize%,1048576),100,1048576))
$if($strcmp(1,$get(filesize)),$get(info)Filesize: $get(text)$div(%_filesize%,1048576).$ifgreater($get(ModSize),99,99,$num($get(ModSize),2)) MB$char(10))
$if($strcmp(1,$get(filename_ext)),$get(info)File: $get(text)%_filename_ext%$char(10))
$if($strcmp(1,$get(mediatype)),$if(%mediatype%,$get(info)Mediatype: $get(text)%mediatype%$char(10)))
$if($strcmp(1,$get(size)),$if(%size%,$get(info)Size: $get(text)%size%$char(10)))
$if($strcmp(1,$get(songlen)),$if(%songlen%,$get(info)Length: $get(text)%songlen%$char(10)))
$if($strcmp(1,$get(time)),$if(%time%,$get(info)Time: $get(text)%time%$char(10)))
)
// End Tech Info

//////////////////////////////
// Web Info
//////////////////////////////
$if($strcmp(1,$get(show_webinfo)),
$if($if(%wwwaudiofile%,$and($strcmp(1,$get(wwwaudiofile))))
|$if(%wwwcopyright%,$and($strcmp(1,$get(wwwcopyright))))
|$if(%wwwcommercialinfo%,$and($strcmp(1,$get(wwwcommercialinfo))))
|$if(%wwwpayment%,$and($strcmp(1,$get(wwwpayment))))
|$if(%wwwpublisher%,$and($strcmp(1,$get(wwwpublisher))))
|$if(%wwwuser%,$and($strcmp(1,$get(wwwuser))))
|$if(%wwwradiopage%,$and($strcmp(1,$get(wwwradiopage))))
|$if(%netradioowner%,$and($strcmp(1,$get(netradioowner))))
|$if(%netradiostation%,$and($strcmp(1,$get(netradiostation))))
,$get(spacer)

//////////////////////////////
// Web Related
//////////////////////////////
$if($strcmp(1,$get(show_webrelated)),
$if($if(%wwwaudiofile%,$and($strcmp(1,$get(wwwaudiofile))))
|$if(%wwwcopyright%,$and($strcmp(1,$get(wwwcopyright))))
|$if(%wwwcommercialinfo%,$and($strcmp(1,$get(wwwcommercialinfo))))
|$if(%wwwpayment%,$and($strcmp(1,$get(wwwpayment))))
|$if(%wwwpublisher%,$and($strcmp(1,$get(wwwpublisher))))
|$if(%wwwuser%,$and($strcmp(1,$get(wwwuser))))
,
$tab()$get(headline)Web Info$tab()$char(10)
$if($strcmp(1,$get(wwwaudiofile)),$if(%wwwaudiofile%,$get(info)File: $get(text)%wwwaudiofile%$char(10)))
$if($strcmp(1,$get(wwwcopyright)),$if(%wwwcopyright%,$get(info)© $get(text)%wwwcopyright%$char(10)))
$if($strcmp(1,$get(wwwaudiosource)),$if(%wwwaudiosource%,$get(info)Source: $get(text)%wwwaudiosource%$char(10)))
$if($strcmp(1,$get(wwwcommercialinfo)),$if(%wwwcommercialinfo%,$get(info)Info: $get(text)%wwwcommercialinfo%$char(10)))
$if($strcmp(1,$get(wwwpayment)),$if(%wwwpayment%,$get(info)Payment: $get(text)%wwwpayment%$char(10)))
$if($strcmp(1,$get(wwwpublisher)),$if(%wwwpublisher%,$get(info)Publisher: $get(text)%wwwpublisher%$char(10)))
$if($strcmp(1,$get(wwwuser)),$if(%wwwuser%,$get(info)User: $get(text)%wwwuser%$char(10)))
$char(10))
)
// End Web Info

//////////////////////////////
// Net Radio Info
//////////////////////////////
$if($strcmp(1,$get(show_netradioinfo)),

$if($if(%wwwradiopage%,$and($strcmp(1,$get(wwwradiopage))))
|$if(%netradioowner%,$and($strcmp(1,$get(netradioowner))))
|$if(%netradiostation%,$and($strcmp(1,$get(netradiostation))))
,$tab()$get(headline)NetRadio Info$tab()$char(10)
$if($strcmp(1,$get(wwwradiopage)),$if(%wwwradiopage%,$get(info)Page: $get(text)%wwwradiopage%$char(10)))
$if($strcmp(1,$get(netradioowner)),$if(%netradioowner%,$get(info)Owner: $get(text)%netradioowner%$char(10)))
$if($strcmp(1,$get(netradiostation)),$if(%netradiostation%,$get(info)Station: $get(text)%netradiostation%$char(10))))
)))
// End - Web Related

//////////////////////////////
// Misc Info
//////////////////////////////
$if($strcmp(1,$get(show_miscinfo)),
$if($if(%subtitle%,$and($strcmp(1,$get(subtitle))))
|$if(%involvedpeople%,$and($strcmp(1,$get(involvedpeople))))
|$if(%playlistdelay%,$and($strcmp(1,$get(playlistdelay))))
|$if(%initialkey%,$and($strcmp(1,$get(initialkey))))
|$if(%isrc%,$and($strcmp(1,$get(isrc))))
|$if(%partinset%,$and($strcmp(1,$get(partinset))))
,$get(spacer)
$tab()$get(headline)Misc Info$tab()$char(10)
$if($strcmp(1,$get(subtitle)),$if(%subtitle%,$get(info)Subtitle: $get(text)%subtitle%$char(10)))
$if($strcmp(1,$get(involvedpeople)),$if(%involvedpeople%,$get(info)Involved People: $get(text)%involvedpeople%$char(10)))
$if($strcmp(1,$get(playlistdelay)),$if(%playlistdelay%,$get(info)Playlistdelay: $get(text)%playlistdelay%$char(10)))
$if($strcmp(1,$get(initialkey)),$if(%initialkey%,$get(info)Initialkey: $get(text)%initialkey%$char(10)))
$if($strcmp(1,$get(isrc)),$if(%isrc%,$get(info)ISRC: $get(text)%isrc%$char(10)))
$if($strcmp(1,$get(partinset)),$if(%partinset%,$get(info)Partinset: $get(text)%partinset%$char(10)))
))
// End Misc Info

//////////////////////////////
// Original Info
//////////////////////////////
$if($strcmp(1,$get(show_originalinfo)),
$if($if(%origartist%,$and($strcmp(1,$get(origartist))))
|$if(%origyear%,$and($strcmp(1,$get(origyear))))
|$if(%origlyricist%,$and($strcmp(1,$get(origlyricist))))
|$if(%origfilename%,$and($strcmp(1,$get(origfilename))))
,$get(spacer)
$tab()$get(headline)Original Info$tab()$char(10)
$if($strcmp(1,$get(origartist)),$if(%origartist%,$get(info)Artist: $get(text)%origartist%$char(10)))
$if($strcmp(1,$get(origyear)),$if(%origyear%,$get(info)Year: $get(text)%origyear%$char(10)))
$if($strcmp(1,$get(origlyricist)),$if(%origlyricist%,$get(info)Lyricist: $get(text)%origlyricist%$char(10)))
$if($strcmp(1,$get(origfilename)),$if(%origfilename%,$get(info)Filename: $get(text)%origfilename%$char(10)))
))


foo_uie_trackinfo

Reply #362
Hello everyone! I think this is the first time ever that I post on the boards with the reason not being to ask a question XD

Well, on this thread, I have seen some really good code, but I didnt know anything about TAGZ, so I thought I would try something.

I took some code from three peoples strings (I really hope you guys arent upset, Im giving all the credit to Storm, whose code makes up the cool paragraph info part at the beginning, except for the genre modifier that I stuck in to see if I could without breaking the code. And the progress bar, I dont have that person's name, but If you recognize your work, then let me know! I didnt do anything with it but put 'time' in japanese and make the progress bar change colour upon playback pause.
Last, but not least is Neil K. from whose string I got the filesize and codec coding.

I also added in a replaygain data (only if it exists) because I finally figured out how to use replaygain in foobar. I used chess pieces to show if its track (clear knight) or album (solid knight) gain.

Oh, and I modified the string to be able to display the date properly regardless of if the tag is %play_date% or %last_played%; its just that if both those tag types exist on a song, then %play_date% will be ignored and the data from %last_played% will be used.

To the people whose code I used, if you are upset that I used them, or if I didnt give enough credit, just let me know and I'll take the string down!

Oh yea, and the code is all over the place. I dont really understand TAGZ too much now, plus I wanted to keep the code for each person's contribution pretty much how they left it.

So here it is:
Code: [Select]
/////////////////////////////////////////////////////////////////////////////
////      Big thanks to Storm for the cool paragraph style track
//// info code and even nicer way to display last time
//// played (eg. December 2nd, 2005), and Neil K. where
//// I got the codec info and filesize code, and a third person
//// named Free (I think)
//// for the playback bar and percent complete and time.
//// Peter Palowski for foobar2000, the best... what could I call it...
//// swiss army knife of anything digital audio
//// and you for at least looking at the mess of code that i made lol
//// Oh, and I tested this with MS Shell Dlg 8pt/ Black Background
////                                                                                    -giri_giri
///////////////////////////////♪ Enjoy! ♪/////////////////////////////////

///////////////////////////////////////////////////////////////////////////////
//// Configuration ///////// 1 = yes // 0 = no //////////////////////////
///////////////////////////////////////////////////////////////////////////////

//////////////////////////♪General Config♪/////////////////////////////
[%% Show track info mode?                            ]$puts(showmode,1)
[%% Indent "[Track Info] mode."?                  ]$puts(indent,1)
[%% Show japanese?                                      ]$puts(nihongo,0)
[%% Show rating?                                            ]$puts(showrating,1)
[%% Rating: Words or numbers?                      ]$puts(ratingwords,1)
[%% Audioscrobbler on or off?                        ]$puts(audioscrobbler,1)
[%% Show time?                                              ]$puts(showtime,1)
[%% Show play counter?                                  ]$puts(showplaycount,1)
[%% Show time/date last played?                    ]$puts(showlastplayed,1)
[%% Show play/pause status?                          ]$puts(showstatus,1)
[%% Show red zero play count message?        ]$puts(showsth,1)
////////////////////////♪Progress Bar Config ♪///////////////////////////
[%% Show progress bar?                                  ]$puts(showprogress,1)
[%% What character for progress bar?      %%]
[%% 0 = Custom; 1 = ● ; 2 = ♪; 3 =  █          ]$puts(progress_char,3)
[%% Did you pick '0' above? Custom char:        ]$puts(mychar,_)
[%% Set the progress bar length here              ]$puts(progress_length,25)
[%% Show the percent complete?                    ]$puts(showpercent,1)
[%% Set color theme: 0 = Custom; 1 = Default ]$puts(theme,1)
/////////////////♪Progress Bar: Color Customization♪///////////////////
//////////////////////// $rgb(red,green,blue) ////////////////////////////////
[%% Set foreground Color                                  ]$puts(pc1,$rgb(255,128,77))
[%% Set background Color                                ]$puts(pc2,$rgb(77,10,10))
[%% Set pause color                                          ]$puts(pp,$rgb(77,77,77))
////////////////////♪Config: Technical information♪//////////////////////
[%% Show replay gain information?                  ]$puts(showgaininfo,1)
[%% Show the codec?                                        ]$puts(showenc,1)
[%% Show filesize of selected file?                    ]$puts(showfilesize,1)
///////////////////////////////////////////////////////////////////////////////////
//// End of Configuration /////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////


//////////// To play both play date formats:
$if(%last_played%,
$puts(lastrun,$substr(%last_played%,9,10)$substr(%last_played%,6,7)$substr(%last_played%,3,4)),
$if(%play_date%,
$puts(lastrun,%play_date%)
)
)

$if(%last_played%,
$puts(lasttime,$substr(%last_played%,12,13)$substr(%last_played%,15,16)$substr(%last_played%,18,19)),
$if(%play_time%,
$puts(lasttime,%play_time%)
)
)

///////////// Trackinfo mode
$if(
$strchr($get(showmode),0),,
$if(
$strchr($get(indent),0),,$char(1)C)
$if(%_trackinfo_nowplaying%,20bcffNow playing,
ffffffSelected track) 9a9a9amode.$char(10)$char(10)
)


//////////// Display tag information in a very cool way (kudos to Storm)
$if(%_trackinfo_notrack%,
9a9a9aNo track$if(%_trackinfo_nowplaying%, playing).
9a9a9aStatistics unavailable.,

$if($and(%_trackinfo_nowplaying%,$not(%_isplaying%)),
9a9a9aPlayback stopped. ,

$if($or(%artist%,%title%,%album%),
[»$replace(%title%,'(',c2b1a3'(',')',')','[',c2b1a3'[',']',']')«]
[ 9a9a9aby »%artist%«]

$if(%tracknumber%,9a9a9a',' 9a9a9atrack 9a9a9a#
$if($strcmp($left(%tracknumber%,1),0),$right(%tracknumber%,1), %tracknumber%))

[ 9a9a9afrom 9a9a9athe[ »$replace(%genre%,'(',c2b1a3'(',')',')','[',c2b1a3'[',']',']')« ]9a9a9aalbum »
$replace(%album%,'(',c2b1a3'(',')',')','[',c2b1a3'[',']',']')«]

[ 9a9a9areleased 9a9a9ain %date%]
[9a9a9a, 9a9a9aoriginally
' '9a9a9areleased 9a9a9ain %origyear%]9a9a9a.,
Does not contain artist/album info.))

$if($and(%_trackinfo_nowplaying%,$not(%_isplaying%)),,

//////////// Display Play Counter
$if($strchr($get(showplaycount),0),,
$if($strchr($get(showrating),0),$char(10)$char(10),)

$puts(countstring,$if(%play_counter%,Played
' '$if($strcmp(%play_counter%,1),$puts(p1,1)once,
$if($strcmp(%play_counter%,2),twice,%play_counter% times))9a9a9a,
$if($not($get(lastrun)),$if(%rating%,$char(10)$char(10))666666Never played))
$if($or(%play_counter%,$not($get(lastrun))),$if($get(p1),',', since added.)))
)

//////////// Display Rating
$if($strchr($get(showrating),0),,
$char(10)$char(10)

$if(%rating%,$puts(rword,$select(%rating%,One,Two,Three,Four,Five))
069bff$if($strchr($get(ratingwords),1),$get(rword),%rating%) star song. ,
9a9a9aYou haven''t rated this song yet. $if($get(p1),,$char(10)$char(10)))
)

$if($get(p1),$char(10)$char(10))$get(countstring)
$if($strchr($get(showlastplayed),0),,

/////////// Show the last time played

$if($get(lastrun),
$if($get(p1), 9a9a9aon,$char(10)$char(10)9a9a9aLast played on)

$puts(pday,$left($get(lastrun),2))
$if($strcmp($left($get(pday),1),0),$puts(pday,$right($get(pday),1)))

$if($or($strcmp($get(pday),11),$strcmp($get(pday),12),
$strcmp($get(pday),13)),$puts(xx,th),
$if($strcmp($right($get(pday),1),1),$puts(xx,st),
$if($strcmp($right($get(pday),1),2),$puts(xx,nd),
$if($strcmp($right($get(pday),1),3),$puts(xx,rd),
$puts(xx,th)))))

$puts(pmonth,$select($substr($get(lastrun),3,4),
January,February,March,April,May,June,July,
August,September,October,November,December))

$puts(pyear,$right($get(lastrun),2))
$puts(pyear,$if($greater($get(pyear),80),19,20)$get(pyear))

$puts(ptime,$left($get(lasttime),2):$substr($get(lasttime),3,4))

' '$get(pmonth) $get(pday)$get(xx) $get(pyear)
$if($get(lasttime), 9a9a9aat $get(ptime))9a9a9a.)))
)

/////////// Show status of playing file
$if($strchr($get(showstatus),0),,
$if(%_isplaying%,$char(10)$char(10)$if(%_ispaused%,
$if($strchr($get(nihongo),1),一時 停止。,Paused. ),
$if($strchr($get(nihongo),1),再生。,Playing. )
)
)
)

$if($strchr($get(audioscrobbler),0),,
$if($strchr($get(showstatus),0),$char(10)$char(10),)
$if(%_isplaying%,
$ifgreater($muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%),50,
c2b1a3Audioscrobblered.,9a9a9aNon-audioscrobblered.))
)

//////////// Make the color codes
//blue color that is used a LOT
$puts(color1,$rgb(115,150,175))

//grey color that is also used a LOT
$puts(color2,$rgb(150,150,150))

$if(
$strcmp($get(theme),1),
$puts(progress_color1,$rgb(198,0,0))
$puts(progress_color2,$rgb(108,108,108))
$puts(progress_color_p,$rgb(115,150,175)),
$if(
$strcmp($get(theme),0),
$puts(progress_color1,$get(pc1))
$puts(progress_color2,$get(pc2))
$puts(progress_color_p,$get(pp))
)
)

///////////////// Display the time
$char(10)
$char(10)
$if($strchr($get(showtime),1),
$char(1)C
$if(%_ispaused%,$get(progress_color_p),
$if(%_isplaying%,$get(progress_color1),9a9a9a))
//$if(%_isplaying%,0000c4,9a9a9a))
$if($strchr($get(nihongo),1),時間,Time)
: F3EAE0$if(%_isplaying%,%_time_elapsed% / %_time_total% '['%_time_remaining%']',%_length%)$char(10)
,)

$if(
$strchr($get(showprogress),0),,
///////////////// 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))
$puts(progress_colorpa,$blend($get(progress_color_p),000000,1,5.7))

// progressbar
$if(
$strcmp($get(progress_char),1),$puts(chara,●),
$if(
$strcmp($get(progress_char),2),$puts(chara,♪),
$if(
$strcmp($get(progress_char),0),$puts(chara,$get(mychar)),
$puts(chara,█)
)
)
)

$if(%_isplaying%,
$char(1)C$puts(progressbar,
$if(%_length_seconds%,
$puts(progress,$muldiv(%_time_elapsed_seconds%,$get(progress_length),%_length_seconds%))
$if(%_ispaused%,
$transition($repeat($get(chara)
,$get(progress)),$get(progress_color_p),$get(progress_color_p)),
$transition($repeat($get(chara)
,$get(progress)),$get(progress_color1a),$get(progress_color1)))
$transition($repeat($get(chara)
,$sub($get(progress_length),$get(progress))),$get(progress_color2a),$get(progress_color2))
$if($strchr($get(showpercent),1),
$char(10)$char(1)C$pad_right($muldiv(%_time_elapsed_seconds%,100,%_length_seconds%),3)'%'
)
,streaming...
)
)
$get(progressbar)
$char(10)
$char(10)
,)
)

///////////// Display the replaygain information Outline Knight: Track gain; Solid Knight: Album gain
$if(
$strchr($get(showgaininfo),0),,
$if(%__replaygain_track_gain%,$char(1)C$get(color1)'['%__replaygain_track_gain%♘']'
$if(%__replaygain_album_gain%,,$char(10)),)
$if(%__replaygain_album_gain%,$if(%__replaygain_track_gain%,,$char(1)C)$get(color1)'['%__replaygain_album_gain%♞']'$char(10),)
)

///////////// Display the ENCODING (with a bit that just shortens WMA encoding names)
$if(
$strchr($get(showenc),0),,
$char(1)C $get(color1)$if($stricmp(%__codec%,Windows Media Audio V7/V8),.wma,.$lower(%__codec%)) @ %__bitrate% kbps
$char(10)
)

///////////// filesize output
$if(
$strchr($get(showfilesize),0),,
$puts(fsize,$div(%_filesize%,1048576).$num($div($mul($mod(%_filesize%,1048576),100),1048576),2) $get(anno)MB$char(10))
$char(1)C$get(color1)$get(fsize)
)

/////////// Red Zero play count message
$if(
$strchr($get(showsth),0),,
$char(10)
$if(%play_counter%,,$char(1)C$rgb(255,0,0)$if($strchr($get(nihongo),1),もう 再生しなかった。,Song has yet to be played.))
)

///////♪///////

So basically all I did was put my three favorite strings together and added recognition for album genre, the ability for the playback bar to change color when song paused,
the replaygain information, the color change on the word 'time (jikan)', the red 'not yet played' phrase, and the ability to read both types of play history data.

Enjoy, and I hope it works lol
(I'd post an image, but I dont think I have any webspace)


[span style=\'font-size:8pt;line-height:100%\']moderation: please use codebox instead of code tags for obscenely long text like formatting strings and crash logs[/span]

Edit:
Quote
[span style=\'font-size:8pt;line-height:100%\']moderation: please use codebox instead of code tags for obscenely long text like formatting strings and crash logs[/span]

If the box I used above isnt a codebox, how do I make one? Sorry if that's a stupid question, but Im fairly new to forum..ing.
 (new word ^^; )

Edit 2:
Ok, here is the updated version of the splicing of code that I made. I think it turned out pretty nice. There are now options to turn off things. And erm... you can change the color of the progress bar and the item that's displayed for it and some other stuff. I prolly made more bugs/errors than i fixed, but I hope you have as much fun using it as I did splicing, adding, and creating!
Im still learning, so...

Quote
I changed it for your formatting string already. Generally, just make sure that this kind of long text is enclosed in [CODEBOX ][/CODEBOX ] (minus the whitespace) instead of [CODE ][/CODE ]

..anyway, happy foruming
Ok, I hope I did this one right lol

foo_uie_trackinfo

Reply #363
Hello. This is probably an illegitimate n00b question, but...

when I use the %_filesize% tag for the trackinfo, it comes out in kb (which is a big number). How can I reduce it to MB? my string atm looks like this:

Code: [Select]
// TRACKINFO FORMAT STRING
//
DCAE8DMode: %_trackinfo_mode%$char(10)$if(%_trackinfo_notrack%,No track,
//
$char(10)
$char(1)C0CEBA4Song Info$char(10)
D7B997Title: F3EAE0%title%$char(10)
D7B997Artist: F3EAE0%artist%$char(10)
D7B997Album: F3EAE0%album%$char(10)
D7B997Date: F3EAE0%date%)$char(10)
D7B997Genre: F3EAE0%genre%$char(10)
//
$char(10)
$char(1)C0CEBA4Tech Info$char(10)
D7B997Codec: F3EAE0%__codec% $char(10)
D7B997Filesize: F3EAE0%_filesize% kb $char(10)
//
D7B997Bitrate: F3EAE0%__bitrate% Kbit/s$char(10)
D7B997Samplerate: F3EAE0%__samplerate% Hz$char(10)
D7B997Channels: F3EAE0$if(%__channels%,$ifgreater(%__channels%,2,%__channels%ch,$ifgreater(%__channels%,1,' 'Stereo,''Mono)),)$char(10)
//
$char(10)
$char(1)C0CEBA4Statistics$char(10)
D7B997Number of times played: F3EAE0$if(%play_counter%,%play_counter%,'0')$char(10)
D7B997Last played: F3EAE0$if(%play_date%,$substr(%play_date%,3,4)
'/'$left(%play_date%,2)'/'$right(%play_date%,2),
'never')$char(10)
D7B997Time: F3EAE0%_time_elapsed% / %_time_total%$char(10)
//
$puts(theme,1)
//
// progressbar config
$puts(progress_char,█)
$puts(progress_length,20)
//
$if($strcmp($get(theme),1),
$puts(progress_color1,$rgb(164,235,12))
$puts(progress_color2,$rgb(54,106,179))
)
//
//
// 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...
)
)
$get(progressbar)

...with the output looking like this



The filesize is just too big, and I'd love it in MB. Thanks!

(btw I searched and found some things, but it was a little confusing.)

foo_uie_trackinfo

Reply #364
Quote
Hello. This is probably an illegitimate n00b question, but...

when I use the %_filesize% tag for the trackinfo, it comes out in kb (which is a big number). How can I reduce it to MB? my string atm looks like this:

Code: [Select]
// TRACKINFO FORMAT STRING
//
DCAE8DMode: %_trackinfo_mode%$char(10)$if(%_trackinfo_notrack%,No track,
//
$char(10)
$char(1)C0CEBA4Song Info$char(10)
D7B997Title: F3EAE0%title%$char(10)
D7B997Artist: F3EAE0%artist%$char(10)
D7B997Album: F3EAE0%album%$char(10)
D7B997Date: F3EAE0%date%)$char(10)
D7B997Genre: F3EAE0%genre%$char(10)
//
$char(10)
$char(1)C0CEBA4Tech Info$char(10)
D7B997Codec: F3EAE0%__codec% $char(10)
D7B997Filesize: F3EAE0%_filesize% kb $char(10)
//
D7B997Bitrate: F3EAE0%__bitrate% Kbit/s$char(10)
D7B997Samplerate: F3EAE0%__samplerate% Hz$char(10)
D7B997Channels: F3EAE0$if(%__channels%,$ifgreater(%__channels%,2,%__channels%ch,$ifgreater(%__channels%,1,' 'Stereo,''Mono)),)$char(10)
//
$char(10)
$char(1)C0CEBA4Statistics$char(10)
D7B997Number of times played: F3EAE0$if(%play_counter%,%play_counter%,'0')$char(10)
D7B997Last played: F3EAE0$if(%play_date%,$substr(%play_date%,3,4)
'/'$left(%play_date%,2)'/'$right(%play_date%,2),
'never')$char(10)
D7B997Time: F3EAE0%_time_elapsed% / %_time_total%$char(10)
//
$puts(theme,1)
//
// progressbar config
$puts(progress_char,█)
$puts(progress_length,20)
//
$if($strcmp($get(theme),1),
$puts(progress_color1,$rgb(164,235,12))
$puts(progress_color2,$rgb(54,106,179))
)
//
//
// 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...
)
)
$get(progressbar)

...with the output looking like this



The filesize is just too big, and I'd love it in MB. Thanks!

(btw I searched and found some things, but it was a little confusing.)
[a href=\"index.php?act=findpost&pid=304090\"][{POST_SNAPBACK}][/a]


I use $div(%_filesize%,1048576).$left($num($muldiv($mod(%_filesize%,1048576),1000,1048576),3),2)

But I stole it from someone else. Is there an agreed-upon, standard for getting the filesize?

foo_uie_trackinfo

Reply #365
Quote
Edit:
Quote
[span style='font-size:8pt;line-height:100%']moderation: please use codebox instead of code tags for obscenely long text like formatting strings and crash logs[/span]


If the box I used above isnt a codebox, how do I make one? Sorry if that's a stupid question, but Im fairly new to forum..ing.
(new word ^^; )
[a href="index.php?act=findpost&pid=303954"][{POST_SNAPBACK}][/a]

I changed it for your formatting string already. Generally, just make sure that this kind of long text is enclosed in [CODEBOX ][/CODEBOX ] (minus the whitespace) instead of [CODE ][/CODE ]

..anyway, happy foruming
A riddle is a short sword attached to the next 2000 years.

foo_uie_trackinfo

Reply #366
Hmm ... where can i get this "modified foo_input_std.dll" to display lame profile in the track info ?  I've been searching around but no luck.

foo_uie_trackinfo

Reply #367
Quote
Hmm ... where can i get this "modified foo_input_std.dll" to display lame profile in the track info ?  I've been searching around but no luck.
[{POST_SNAPBACK}][/a]
[a href="http://pelit.koillismaa.fi/plugins/]http://pelit.koillismaa.fi/plugins/[/url]


foo_uie_trackinfo

Reply #369
hello board!
i'm back, and i've brought some code update~

as i have said earlier, this is a combination of several strings, one by Storm that displays track info in a very attractive paragraph form along the lines of: title by artist from the (genre) album, album title, released in year. And then it shows the last time played in January 5th, 2005 format. All I can say is really nice, Storm! Next is progressbar written by some named Free (i think) and then some code from Neil K.'s info string for filesize and codec (nothing insanely specific, yet XD)

so what did i do except put them together? well i fixed a 'problem' where the track info could read only the %play_date% style tag even if the newest version of foo_playcount is being used. so now, it can read %play_date% BUT ONLY IF %last_played% is not there because if that is the case, then the data stored in %last_played% takes priority and %play_date% is ignored. i guess that's an ok way to do it, if anyone has any other ideas, let me know.

next, i added a genre info tag and fixed a few color problems involving word wrap that adding that tag created lol

i also added some replaygain information and the ability to change color of everything and whether or not every thing (except main artist,title, etc. info) is shown right from a configuration menu at the top of the string. also is the ability to use several hardcoded characters for the progress bar, or if you wish a user created one like 'all your bass are belong to us,' but a progress bar like that will always be full so...

well, as i have said im still learning tagz and notepad is frustrating for coding -.-
try it! i hope you like it, if you dont im shocked! just kidding, i dont think there's any way you'll enjoy using it more than i enjoyed making it!

Code: [Select]
/////////////////////////////////////////////////////////////////////////////////////////////
////      big thanks to Storm for the cool paragraph style track info code
//// and even nicer way to display last time played (eg. December 2nd, 2005),
//// and Neil K. from whose code i got the codec info and filesize code,
//// and a third person named Free, i think, for the playback bar
//// and percent complete and time. Peter Palowski for the foobar2000,
//// the best... what could i call it... swiss army knife of anything digital audio
//// and you for at least looking at the mess of code that i made lol
//// oh, and i tested this with MS Shell Dlg 8pt on a black background
////                                                                                                  -giri_giri
//////////////////////////////////////♪ enjoy! ♪/////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////////////////////
//// configuration ///////// 1 = yes //////////// 0 = no ///////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////♪general config♪////////////////////////////////////
[%% show track info mode?.......................]$puts(showmode,1)
[%% indent "[track info] mode."?.................]$puts(indent,1)
[%% show japanese?...............................]$puts(nihongo,0)
[%% show rating?...................................]$puts(showrating,1)
[%% show rating as words?.......................]$puts(ratingwords,1)
[%% audioscrobbler on or off?....................]$puts(audioscrobbler,1)
[%% show time?....................................]$puts(showtime,1)
[%% show play counter?..........................]$puts(showplaycount,1)
[%% show time/date last played?................]$puts(showlastplayed,1)
[%% show play/pause status?....................]$puts(showstatus,1)
[%% show red zero play count message?.......]$puts(showsth,1)
//////////// 1 = yes //////////♪config: progress bar ♪////////// 0 = no ///////////////
[%% show progress bar?...............................]$puts(showprogress,1)
[%% set progress bar length here....................]$puts(progress_length,25)
[%% show the percent complete?.....................]$puts(showpercent,1)
[%% force percent complete to a new line?..........]$puts(percent_newline,0)
[%% what character for progress bar?...............]
[%% 0 = custom; 1 = ● ; 2 = ♪; 3 =  █ ............]$puts(progress_char,1)
[%% NOTE: if you chose '0' for progress_length, chose new char and length here ]
[%% did you pick '0' above? custom char:............]$puts(mychar,|)
[%% set custom progress bar length here............]$puts(custom_length,65)
////////////////////♪customization: select your custom colors♪/////////////////////////
/////////////////////// $rgb(red,green,blue) /// or ///xxxxxx///////////////////////////
[%% theme: 0 = custom; 1 = default...........]$puts(theme,1)
[%% codec, filesize, replaygain color...........]$puts(custom_1,004080)
[%% not used......................................]$puts(custom_2,$rgb(150,150,150))
[%% "now playing" mode color.................. ]$puts(custom_3,000080)
[%% "selected track" mode color................]$puts(custom_4,c0c0c0)
[%% main track info text color...................]$puts(custom_5,808080)
[%% bracketed text in tags/audioscrobbler....]$puts(custom_6,ffff00)
[%% time elapsed/remaining color...............]$puts(custom_7,808080)
[%% never been played message...............]$puts(custom_8,8080ff)
[%% track rating color............................ ]$puts(custom_9,ff0000)
[%% zero played message color.................]$puts(custom_a,400080)
[%% NOTE: the 'time:' and progress bar foreground are same color. ]
[%% progress bar foreground color.............]$puts(custom_b,$rgb(255,128,77))
[%% progress bar background color............]$puts(custom_c,$rgb(77,10,10))
[%% progress bar pause color...................]$puts(custom_d,$rgb(77,77,77))
///////////////////////////♪config: technical information♪///////////////////////////
[%% show replay gain information?..............]$puts(showgaininfo,1)
[%% show the codec?..............................]$puts(showenc,1)
[%% show filesize of selected file?...............]$puts(showfilesize,1)
///////////////////////////////// 1 = yes //// 0 = no /////////////////////////////////////

///////////////////////////////////////////////////////////////////////////////////////////////
//// end of configuration /////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////
//// define colors ///////////////////
////////////////////////////////////////
$if(
$strcmp($get(theme),1),
$puts(color1,$rgb(115,150,175))[....baby blue %%]
$puts(color2,$rgb(150,150,150))[....not used? %%]
$puts(color3,20bcff)[....yellow %%]
$puts(color4,ffffff)[....white %%]
$puts(color5,9a9a9a)[....medium gray %%]
$puts(color6,c2b1a3)[....lightish blue %%]
$puts(color7,F3EAE0)[....slightly off white %%]
$puts(color8,666666)[....dark gray %%]
$puts(color9,069bff)[....ratings yellow %%]
$puts(colora,$rgb(255,0,0))[....deep red %%]
$puts(colorb,$rgb(198,0,0))[....red %%]
$puts(colorc,$rgb(108,108,108))[....light grayish something or other %%]
$puts(colord,$rgb(115,150,175))[....baby blue %%]
,
$if(
$strcmp($get(theme),0),
$puts(color1,$get(custom_1))
$puts(color2,$get(custom_2))
$puts(color3,$get(custom_3))
$puts(color4,$get(custom_4))
$puts(color5,$get(custom_5))
$puts(color6,$get(custom_6))
$puts(color7,$get(custom_7))
$puts(color8,$get(custom_8))
$puts(color9,$get(custom_9))
$puts(colora,$get(custom_a))
$puts(colorb,$get(custom_b))
$puts(colorc,$get(custom_c))
$puts(colord,$get(custom_d))
)
)

//////////////// PREPARE COLOR-STRINGS
$puts(progress_color1a,$blend($get(colorb),000000,1,4.5))
$puts(progress_color2a,$blend($get(colorc),000000,1,5.7))
$puts(progress_colorpa,$blend($get(colord),000000,1,5.7))

//////////////////////////////////////////////////////////
//// to play both play date formats: ///////////////
//////////////////////////////////////////////////////////
$if(%last_played%,
$puts(lastrun,$substr(%last_played%,9,10)$substr(%last_played%,6,7)$substr(%last_played%,3,4)),
$if(%play_date%,
$puts(lastrun,%play_date%)
)
)

$if(%last_played%,
$puts(lasttime,$substr(%last_played%,12,13)$substr(%last_played%,15,16)$substr(%last_played%,18,19)),
$if(%play_time%,
$puts(lasttime,%play_time%)
)
)

//////////////////////////////////////////
//// main string ///////////////////////
//////////////////////////////////////////

///////////// trackinfo mode
$if(
$strchr($get(showmode),0),,
$if(
$strchr($get(indent),0),,$char(1)C)
$if(%_trackinfo_nowplaying%,$get(color3)Now playing,
$get(color4)Selected track) $get(color5)mode.$char(10)$char(10)
)


//////////// display tag information in a very nice way (massive kudos to Storm)
$if(%_trackinfo_notrack%,
$get(color5)No track$if(%_trackinfo_nowplaying%, playing).
$get(color5)Statistics unavailable.,

$if($and(%_trackinfo_nowplaying%,$not(%_isplaying%)),
$get(color5)Playback stopped. ,

$if($or(%artist%,%title%,%album%),
$if(%title%,»$replace(%title%,'(',$get(color6)'(',')',')','[',$get(color6)'[',']',']')«,)
$if(%artist%, $get(color5)by »%artist%«,)

$if(%tracknumber%,$get(color5)',' $get(color5)track
//$get(color5)
#
//$if($strcmp($left(%tracknumber%,1),0),$right(%tracknumber%,1),%tracknumber%)
$ifgreater(%tracknumber%,9,
$num(%tracknumber%,2),
$num(%tracknumber%,1))
//
)


$if(%album%, $get(color5)from $get(color5)the $if(%genre%,»$replace(%genre%,'(',$get(color6)'(',')',')','[',$get(color6)'[',']',']')« ,)
$get(color5)album »$replace(%album%,'(',$get(color6)'(',')',')','[',$get(color6)'[',']',']')«,)

$if(%date%, $get(color5)released $get(color5)in %date%,)
$if(%origyear%,$get(color5)',' $get(color5)originally' '$get(color5)released $get(color5)in %origyear%,)
$get(color5).,
Does not contain artist/album info.))

$if($and(%_trackinfo_nowplaying%,$not(%_isplaying%)),,

//////////// display play counter
$if($strchr($get(showplaycount),0),,
$if($strchr($get(showrating),0),$char(10)$char(10),)

$puts(countstring,$if(%play_counter%,Played
' '$if($strcmp(%play_counter%,1),$puts(p1,1)once,
$if($strcmp(%play_counter%,2),twice,%play_counter% times))$get(color5),
$if($not($get(lastrun)),$if(%rating%,$char(10)$char(10))$get(color8)Never played))
$if($or(%play_counter%,$not($get(lastrun))),$if($get(p1),',', since added.)))
)

//////////// display rating
$if($strchr($get(showrating),0),,
$char(10)$char(10)

$if(%rating%,$puts(rword,$select(%rating%,One,Two,Three,Four,Five))
$get(color9)$if($strchr($get(ratingwords),1),$get(rword),%rating%) star song. ,
$get(color5)You haven''t rated this song yet. $if($get(p1),,$char(10)$char(10)))
)

$if($get(p1),$char(10)$char(10))$get(countstring)
$if($strchr($get(showlastplayed),0),,

/////////// show the last time played
$if($get(lastrun),
$if($get(p1), $get(color5)on,$char(10)$char(10)$get(color5)Last played on)

$puts(pday,$left($get(lastrun),2))
$if($strcmp($left($get(pday),1),0),$puts(pday,$right($get(pday),1)))

$if($or($strcmp($get(pday),11),$strcmp($get(pday),12),
$strcmp($get(pday),13)),$puts(xx,th),
$if($strcmp($right($get(pday),1),1),$puts(xx,st),
$if($strcmp($right($get(pday),1),2),$puts(xx,nd),
$if($strcmp($right($get(pday),1),3),$puts(xx,rd),
$puts(xx,th)))))

$puts(pmonth,$select($substr($get(lastrun),3,4),
January,February,March,April,May,June,July,
August,September,October,November,December))

$puts(pyear,$right($get(lastrun),2))
$puts(pyear,$if($greater($get(pyear),80),19,20)$get(pyear))

$puts(ptime,$left($get(lasttime),2):$substr($get(lasttime),3,4))

' '$get(pmonth) $get(pday)$get(xx) $get(pyear)
$if($get(lasttime), $get(color5)at $get(ptime))$get(color5).)))
)

/////////// show status of playing file
$if($strchr($get(showstatus),0),,
$if(%_isplaying%,$char(10)$char(10)$if(%_ispaused%,
$if($strchr($get(nihongo),1),一時 停止。,Paused. ),
$if($strchr($get(nihongo),1),再生。,Playing. )
)
)
)

$if($strchr($get(audioscrobbler),0),,
$if($strchr($get(showstatus),0),$char(10)$char(10),)
$if(%_isplaying%,
$ifgreater($muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%),50,
$get(color6)Audioscrobblered.,$get(color5)Non-audioscrobblered.))
)


///////////////// Display the time
$char(10)
$char(10)
$if(
$strchr($get(showtime),1),
$char(1)C
$if(%_ispaused%,$get(colord),
$if(%_isplaying%,$get(colorb),$get(color5)))
$if($strchr($get(nihongo),1),時間,Time)
: $get(color7)$if(%_isplaying%,%_time_elapsed% / %_time_total% '['%_time_remaining%']',%_length%)$char(10)
,)

$if($strchr($get(showprogress),0),,
$if($strchr($get(progress_char),0),$puts(length,$get(custom_length)),$puts(length,$get(progress_length)))

// progressbar
$if(
$strcmp($get(progress_char),1),$puts(chara,●),
$if(
$strcmp($get(progress_char),2),$puts(chara,♪),
$if(
$strcmp($get(progress_char),0),$puts(chara,$get(mychar)),
$puts(chara,█)
)
)
)

$if(%_isplaying%,
$char(1)C$puts(progressbar,
$if(%_length_seconds%,
$puts(progress,$muldiv(%_time_elapsed_seconds%,$get(length),%_length_seconds%))
$if(%_ispaused%,
$transition($repeat($get(chara)
,$get(progress)),$get(colord),$get(colord)),
$transition($repeat($get(chara)
,$get(progress)),$get(progress_color1a),$get(colorb)))
$transition($repeat($get(chara)
,$sub($get(length),$get(progress))),$get(progress_color2a),$get(colorc))
$if($strchr($get(showpercent),1), 
$if($strchr($get(percent_newline),1), $char(10)$char(1)C,)
$pad_right($muldiv(%_time_elapsed_seconds%,100,%_length_seconds%),3)'%'
)
,streaming...
)
)
$get(progressbar)
$char(10)
$char(10)
,)
)

///////////// display the replaygain information outline knight: Tgain; solid knight: Again
$if(
$strchr($get(showgaininfo),0),,
$if(%__replaygain_track_gain%,$char(1)C$get(color1)'['%__replaygain_track_gain%♘']'
$if(%__replaygain_album_gain%,,$char(10)),)
$if(%__replaygain_album_gain%,$if(%__replaygain_track_gain%,,$char(1)C)$get(color1)'['%__replaygain_album_gain%♞']'$char(10),)
)

///////////// Display the ENCODING (with a bit that just shortens WMA encoding names)
$if(
$strchr($get(showenc),0),,
$char(1)C $get(color1)$if($stricmp(%__codec%,Windows Media Audio V7/V8),.wma,.$lower(%__codec%)) @ %__bitrate% kbps
$char(10)
)

///////////// filesize output
$if(
$strchr($get(showfilesize),0),,
$puts(fsize,$div(%_filesize%,1048576).$num($div($mul($mod(%_filesize%,1048576),100),1048576),2) $get(anno)MB$char(10))
$char(1)C$get(color1)$get(fsize)
)

/////////// red zero play count message
$if(
$strchr($get(showsth),0),,
$char(10)
$if(%play_counter%,,$char(1)C$get(colora)$if($strchr($get(nihongo),1),もう 再生しなかった。,Song has yet to be played.))
)

///////♪///////

i pretty much understand all the code ive used now, so if there are any bugs i might
be able to fix them, especially since they will probably be ones that are
my fault ^^;

but anyways, i didnt really see any problems with the songs that i tested, so...

edit: now the custom progress bar has its own length
edit2: fixed the tracknumber bug


//////♪ enjoy! ♪//////
-giri_giri

foo_uie_trackinfo

Reply #370
Quote
Neil K.'s info string for filesize and codec
[a href="index.php?act=findpost&pid=304534"][{POST_SNAPBACK}][/a]

I stole it from someone else so.. 

foo_uie_trackinfo

Reply #371
I rewrote my whole code, and added compatibility for streams


foo_uie_trackinfo

Reply #372
Wow, how do you do the stream info, that looks coool

foo_uie_trackinfo

Reply #373
Hey thanks for the creds, giri_giri. It wasn't that great an accomplishment tho. And part of my other code has been copied from someone else and then modified to suit my needs. My TAGZ-knowledge is probably on par with yours.

synth7: I wanna know about the streaminfo too.

foo_uie_trackinfo

Reply #374
I asked about a way to identify streams with TAGZ, and someone mentioned that they dont have a LENGTH tag, so I use that to see if it's a stream or not

Code: [Select]
$if(%_length%,,$get(spacer2)$get(info)'Listened For:' $get(streamcolor)%_time_elapsed%$char(10))
$if(%_length%,,$get(spacer2)$get(info)'Bitrate:' $get(streamcolor)$if2($pad(%__bitrate_dynamic%,3)'kbps',$if2(%__bitrate%'kbps',))$char(10))
$if(%_length%,,$get(spacer2)$get(info)'Location:' $get(streamcolor)$replace(%_path_raw%,%_filename_ext%,)$char(10))


it's basically just $if(%_length%,<NORMAL SONG>,<STREAM>)

On an unrelated note, is foo_ui_trackinfo still being updated? I've got a few ideas I'd like to toss out there, wondering if it's worth it.

 
SimplePortal 1.0.0 RC1 © 2008-2019