Hydrogenaudio Forums

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: Phi on 2004-11-13 08:30:16

Title: foo_uie_trackinfo
Post by: Phi on 2004-11-13 08:30:16
I figured it would be handy to have a sidebar panel that displayed some info (via TAGZ) about the currently playing or currently selected track. This will probably be a little redundant for people with complex/complete playlist displays, but for others that have limited info displayed in their playlist I hope this will be useful to you.

Check out a basic screenshot here (http://yallara.cs.rmit.edu.au/~kspear/foobar/img/trackinfo_ss.png).

The panel has two modes: Switch between these modes by either double left-clicking or single middle-clicking on the panel. It also supports drag and drop in both directions: dragging a file over the panel will temporarily show the info for that track, and dropping will display that info until you left click.

You can configure the display for all modes using a single TAGZ formatting string in the preferences. It supports the regular TAGZ and special fields (%_isplaying%,%_ispaused%,%_time_total%,etc), plus a few specific to the panel:To get a line-break use $char(10). You can also change the alignment of a single line by putting either $char(1)C or $char(1)R at the very start of the line, where the C and R stand for Centered and Right (left aligned is the default). Below I have included the script responsible for the above screenshot, so check that out if you are unsure. Obviously you'd want some technical info displayed, but that is just an example. Most of you guys are much better at this than I am anyway.

Latest version (0.1.1):
foo_uie_trackinfo.dll (http://yallara.cs.rmit.edu.au/~kspear/foobar/releases/foo_uie_trackinfo.dll)
foo_uie_trackinfo-src.zip (http://yallara.cs.rmit.edu.au/~kspear/foobar/releases/foo_uie_trackinfo-src.zip)

Note: Make sure you download foo_ui_columns (http://www.hydrogenaudio.org/forums/index.php?showtopic=28647&view=findpost&p=89754)  v0.1.2 beta 4 (or newer) if you are expecting to add this panel to a sidebar (as seen in the screenshot).

Uses some code from kode54's foo_osd (http://www.saunalahti.fi/cse/kode54/index.php), and foosion's foo_history (http://www.stud.uni-karlsruhe.de/~uzbs/fb2k/html/).

Formatting string used in screenshot:
Code: [Select]
$if(%_trackinfo_notrack%,
$char(10)$char(10)$char(1)CNo track playing,
$char(1)Ca0caf3%_trackinfo_mode% mode$char(10)
$char(1)C$if(%_isplaying%,$select($add(1,$mod(%_time_remaining_seconds%,4)), ,.,..,...),)$char(10)
dcab50Artist:$char(10)
$char(1)C4040ff%artist%$char(10)
dcab50Title:$char(10)
$char(1)C4040ff%title%$char(10)
dcab50Release:$char(10)
$char(1)C4040ff%album%)


You can stop reading now .
Title: foo_uie_trackinfo
Post by: Saint on 2004-11-13 10:02:46
Great plugin!

keep up the good work
Title: foo_uie_trackinfo
Post by: Saint on 2004-11-13 10:54:06
This is just a quick thing i came up with, will fefine it a little more later
Screenshot (http://visualrealmz.org/public/foo.png)

and heres the code
Code: [Select]
$if(%_trackinfo_notrack%,
$char(10)$char(10)$char(1)CNo track playing,
$char(1)C$if(%_isplaying%,$select($add(1,$mod(%_time_remaining_seconds%,4)), ,.,..,...),)$char(10)
$char(1)C000000Album Information$char(10)
000000Artist:                  4040ff%artist%$char(10)
000000Title:                    4040ff%title%$char(10)
000000Album:                 4040ff%album%)$char(10)$char(10)
$char(1)C000000Technical Information$char(10)
000000Track Bitrate:      4040ff%__bitrate% Kbit/s$char(10)
000000Time:                    4040ff%_time_elapsed% / %_time_total%$char(10)
000000Track Gain:          4040ff%__replaygain_track_gain%$char(10)
000000Album Gain:         4040ff%__replaygain_album_gain%$char(10)


hmm it seems to get rid of the squares around the colour codes :/
Title: foo_uie_trackinfo
Post by: jkwarras on 2004-11-13 11:25:33
Thanks! 

Playing with it right now....
Title: foo_uie_trackinfo
Post by: Tomacco_Boy on 2004-11-13 11:28:27
Yeah great work, thanks been hoping for something like this for a while. 
Title: foo_uie_trackinfo
Post by: anza on 2004-11-13 12:12:33
Great work!  Now get back on working with foo_uie_tabs!

Damn I just love all these new UIEs

Also, could you add a "word wrap" feature? This would be really useful for displaying lyrics, as the lines tend to get clipped. Also a vertical scrollbar would also be nice when the displayed info doesn't fit...
Title: foo_uie_trackinfo
Post by: syrek on 2004-11-13 12:22:26
Quote
Great work!  Now get back on working with foo_uie_tabs!

Damn I just love all these new UIEs

Also, could you add a "word wrap" feature? This would be really useful for displaying lyrics, as the lines tend to get clipped.
[a href="index.php?act=findpost&pid=253544"][{POST_SNAPBACK}][/a]


is it posible to add album art into this 
Title: foo_uie_trackinfo
Post by: kalmark on 2004-11-13 13:19:42
I was thinking about album art too, but right now this seems to be text only...I hope an album art UIE can be implemented, sadly I'm not good in foobar component programming
Title: foo_uie_trackinfo
Post by: linus on 2004-11-13 15:42:31
for me to album art is real a must...

edit: typo
Title: foo_uie_trackinfo
Post by: free on 2004-11-13 15:46:55
Coool uie
Title: foo_uie_trackinfo
Post by: eliazu on 2004-11-13 16:28:35
plz add option to see the album cover. it will be really great.
Title: foo_uie_trackinfo
Post by: Schinkentoni on 2004-11-13 16:29:55
Great plugin so far.
But it would be even usefuller to me, if one could add it to the toolbar. Is this possible?
Thanks
Title: foo_uie_trackinfo
Post by: upNorth on 2004-11-13 17:10:00
Quote
Great plugin so far.
But it would be even usefuller to me, if one could add it to the toolbar. Is this possible?
Thanks
[a href="index.php?act=findpost&pid=253593"][{POST_SNAPBACK}][/a]
Preferences->Display->Columns UI->Other->List all toolbars

Edit: Phi, could you please add support for $tab() ?
Edit2: And maybe make "dynamic info" optional? Display is flickering from time to time, and I suppose it's wasting some CPU cycles too when you don't have animations. Just a thought...

Btw: Thanks for making yet another plugin/panel 
Title: foo_uie_trackinfo
Post by: jokull on 2004-11-13 17:55:10
Great. Anyone have a cool format string to post?

EDIT: Suggestion: Double clicking the information area brings up the special info tag editor.
Title: foo_uie_trackinfo
Post by: desigrid on 2004-11-13 19:59:53
Phi, thanks for this great UIE! Been waiting for this ever since panel support was added to Columns UI.

Request: Besides now playing and follow cursor modes, could you add an additional mode that automatically switches to now playing mode when a track is currently playing and back to follow cursor when no track is playing?
Title: foo_uie_trackinfo
Post by: stroke on 2004-11-13 20:25:39
Quote
Anyone have a cool format string to post?
[a href="index.php?act=findpost&pid=253611"][{POST_SNAPBACK}][/a]


I don't know if it's cool, but anyway here it is:
Code: [Select]
$char(1) Mode: %_trackinfo_mode%$char(10)$char(10)$if(%_trackinfo_notrack%,No track,
------------------------------------------------------------------------------------------$char(10)
$char(1)CAbout the song:$char(10)
Artist: %artist%$char(10)
Title: %title%  ->%_length%<-$char(10)
Album: $if3(%album%,still unknown))$char(10)
Release date: $if3(%date%,not available yet)$char(10)
Comments: $if3(%comment%, no comments available)$char(10)
------------------------------------------------------------------------------------------$char(10)
$char(1)CTechnical stuff:$char(10)
$char(1)CCodec: %__codec%                                Bitrate: %__bitrate% Kbit/s$char(10)
Track Gain: $if3(%__replaygain_track_gain%, RG not applied)$char(10)
Album Gain: $if3(%__replaygain_album_gain%, RG not applied)$char(10)
------------------------------------------------------------------------------------------$char(10)
$char(1)CStatistics:$char(10)
This song was played %play_counter% times so far. $char(10)
Last played: %play_date% at %play_time%$char(10)
My rating: $if3(%rating% stars, not rated)


screenshot:

(http://img7.exs.cx/img7/2868/foobar_track_info_conf.png)
Title: foo_uie_trackinfo
Post by: free on 2004-11-13 21:17:16
My  fstring
screenshot
http://img103.exs.cx/my.php?loc=img103&ima...ooooooooooo.png (http://img103.exs.cx/my.php?loc=img103&image=foooooooooooooo.png)

Code: [Select]
DCAE8DMode: %_trackinfo_mode%$char(10)$if(%_trackinfo_notrack%,No track,
$char(1)C0CEBA4Song Info$char(10)
D7B997Title: ffffff%title%$char(10)
D7B997Artist: F3EAE0%artist%$char(10)
D7B997Album: F3EAE0%album%$char(10)
D7B997Date: F3EAE0%date%)$char(10)
D7B997Genre: F3EAE0%genre%$char(10)
$char(1)C0CEBA4Tech Info$char(10)
D7B997Codec: F3EAE0%__codec% $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)
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)
Title: foo_uie_trackinfo
Post by: Silverbolt on 2004-11-13 21:55:03
free: nice.
Title: foo_uie_trackinfo
Post by: Messer on 2004-11-13 22:35:40
Code: [Select]
$select($add(1,$mod(%_time_elapsed_seconds%,10)), o $char(10)<!>
$char(10)< >$char(10)$char(10), o/$char(10)<! $char(10) <>$char(10)
$char(10), o>$char(10)<! $char(10) <>$char(10)$char(10),<o>
$char(10) ! $char(10)< >$char(10)$char(10),<o/
$char(10) ! $char(10)/ >$char(10)$char(10), o $char(10)'/!,'
$char(10)/ >$char(10)$char(10), o $char(10)',!>'
$char(10) >>$char(10)$char(10), o $char(10)'<!,'$char(10)<< $char(10)
$char(10), o/$char(10)/! $char(10) >>$char(10)
$char(10), o> $char(10)/!  $char(10)/ > $char(10)
)




(hint: fixed width font recommended)
Title: foo_uie_trackinfo
Post by: upNorth on 2004-11-14 00:03:13
Title: foo_uie_trackinfo
Post by: Silverbolt on 2004-11-14 00:09:52
Messer: best thing I've seen all day
Title: foo_uie_trackinfo
Post by: Sandman2012 on 2004-11-14 04:01:47
Quote
My  fstring
screenshot
http://img103.exs.cx/my.php?loc=img103&ima...ooooooooooo.png (http://img103.exs.cx/my.php?loc=img103ℑ=foooooooooooooo.png)
[a href="index.php?act=findpost&pid=253650"][{POST_SNAPBACK}][/a]

Can you tell me where you got those playback buttons? I'd love to have those for my foobar2000 configuration.
Title: foo_uie_trackinfo
Post by: spaceships on 2004-11-14 07:09:59
stroke mod
Code: [Select]
$char(1) Mode: ffffff%_trackinfo_mode%$char(10)$char(10)$if(%_trackinfo_notrack%,No track,
------------------------------------------------------------------------------------------$char(10)
$char(1)CAbout the song:$char(10)
Artist: ffffff%artist%$char(10)
Title: ffffff%title%$char(10)Time: ffffff$if(%_isplaying%,%_time_elapsed% '/' )%_length%$char(10)
Track Number: ffffff$num(%tracknumber%,1)$char(10)
Album: ffffff$if3(%album%,still unknown))$char(10)
Release date: ffffff$if3(%date%,not available)$char(10)

------------------------------------------------------------------------------------------$char(10)
$char(1)CTechnical stuff:$char(10)
$char()Codec: ffffff%__codec%                              
$char(10)Bitrate: ffffff%__bitrate% Kbit/s$char(10)
Track Gain: ffffff$if3(%__replaygain_track_gain%, RG not applied)$char(10)
Album Gain: ffffff$if3(%__replaygain_album_gain%, RG not applied)$char(10)
$if(%play_counter%,------------------------------------------------------------------------------------------$char(10)
$char(1)CStatistics:$char(10)
This song was played ffffff%play_counter% times. $char(10)
Last played: ffffff%play_date% at ffffff%play_time%)



(http://img.photobucket.com/albums/v126/machina1/strokemod.jpg)
Title: foo_uie_trackinfo
Post by: Phi on 2004-11-14 07:18:19
Quote
Great work!  Now get back on working with foo_uie_tabs!

Damn I just love all these new UIEs

Also, could you add a "word wrap" feature? This would be really useful for displaying lyrics, as the lines tend to get clipped. Also a vertical scrollbar would also be nice when the displayed info doesn't fit...
[a href="index.php?act=findpost&pid=253544"][{POST_SNAPBACK}][/a]

Thanks. Heh. I just updated uie_tabs.
Word wrap is a possibility. Technically, you could do it with TAGZ, but the code required gets a bit repetitive. Scrollbar maybe, it would need a bit of a redesign to support that though.

Quote
Edit: Phi, could you please add support for $tab() ?
Edit2: And maybe make "dynamic info" optional? Display is flickering from time to time, and I suppose it's wasting some CPU cycles too when you don't have animations. Just a thought...

Btw: Thanks for making yet another plugin/panel 
[a href="index.php?act=findpost&pid=253602"][{POST_SNAPBACK}][/a]

Yep. I'd planned $tab support for this release, but ran into a few problems. I'll see if I can fix it. And I'll add disabling dynamic info to my todo as well. There is also something I need to try to eliminate of the flickering (not sure if it will make a difference though).

Quote
EDIT: Suggestion: Double clicking the information area brings up the special info tag editor.
[a href="index.php?act=findpost&pid=253611"][{POST_SNAPBACK}][/a]

Yes, thats planned (maybe not with double-click though). The executed command will be configurable.

Quote
Request: Besides now playing and follow cursor modes, could you add an additional mode that automatically switches to now playing mode when a track is currently playing and back to follow cursor when no track is playing?
[a href="index.php?act=findpost&pid=253633"][{POST_SNAPBACK}][/a]

Yeah, I could do that. It'll probably take the form of an option in the preferences to "switch to follow cursor mode when no track is playing." Just to confirm, would you want changing playlist focus to never affect the currently displayed track while a song is playing? Or would you want the displayed track to change when a new song starts, but also allow a change in playlist focus to affect the displayed track?

EDIT: actually, you'd want to be able to switch to and from that mode without going into the prefs, right?

@messer:
Haha. I'm glad the plugin is being put to good use.
Title: foo_uie_trackinfo
Post by: desigrid on 2004-11-14 07:49:09
Quote
Just to confirm, would you want changing playlist focus to never affect the currently displayed track while a song is playing? Or would you want the displayed track to change when a new song starts, but also allow a change in playlist focus to affect the displayed track?
The former... Thanks Phi!
Title: foo_uie_trackinfo
Post by: mazy on 2004-11-14 11:07:16
great plugin, Phi! i've requested something like this as ui extension before .

requests though:
- it could be nice to show album art in the background
- special strings to change fonts (at least for bold / italics / underline variants, changing size would be great too). one way could be letting user to configure few fonts in the preferences (like font #1, #2, #3) and then switch between them using special string.
Title: foo_uie_trackinfo
Post by: jkwarras on 2004-11-14 12:04:38
Quote
- it could be nice to show album art in the background
[{POST_SNAPBACK}][/a] (http://index.php?act=findpost&pid=253759")

For those requesting album art, rexy as just released a panel album art, right now it only display folder.jpg in the folder where the file is, but it's a good start
Get it here: [a href="http://www.hydrogenaudio.org/forums/index.php?showtopic=29383]http://www.hydrogenaudio.org/forums/index....showtopic=29383[/url]
Title: foo_uie_trackinfo
Post by: upNorth on 2004-11-14 12:16:36
Quote
Quote
- it could be nice to show album art in the background
[{POST_SNAPBACK}][/a] (http://index.php?act=findpost&pid=253759")

For those requesting album art, rexy as just released a panel album art, right now it only display folder.jpg in the folder where the file is, but it's a good start
Get it here: [a href="http://www.hydrogenaudio.org/forums/index.php?showtopic=29383]http://www.hydrogenaudio.org/forums/index....showtopic=29383[/url]
[a href="index.php?act=findpost&pid=253776"][{POST_SNAPBACK}][/a]
Don't you think we would benefit from some competition? 

IMHO it would make sense to combine albumart with track info. Then you could have it as one single tab in foo_uie_tabs.
Title: foo_uie_trackinfo
Post by: Phi on 2004-11-14 12:43:42
Quote
great plugin, Phi! i've requested something like this as ui extension before .

requests though:
- it could be nice to show album art in the background
- special strings to change fonts (at least for bold / italics / underline variants, changing size would be great too). one way could be letting user to configure few fonts in the preferences (like font #1, #2, #3) and then switch between them using special string.
[a href="index.php?act=findpost&pid=253759"][{POST_SNAPBACK}][/a]

Thanks.

Although it seems like a popular request, I don't have any plans to add album art support at the moment.

I had the second idea in mind when I was designing the plugin, and it wouldn't be too hard to support. Won't happen for a while though. As well as fonts, it might be possible to support embedded images (and incidentally, album art), but I'm not sure how well that would work.
Title: foo_uie_trackinfo
Post by: JEN on 2004-11-14 12:57:52
$char(1)CStatistics:$char(10)
This song was played ffffff%play_counter% times. $char(10)
Last played: ffffff%play_date% at ffffff%play_time%)

When i use this script , get the following format for the date and time

This song was played 2 times.
Last played: 111104
at 225519

when if should be
This song was played 2 times.
Last played: 11/11/2004
at 22:55:09

How do i fix this?

Thanks
Title: foo_uie_trackinfo
Post by: Phi on 2004-11-14 13:13:24
Quote
$char(1)CStatistics:$char(10)
This song was played ffffff%play_counter% times. $char(10)
Last played: ffffff%play_date% at ffffff%play_time%)

When i use this script , get the following format for the date and time

This song was played 2 times.
Last played: 111104
at 225519

when if should be
This song was played 2 times.
Last played: 11/11/2004
at 22:55:09

How do i fix this?
[a href="index.php?act=findpost&pid=253793"][{POST_SNAPBACK}][/a]

You need to change the format of the play_date and play_time tags in the play counter preferences to match how you want them to look. Although, that won't help you fix the play count tags that have already been added to files. You'll have to use some masstagger script for that.
Title: foo_uie_trackinfo
Post by: JEN on 2004-11-14 13:29:40
Thanks
Title: foo_uie_trackinfo
Post by: free on 2004-11-14 19:26:37
Sandman2012 sure:
http://pix.mail333.com/new_simple_style.zip (http://pix.mail333.com/new_simple_style.zip)
Config&buttons
Title: foo_uie_trackinfo
Post by: linus on 2004-11-14 21:27:36
@Phi:
Thanks for this plugin (and, obviously,  for the others!)

@Messer:

Quote
Code: [Select]
$select($add(1,$mod(%_time_elapsed_seconds%,10)), o $char(10)<!>
$char(10)< >$char(10)$char(10), o/$char(10)<! $char(10) <>$char(10)
$char(10), o>$char(10)<! $char(10) <>$char(10)$char(10),<o>
$char(10) ! $char(10)< >$char(10)$char(10),<o/
$char(10) ! $char(10)/ >$char(10)$char(10), o $char(10)'/!,'
$char(10)/ >$char(10)$char(10), o $char(10)',!>'
$char(10) >>$char(10)$char(10), o $char(10)'<!,'$char(10)<< $char(10)
$char(10), o/$char(10)/! $char(10) >>$char(10)
$char(10), o> $char(10)/!  $char(10)/ > $char(10)
)




(hint: fixed width font recommended)
[a href="index.php?act=findpost&pid=253670"][{POST_SNAPBACK}][/a]

   
I have put this at top of my string.
It remember the display of my AVC Sout Player...
(btw: you have forgotten a "$char(10)" at the end....) 
Cheers
Title: foo_uie_trackinfo
Post by: Morgensonne on 2004-11-14 22:25:43
Quote
$char(1)CStatistics:$char(10)
...
at 225519

when if should be
This song was played 2 times.
Last played: 11/11/2004
at 22:55:09

How do i fix this?
[a href="index.php?act=findpost&pid=253793"][{POST_SNAPBACK}][/a]


You can fix your displayed time by using $substr(a,b,c)

For your time-display it has to be:
$substr(%play_time%,0,2):$substr(%play_time%,3,4).$substr(%play_date%,5,6)

Hope i could help
Title: foo_uie_trackinfo
Post by: Skates on 2004-11-14 22:56:15
Adding covert art support would be awesome, especially if it read it from the tag in the MP3!
Title: foo_uie_trackinfo
Post by: badrad on 2004-11-15 02:59:49
*deleted double post*
Title: foo_uie_trackinfo
Post by: badrad on 2004-11-15 03:04:16
Very useful plugin, thanks. I am loving these foo_uie plugins.

And thanks for your string free.
Title: foo_uie_trackinfo
Post by: Killmaster on 2004-11-15 03:30:03
Quote
Quote
My  fstring
screenshot
http://img103.exs.cx/my.php?loc=img103&ima...ooooooooooo.png (http://img103.exs.cx/my.php?loc=img103ℑ=foooooooooooooo.png)
[a href="index.php?act=findpost&pid=253650"][{POST_SNAPBACK}][/a]

Can you tell me where you got those playback buttons? I'd love to have those for my foobar2000 configuration.
[a href="index.php?act=findpost&pid=253714"][{POST_SNAPBACK}][/a]


Seconding that, plus the name of that XP theme
Title: foo_uie_trackinfo
Post by: Sandman2012 on 2004-11-15 05:08:37
Quote
Sandman2012 sure:
http://pix.mail333.com/new_simple_style.zip (http://pix.mail333.com/new_simple_style.zip)
Config&buttons
[a href="index.php?act=findpost&pid=253824"][{POST_SNAPBACK}][/a]

Thanks man. Those buttons rock.  Oddly, my config is already similar to the one you posted.

edit: couldn't open the ZIP for some reason. :S
Title: foo_uie_trackinfo
Post by: badrad on 2004-11-15 05:16:39
Quote
edit: couldn't open the ZIP for some reason. :S

Did you right click and say save as? Try just clicking on the link, as it takes you to another webpage where you can click to download (guess its angry about the referrer), and it worked for me.
Title: foo_uie_trackinfo
Post by: metal_termite on 2004-11-15 12:20:22
there is a plugin like this for winamp, however all the customization is done in html, and the tagz are input as variables. it would also be cool if this was done like that. it would be VERY customizable.

it would be sweet if this plugin could incorporate rexy's album art plugin, so in essence you'd be able to have a tag to call up the album art and indicate what dimensions you want it to have.

nice stuff nonetheless.

p.s. when i display the %comment% tag it outputs as one long line without any word wrap.
Title: foo_uie_trackinfo
Post by: Phi on 2004-11-15 15:29:24
Updated (http://yallara.cs.rmit.edu.au/~kspear/foobar/releases/foo_uie_trackinfo.dll).

Changes:
Quote
there is a plugin like this for winamp, however all the customization is done in html, and the tagz are input as variables. it would also be cool if this was done like that. it would be VERY customizable.

Sounds good, but a lot of work.

Quote
p.s. when i display the %comment% tag it outputs as one long line without any word wrap.

Use $meta(tagname) for multiline tags. i.e., $meta(comment). And you may need to use $replace($meta(comment),$char(13),) to get rid of any carriage returns. Multiline tags don't look very good though, since alignment and color is reset after every line (i.e., the first line will be formatted but the others will use the default).
Title: foo_uie_trackinfo
Post by: metal_termite on 2004-11-15 15:53:38
thanks!
Title: foo_uie_trackinfo
Post by: Sandman2012 on 2004-11-15 17:50:08
Quote
Quote
edit: couldn't open the ZIP for some reason. :S

Did you right click and say save as? Try just clicking on the link, as it takes you to another webpage where you can click to download (guess its angry about the referrer), and it worked for me.
[a href="index.php?act=findpost&pid=253930"][{POST_SNAPBACK}][/a]

I'm using Firefox. The original link took me to a page and from there I DLed the ZIP. I'll try again - maybe it got corrupted in the download or something.

edit: got 'em that time. Thanks,
Title: foo_uie_trackinfo
Post by: Zurman on 2004-11-15 20:31:23
Quote
Updated (http://yallara.cs.rmit.edu.au/~kspear/foobar/releases/foo_uie_trackinfo.dll).

Changes:
  • window should now be flicker-free

  • word-wrap

  • mouse-wheel scrolling

  • option to disable per-second update

Quote
there is a plugin like this for winamp, however all the customization is done in html, and the tagz are input as variables. it would also be cool if this was done like that. it would be VERY customizable.

Sounds good, but a lot of work.

Quote
p.s. when i display the %comment% tag it outputs as one long line without any word wrap.

Use $meta(tagname) for multiline tags. i.e., $meta(comment). And you may need to use $replace($meta(comment),$char(13),) to get rid of any carriage returns. Multiline tags don't look very good though, since alignment and color is reset after every line (i.e., the first line will be formatted but the others will use the default).
[a href="index.php?act=findpost&pid=254044"][{POST_SNAPBACK}][/a]
Great plugin !

Why doesnt scrolling work here?
Title: foo_uie_trackinfo
Post by: anza on 2004-11-15 21:23:29
Scrolling works here almost perfectly. The only problem is that the screen (or the trackinfo panel area) gets cluttered when you scroll too much...
Title: foo_uie_trackinfo
Post by: badrad on 2004-11-15 21:55:40
New version is working great.
Title: foo_uie_trackinfo
Post by: juglesh on 2004-11-15 22:46:35
Quote
Why doesnt scrolling work here?
[a href="index.php?act=findpost&pid=254129"][{POST_SNAPBACK}][/a]


i thought not as well, but you gotta scroll with yer mouse wheel, there is no scroll bar.  seems like there should be... 

if you use your scroll alot, like reading a very long comment, then click on a track with less info, the panel will remain scrolled up, you will have to scroll back down to see the second track info.  although, you will only have to scroll down one click.  hmm, you just have to move your scroll wheel one click either direction and the second track will be scrolled up to the top.  uhh, unless the second track has a long comment also...    anyway, the thing is not resetting itself on track changes 

another cool pluggin, thanks!

edit:  could it made so that i could select and copy the info in the panel?
Title: foo_uie_trackinfo
Post by: Morgensonne on 2004-11-15 22:52:14
Great plugin so far... waiting for $tab() / $char(9) support. Really looking forward for new releases.
Title: foo_uie_trackinfo
Post by: mazy on 2004-11-15 23:41:34
Quote
thanks!
[a href="index.php?act=findpost&pid=254050"][{POST_SNAPBACK}][/a]
talking about ear? i liked that waaay back when i was using winamp .

Phi: last version is great, but could you make that world-wrap configurable? i would like to have it disabled. and i have request, though i'm almost sure that it would be way too hard to implement - showing cut off text in hints, when you hower mouse over them. too hard and messy, right? ... anyway, great plugin, thanks!
Title: foo_uie_trackinfo
Post by: desigrid on 2004-11-16 05:57:20
Minor bug: panel does not display information of currently focused track on fb2k's start-up (first playlist item is shown instead). Otherwise, new version works great here .
Title: foo_uie_trackinfo
Post by: rexy on 2004-11-16 06:25:16
This is a wonderful plugin if you want to remove the status bar, but still have info you want to see but you don't want it to encumber the playlist... you know?
Anyhow, thanks!
Title: foo_uie_trackinfo
Post by: Sandman2012 on 2004-11-16 06:42:26
Quote
This is a wonderful plugin if you want to remove the status bar, but still have info you want to see but you don't want it to encumber the playlist... you know?
Anyhow, thanks!
[a href="index.php?act=findpost&pid=254247"][{POST_SNAPBACK}][/a]

Yeah. I now have my playlist pretty small - just artist and song title - and use the trackinfo tab for album and other info.

Thanks Phi.

edit: I am "teh" typo king!
Title: foo_uie_trackinfo
Post by: Chairman85 on 2004-11-16 07:12:07
Quote
Phi: last version is great, but could you make that world-wrap configurable? i would like to have it disabled.


Seconded
Title: foo_uie_trackinfo
Post by: Zurman on 2004-11-16 11:08:23
Quote
Quote
Why doesnt scrolling work here?
[a href="index.php?act=findpost&pid=254129"][{POST_SNAPBACK}][/a]


i thought not as well, but you gotta scroll with yer mouse wheel, there is no scroll bar.  seems like there should be... 

if you use your scroll alot, like reading a very long comment, then click on a track with less info, the panel will remain scrolled up, you will have to scroll back down to see the second track info.  although, you will only have to scroll down one click.  hmm, you just have to move your scroll wheel one click either direction and the second track will be scrolled up to the top.  uhh, unless the second track has a long comment also...    anyway, the thing is not resetting itself on track changes 

another cool pluggin, thanks!

edit:  could it made so that i could select and copy the info in the panel?
[a href="index.php?act=findpost&pid=254171"][{POST_SNAPBACK}][/a]
I mean : scrolling with mouse wheel doesnt work 

Maybe its a driver probleme since I didnt install them? (but the mouse wheel works everywhere else)
Title: foo_uie_trackinfo
Post by: Phi on 2004-11-16 11:34:22
Thanks for the comments guys.

Quote
Quote
Why doesnt scrolling work here?
[a href="index.php?act=findpost&pid=254129"][{POST_SNAPBACK}][/a]


i thought not as well, but you gotta scroll with yer mouse wheel, there is no scroll bar.  seems like there should be... 

if you use your scroll alot, like reading a very long comment, then click on a track with less info, the panel will remain scrolled up, you will have to scroll back down to see the second track info.  although, you will only have to scroll down one click.  hmm, you just have to move your scroll wheel one click either direction and the second track will be scrolled up to the top.  uhh, unless the second track has a long comment also...    anyway, the thing is not resetting itself on track changes 

another cool pluggin, thanks!

edit:  could it made so that i could select and copy the info in the panel?
[a href="index.php?act=findpost&pid=254171"][{POST_SNAPBACK}][/a]

Scroll bar is coming, I just haven't coded it yet. Ditto for the reset on new track. I don't think you'll ever be able to select/copy text though, sorry.

Quote
Phi: last version is great, but could you make that world-wrap configurable? i would like to have it disabled. and i have request, though i'm almost sure that it would be way too hard to implement - showing cut off text in hints, when you hower mouse over them. too hard and messy, right? ... anyway, great plugin, thanks!
[a href="index.php?act=findpost&pid=254183"][{POST_SNAPBACK}][/a]

I knew someone was going to ask to disable the word-wrap.  Yeah I can do that.
Showing cut off text would be much trickier, but there are a couple of tricks I could try to make this easier. Not for a while though.

Quote
Minor bug: panel does not display information of currently focused track on fb2k's start-up (first playlist item is shown instead). Otherwise, new version works great here .
[a href="index.php?act=findpost&pid=254243"][{POST_SNAPBACK}][/a]

Thanks. I'll have a look.

@Zurman:
What OS are you running? I'm not sure if mouse-wheel scrolling will work under Win98 or older. You'll have a scroll bar soon, anyway.
Title: foo_uie_trackinfo
Post by: nIRV on 2004-11-16 11:44:43
some suggestions/requests

- the word-wrap thing is nice and being able to disable it will be nice but I was wondering if you could make it a step further. I would like to have some text word-wrapped and some other I dont mind being cut by the edges (the normal behaviour without word-wrap) so maybe something like $char(X)W could activate world wrap (of course if you have word-wrap on, everything will be word wrapped so in that case this code would be ignored)

- I was wondering if you could add some more options in your follow-cursor/item selected mode. I was wondering if you could expend it so it can detect multiple selection and have some %_total_selected_lenght%, %_total_selected_items%, etc. variables , that would offer nice possibilities

thanks for the work
nIRV
Title: foo_uie_trackinfo
Post by: Zurman on 2004-11-16 11:58:30
Quote
@Zurman:
What OS are you running? I'm not sure if mouse-wheel scrolling will work under Win98 or older. You'll have a scroll bar soon, anyway.
[a href="index.php?act=findpost&pid=254293"][{POST_SNAPBACK}][/a]
Windows XP (no SP)
Can't wait for this scrollbar 
Title: foo_uie_trackinfo
Post by: Phi on 2004-11-16 12:00:38
Quote
some suggestions/requests

- the word-wrap thing is nice and being able to disable it will be nice but I was wondering if you could make it a step further. I would like to have some text word-wrapped and some other I dont mind being cut by the edges (the normal behaviour without word-wrap) so maybe something like $char(X)W could activate world wrap (of course if you have word-wrap on, everything will be word wrapped so in that case this code would be ignored)

Hrmm... well considering I was going to make word-wrap optional, this does seem logical I guess.

Quote
- I was wondering if you could add some more options in your follow-cursor/item selected mode. I was wondering if you could expend it so it can detect multiple selection and have some %_total_selected_lenght%, %_total_selected_items%, etc. variables , that would offer nice possibilities
[a href="index.php?act=findpost&pid=254296"][{POST_SNAPBACK}][/a]

Sure, I've had multiple-selection planned from the start.


@Zurman:
Weird. I have no idea why it wouldn't be working for you.
EDIT: does scrolling work in the albumlist panel when you move your mouse over it (without actually clicking in the albumlist)?
Title: foo_uie_trackinfo
Post by: NEMO7538 on 2004-11-17 18:46:23
Nice plugin indeed !

The behavior however for multiple instances could be improved in comparison to other plugins. See This test (http://www.hydrogenaudio.org/forums/index.php?showtopic=28869&view=findpost&p=254562) fore more information
Title: foo_uie_trackinfo
Post by: jkwarras on 2004-11-17 21:17:06
Quote
The behavior however for multiple instances could be improved in comparison to other plugins. See This test (http://www.hydrogenaudio.org/forums/index.php?showtopic=28869&view=findpost&p=254562) fore more information
[a href="index.php?act=findpost&pid=254566"][{POST_SNAPBACK}][/a]

Phi is the author of foo_uie_tabs + foo_uie_trackinfo + foo_uie_albumart, so I think he already knows that info 
Title: foo_uie_trackinfo
Post by: picmixer on 2004-11-17 21:19:10
Quote
Quote
The behavior however for multiple instances could be improved in comparison to other plugins. See This test (http://www.hydrogenaudio.org/forums/index.php?showtopic=28869&view=findpost&p=254562) fore more information
[a href="index.php?act=findpost&pid=254566"][{POST_SNAPBACK}][/a]

Phi is the author of foo_uie_tabs + foo_uie_trackinfo + foo_uie_albumart, so I think he already knows that info 
[a href="index.php?act=findpost&pid=254603"][{POST_SNAPBACK}][/a]


Hmh, afaik rexy is the author of foo_uie_albumart.
Title: foo_uie_trackinfo
Post by: jkwarras on 2004-11-17 21:27:47
Quote
Hmh, afaik rexy is the author of foo_uie_albumart.
[a href="index.php?act=findpost&pid=254605"][{POST_SNAPBACK}][/a]

Ups! Sorry, it's true.
Title: foo_uie_trackinfo
Post by: jkwarras on 2004-11-17 23:15:59
Phi: When I use %comment% or$meta(comment) the panels a while to load the text if it's a long one. I use to store allmuisc album descriptions in the comment tag, and I'm using this panel to display it, but since it's a long text normally I have to scroll, and it takes a lot of time to scroll and display the text, and I see foobar usage goes up and program doesn't respond very well. When I remove the comment tag everything is fine. Is this normal? BTW: I'm using id3v2.

Thanks for your panel, it's really great 
Title: foo_uie_trackinfo
Post by: Phi on 2004-11-18 12:12:05
Quote
Phi: When I use %comment% or$meta(comment) the panels a while to load the text if it's a long one. I use to store allmuisc album descriptions in the comment tag, and I'm using this panel to display it, but since it's a long text normally I have to scroll, and it takes a lot of time to scroll and display the text, and I see foobar usage goes up and program doesn't respond very well. When I remove the comment tag everything is fine. Is this normal? BTW: I'm using id3v2.

Thanks for your panel, it's really great 
[a href="index.php?act=findpost&pid=254634"][{POST_SNAPBACK}][/a]

Thanks. The word-wrap code I'm using currently is painfully inefficient (not to mention the drawing code), so thats probably the cause. I'm currently deciding how to incorporate all of the feature requests so far into a less hacked version of the plugin, but  that code will be improved eventually.

@NEMO7538:
Multiple instances will be supported in the future.
Title: foo_uie_trackinfo
Post by: jokull on 2004-11-18 15:20:14
I wasn't sure where to ask this question but here goes...

I saw a screenshot and some code which had "historical" information eg. how many times the song had been played etc. Is this a feature of a seperate component? If so what is the name and where can I find it? Thanks.

Great panel btw.

EDIT: I made a clever search for some %play_counter% syntax and found it. For those wondering it's a component called simple playcount.
Title: foo_uie_trackinfo
Post by: juglesh on 2004-11-18 19:27:06
feature request:
drag items from other panels, dialogs to _track info.  i was thinking history, but could be usefull for other things like enque, database explorer, playlistfind, etc.

thanks again,
Title: foo_uie_trackinfo
Post by: foosion on 2004-11-18 19:52:59
Quote
feature request:
drag items from other panels, dialogs to _track info.  i was thinking history, but could be usefull for other things like enque, database explorer, playlistfind, etc.[a href="index.php?act=findpost&pid=254835"][{POST_SNAPBACK}][/a]
The problem here is not, that foo_uie_trackinfo does not support dropping of tracks, but that foo_history does not support dragging of tracks (though that will be added again in a later version).
Title: foo_uie_trackinfo
Post by: rexy on 2004-11-21 00:30:52
An alternative to word wrapping would be a scrolling title. Here is the TAGZ code that I created in order to do that:
Code: [Select]
$puts(title,%title%)
$puts(padding,     )
$puts(size,43)
$ifgreater($len(%title%),$get(size),
$puts(title,$get(title)$get(padding))
$substr(
    $get(title)$get(title)    ,
    $add(    1    ,
 $mod(    %_time_elapsed_seconds%    ,
     $len($get(title))
 )
    )    ,
    $add(    $add(    1    ,
     $mod(    %_time_elapsed_seconds%    ,
   $len($get(title))
     )
 ),
 $get(size)
    )
),$get(title)
)

Change $puts(size,43) to the amount of characters you can show in one line. You could also change %title% in $puts(title,%title%) to show whatever you want or to have more than one tag in the scrolling text. Also change $puts(padding,    ) to have whatever padding you'd like.
The only problem with this is that it scrolls slowly because it only scrolls one character per second (is there a way to get the time elapsed in miliseconds through TAGZ?). Another problem, actually, is that it would not look as good with non-monospace fonts, but not terriblly.
Title: foo_uie_trackinfo
Post by: l.s on 2004-11-22 19:20:43
The TrackInfo panel allways redraws the whole panel and not only the modified or revealed area.

Regards, Lars
Title: foo_uie_trackinfo
Post by: Phi on 2004-11-23 11:18:58
Quote
The TrackInfo panel allways redraws the whole panel and not only the modified or revealed area.
[a href="index.php?act=findpost&pid=255524"][{POST_SNAPBACK}][/a]

Correct.
Title: foo_uie_trackinfo
Post by: tberman333 on 2004-11-24 03:35:34
Quote
Quote
Anyone have a cool format string to post?
[a href="index.php?act=findpost&pid=253611"][{POST_SNAPBACK}][/a]


I don't know if it's cool, but anyway here it is:
Code: [Select]
$char(1) Mode: %_trackinfo_mode%$char(10)$char(10)$if(%_trackinfo_notrack%,No track,
------------------------------------------------------------------------------------------$char(10)
$char(1)CAbout the song:$char(10)
Artist: %artist%$char(10)
Title: %title%  ->%_length%<-$char(10)
Album: $if3(%album%,still unknown))$char(10)
Release date: $if3(%date%,not available yet)$char(10)
Comments: $if3(%comment%, no comments available)$char(10)
------------------------------------------------------------------------------------------$char(10)
$char(1)CTechnical stuff:$char(10)
$char(1)CCodec: %__codec%                                Bitrate: %__bitrate% Kbit/s$char(10)
Track Gain: $if3(%__replaygain_track_gain%, RG not applied)$char(10)
Album Gain: $if3(%__replaygain_album_gain%, RG not applied)$char(10)
------------------------------------------------------------------------------------------$char(10)
$char(1)CStatistics:$char(10)
This song was played %play_counter% times so far. $char(10)
Last played: %play_date% at %play_time%$char(10)
My rating: $if3(%rating% stars, not rated)


screenshot:

(http://img7.exs.cx/img7/2868/foobar_track_info_conf.png)
[a href="index.php?act=findpost&pid=253639"][{POST_SNAPBACK}][/a]


Does anyone know what you need to get the "Statistics" working on this code?
Title: foo_uie_trackinfo
Post by: rocketsauce on 2004-11-24 03:50:44
Quote
Quote
Quote
Anyone have a cool format string to post?
[{POST_SNAPBACK}][/a] (http://index.php?act=findpost&pid=253611")


I don't know if it's cool, but anyway here it is:
Code: [Select]
$char(1) Mode: %_trackinfo_mode%$char(10)$char(10)$if(%_trackinfo_notrack%,No track,
------------------------------------------------------------------------------------------$char(10)
$char(1)CAbout the song:$char(10)
Artist: %artist%$char(10)
Title: %title%  ->%_length%<-$char(10)
Album: $if3(%album%,still unknown))$char(10)
Release date: $if3(%date%,not available yet)$char(10)
Comments: $if3(%comment%, no comments available)$char(10)
------------------------------------------------------------------------------------------$char(10)
$char(1)CTechnical stuff:$char(10)
$char(1)CCodec: %__codec%                                Bitrate: %__bitrate% Kbit/s$char(10)
Track Gain: $if3(%__replaygain_track_gain%, RG not applied)$char(10)
Album Gain: $if3(%__replaygain_album_gain%, RG not applied)$char(10)
------------------------------------------------------------------------------------------$char(10)
$char(1)CStatistics:$char(10)
This song was played %play_counter% times so far. $char(10)
Last played: %play_date% at %play_time%$char(10)
My rating: $if3(%rating% stars, not rated)


screenshot:

(http://img7.exs.cx/img7/2868/foobar_track_info_conf.png)
[a href="index.php?act=findpost&pid=253639"][{POST_SNAPBACK}][/a]


Does anyone know what you need to get the "Statistics" working on this code?
[a href="index.php?act=findpost&pid=255844"][{POST_SNAPBACK}][/a]


For the "play count" and "last played" items you need the play counter plugin:

[a href="http://www.hydrogenaudio.org/forums/index.php?showtopic=20719]http://www.hydrogenaudio.org/forums/index....showtopic=20719[/url]

For the track rating you need to use a tag called "rating" and then rate your tracks. This can be done easier using the quick tag plugin.

Rob
Title: foo_uie_trackinfo
Post by: salmonmoose on 2004-11-24 05:37:29
I seem to have a problem with the information updating if I don't have the program set in Follow Curson mode.

Profiles with playback positions don't report the time unless I double click on the track in the playlist, track advance doesn't update at all.

I understand the need for it to be posible to see the selected track info as well as the currently playing info... possibly could there be a set of tags for currently selected and then currently playing? you could then have 2 instances of track info running with info panels set up for each task? yes? no?
Title: foo_uie_trackinfo
Post by: Phi on 2004-11-24 11:42:02
Quote
Profiles with playback positions don't report the time unless I double click on the track in the playlist, track advance doesn't update at all.

I'm not sure what you mean by "profiles with playback positions" here. What formatting fields are you trying to use, specifically? None of the %_time_*% fields will work unless you are in now playing mode, or have selected the currently playing track in follow cursor mode.

Quote
I understand the need for it to be posible to see the selected track info as well as the currently playing info... possibly could there be a set of tags for currently selected and then currently playing? you could then have 2 instances of track info running with info panels set up for each task? yes? no?

I added the %_trackinfo_dropped%, %_trackinfo_followcursor% and %_trackinfo_nowplaying% tagz for that purpose - so you can use a different formatting for each mode that the panel supports. They're intended to be used like this:

Code: [Select]
$if(%_trackinfo_nowplaying%,
//
// we are in playing mode
// formatting string for now playing mode goes here
//
,
$if(%_trackinfo_followcursor%,
//
// formatting for follow cursor mode goes here
//
,
$if(%_trackinfo_dropped%,
//
// formatting code for dropped files goes here
//
,)))

As for multiple instances, when that's done, you will be able to set up each panel independently. Plus a default configuration to fall back on I guess.
Title: foo_uie_trackinfo
Post by: Phi on 2004-11-28 14:10:51
Updated (http://yallara.cs.rmit.edu.au/~kspear/foobar/releases/foo_uie_trackinfo.dll) for the new ui extension api.

No other new changes/bugfixes for now (yes, I am slack ).
Title: foo_uie_trackinfo
Post by: nbv4 on 2004-11-28 23:52:09
Quote
Updated (http://yallara.cs.rmit.edu.au/~kspear/foobar/releases/foo_uie_trackinfo.dll) for the new ui extension api.

No other new changes/bugfixes for now (yes, I am slack ).
[a href="index.php?act=findpost&pid=256539"][{POST_SNAPBACK}][/a]

is there anyway you could provide us with a link to the older version for beta 3? I'm sticking with beta 3 until the album art panel is updated. thanks.
Title: foo_uie_trackinfo
Post by: Phi on 2004-11-29 04:56:30
Quote
is there anyway you could provide us with a link to the older version for beta 3? I'm sticking with beta 3 until the album art panel is updated. thanks.
[a href="index.php?act=findpost&pid=256637"][{POST_SNAPBACK}][/a]

You don't have it already? I'll upload it as soon as I can get to my other computer.
Title: foo_uie_trackinfo
Post by: Phi on 2004-11-29 11:43:40
You can grab the old version from here (http://yallara.cs.rmit.edu.au/~kspear/foobar/releases/foo_uie_trackinfo-0.1.1.zip).
Title: foo_uie_trackinfo
Post by: nbv4 on 2004-11-29 15:37:05
Quote
You can grab the old version from here (http://yallara.cs.rmit.edu.au/~kspear/foobar/releases/foo_uie_trackinfo-0.1.1.zip).
[a href="index.php?act=findpost&pid=256701"][{POST_SNAPBACK}][/a]
thanks a lot. I tried the plugin a few days ado, decided its not really something I want (added too much clutter), then deleted it. Yesterday after discovering the panel tabs plugin, I thought I'd give this one another whirl... But I wasn't willing to give up album art so I couldn't upgrade my columns_ui.
Title: foo_uie_trackinfo
Post by: multifate on 2004-11-29 15:55:50
phi: great job on the plugin
in fact i'm loving all your plugins
got a question about this one tho
right now i have $if(%_trackinfo_nowplaying%,
setup
but when i move my cursor to another song
it changes to that song
is there a way to make the info stay on the current playing song?
if not, then this is a formal request 8)
Title: foo_uie_trackinfo
Post by: Phi on 2004-11-29 16:43:11
Quote
Quote
You can grab the old version from here (http://yallara.cs.rmit.edu.au/~kspear/foobar/releases/foo_uie_trackinfo-0.1.1.zip).
[a href="index.php?act=findpost&pid=256701"][{POST_SNAPBACK}][/a]
thanks a lot. I tried the plugin a few days ado, decided its not really something I want (added too much clutter), then deleted it. Yesterday after discovering the panel tabs plugin, I thought I'd give this one another whirl... But I wasn't willing to give up album art so I couldn't upgrade my columns_ui.
[a href="index.php?act=findpost&pid=256733"][{POST_SNAPBACK}][/a]

Ah, I see. No problem.

Quote
phi: great job on the plugin
in fact i'm loving all your plugins
got a question about this one tho
right now i have $if(%_trackinfo_nowplaying%,
setup
but when i move my cursor to another song
it changes to that song
is there a way to make the info stay on the current playing song?
if not, then this is a formal request 8)
[a href="index.php?act=findpost&pid=256735"][{POST_SNAPBACK}][/a]

Thanks. Are you sure you're in now playing mode? Double-clicking (or middle-clicking) the panel switches between follow-cursor and now-playing modes.
Title: foo_uie_trackinfo
Post by: EZ-man on 2004-11-29 17:23:12
some suggestion
Can latest version support "$transition" command?
(http://ezman2k.myweb.hinet.net/ezfb2k.jpg)
Title: foo_uie_trackinfo
Post by: slayerbeast on 2004-11-29 19:09:04
hey when trackinfo is consuming a lot of CPU.
when it is active, that is....
Maybe a memory leak....
amazing plugin.... what i was waiting for since i started using foobar....
Title: foo_uie_trackinfo
Post by: jkwarras on 2004-11-29 19:37:00
Quote
hey when trackinfo is consuming a lot of CPU.
[a href="index.php?act=findpost&pid=256770"][{POST_SNAPBACK}][/a]

Are you using word wrap? (for ex. comments, etc...) It happeneed to me, I had to don't display those tags.
Title: foo_uie_trackinfo
Post by: upNorth on 2004-11-29 19:44:07
Quote
hey when trackinfo is consuming a lot of CPU.
when it is active, that is....[a href="index.php?act=findpost&pid=256770"][{POST_SNAPBACK}][/a]

Have you tried turning off "Update every second"? I'm not sure how much effect it has, but at least I don't need that frequent updating myself, so I keep it off.
Title: foo_uie_trackinfo
Post by: jkwarras on 2004-11-29 21:09:28
Quote
Have you tried turning off "Update every second"?
[a href="index.php?act=findpost&pid=256777"][{POST_SNAPBACK}][/a]

About this one, it's not working for me in stuff like %rating%, where if I change the rating when the song is playing (and being displayed in the panel) it's not changed in the panel, even if I have the update every second enabled. Other stuff (like time, etc...) is working and updated.

About CPU usage "Update every second"? it's not consuming so much here.
Title: foo_uie_trackinfo
Post by: EZ-man on 2004-11-30 02:25:32
Quote
Have you tried turning off "Update every second"? I'm not sure how much effect it has, but at least I don't need that frequent updating myself, so I keep it off.

progressbar need it
if close it, progressbar won't work.
and play time will be stopped.
Title: foo_uie_trackinfo
Post by: Phi on 2004-11-30 05:08:07
Quote
some suggestion
Can latest version support "$transition" command?
[a href="index.php?act=findpost&pid=256751"][{POST_SNAPBACK}][/a]

I may have done something to break it. I'll have a look.

Quote
hey when trackinfo is consuming a lot of CPU.
when it is active, that is....
Maybe a memory leak....
amazing plugin.... what i was waiting for since i started using foobar....
[a href="index.php?act=findpost&pid=256770"][{POST_SNAPBACK}][/a]

Yeah, thats just due to my inefficient coding. For now all I can suggest is limit the length of each line of info.

Quote
Quote
Have you tried turning off "Update every second"?
[a href="index.php?act=findpost&pid=256777"][{POST_SNAPBACK}][/a]

About this one, it's not working for me in stuff like %rating%, where if I change the rating when the song is playing (and being displayed in the panel) it's not changed in the panel, even if I have the update every second enabled. Other stuff (like time, etc...) is working and updated.
[a href="index.php?act=findpost&pid=256796"][{POST_SNAPBACK}][/a]

I forgot to hook up some callbacks that update the panel when a song is edited. Fixed for the next release (whenever I get around to finishing it).
Title: foo_uie_trackinfo
Post by: slayerbeast on 2004-11-30 11:48:45
True,
Had word wrap on, update every second on, and i've configured trackinfo to show
the lyrics... and all of my songs are tabbed with lyrics!!!!!!!!!! 
But one concern... the previous versionwas fine... something with this one...
well, thanks.... 
Title: foo_uie_trackinfo
Post by: slayerbeast on 2004-11-30 11:59:45
  Phi's right.... ! I came to a very fast conclusion... The slow down happened only to a bunch of mp3's where i have accidently tagged the band's bio as a comment!    any way, I'm back to happy... well eagerly waiting for the next release
Title: foo_uie_trackinfo
Post by: multifate on 2004-11-30 12:52:48
Quote
Quote
phi: great job on the plugin
in fact i'm loving all your plugins
got a question about this one tho
right now i have $if(%_trackinfo_nowplaying%,
setup
but when i move my cursor to another song
it changes to that song
is there a way to make the info stay on the current playing song?
if not, then this is a formal request 8)
[a href="index.php?act=findpost&pid=256735"][{POST_SNAPBACK}][/a]

Thanks. Are you sure you're in now playing mode? Double-clicking (or middle-clicking) the panel switches between follow-cursor and now-playing modes.
[a href="index.php?act=findpost&pid=256743"][{POST_SNAPBACK}][/a]


thanks that worked
lol didn't know i could double click the panel
Title: foo_uie_trackinfo
Post by: EZ-man on 2004-12-01 06:38:04
I'm wonder why it doesn't have scrollbar? 
some words will be cut half
(http://ezman2k.myweb.hinet.net/ezfb2k_2.gif)
Title: foo_uie_trackinfo
Post by: jkwarras on 2004-12-01 07:22:17
Quote
I'm wonder why it doesn't have scrollbar? 
some words will be cut half
Title: foo_uie_trackinfo
Post by: EZ-man on 2004-12-01 08:44:13
If I don't have a mouse-wheel how could I scroll it
Title: foo_uie_trackinfo
Post by: jkwarras on 2004-12-01 10:11:41
Quote
If I don't have a mouse-wheel how could I scroll it
[a href="index.php?act=findpost&pid=257113"][{POST_SNAPBACK}][/a]

Maybe clicking once on the panel and up/down keys woudl work, dunno 
Title: foo_uie_trackinfo
Post by: Phi on 2004-12-01 11:57:58
Quote
Quote
If I don't have a mouse-wheel how could I scroll it
[a href="index.php?act=findpost&pid=257113"][{POST_SNAPBACK}][/a]

Maybe clicking once on the panel and up/down keys woudl work, dunno 
[a href="index.php?act=findpost&pid=257125"][{POST_SNAPBACK}][/a]

Nah, it's mousewheel only until I get around to adding a scroll bar.
Title: foo_uie_trackinfo
Post by: EZ-man on 2004-12-01 13:38:27
Quote
Quote
If I don't have a mouse-wheel how could I scroll it
[a href="index.php?act=findpost&pid=257113"][{POST_SNAPBACK}][/a]

Maybe clicking once on the panel and up/down keys woudl work, dunno 
[a href="index.php?act=findpost&pid=257125"][{POST_SNAPBACK}][/a]

press up/down keys will change the playlist selection
Title: foo_uie_trackinfo
Post by: EZ-man on 2004-12-01 13:42:31
Maybe add enable/disable vertical scroll bar is good
Perhaps some friends don't need it, but some need 
Title: foo_uie_trackinfo
Post by: Olive on 2004-12-01 13:52:23
Good job on the plugin!
One bug (I think): When fb2k starts, the plugin should display info on the cursor'ed playlist item (which as you know is remembered across sessions). That when "start playing at startup" and "resume playback after restart" are unchecked, of course.
Title: foo_uie_trackinfo
Post by: gfngfgf on 2004-12-11 07:00:36
Hey, I've been using this plug-in since it came out and absolutely love it.  I think it's a great idea, and gives me one more part of foobar to play around with.  Thank you, Phi.

I thought I'd share my configuration (it's been a while since someone has  )

Screenshot (http://netfiles.uiuc.edu/shunmgvl/www/foo.png)

Code (http://netfiles.uiuc.edu/shunmgvl/www/fooinfotext.txt)

I think I stick to standard tag names, but I do use %tracktotal% to indicate how many tracks are on an album.  The display should be fine, though, even if you don't have that tag.  If you use a different width or font for your sidebar, you can probably just change "size", "sizeplus1", and then play with the progress bar at the bottom.

The highlight (at least for me) is the scrolling of the title, artist, and album, which is just rexy's code (this post (http://www.hydrogenaudio.org/forums/index.php?showtopic=29363&view=findpost&p=255241)) with some "improvements".  Most significantly, it should now work well for double-width characters (Korean in my screenshot).  Of course, you still have to use a fixed-width font.  I'm using GulimChe because it's the only fixed-width font I've found which displays Korean text.  (btw, I think it's ugly).  Here's just the scrolling code if anyone wants it (again, major credit to rexy for this):

Code: [Select]
$puts(padding,$char(160)$char(160)•$char(160)$char(160))
$puts(size,30)
$puts(title,$replace(%title%, ,$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)
)


"padding" in the first line can be set to whatever you want, and you can replace "%title%" in the third line with whatever you'd like to have scrolled. "size" in the second line is how many characters are displayed on one line.  The "$replace" and all the "$char(160)"s are there to prevent word-wrapping.

Sorry for the long post, but I hope I helped someone
Title: foo_uie_trackinfo
Post by: fladd on 2004-12-12 01:58:07
Can anyone tell me how this plugin works??? I can't see it in my foobar, it is loaded, but not there, it doesn't display.

Thanks
fladd
Title: foo_uie_trackinfo
Post by: Tomacco_Boy on 2004-12-12 02:57:12
Suggestion: Would it be possible to add a config saver/opener in the config dialog, like in foo_syfm ?
Title: foo_uie_trackinfo
Post by: Phi on 2004-12-12 06:23:52
Quote
Can anyone tell me how this plugin works??? I can't see it in my foobar, it is loaded, but not there, it doesn't display.
[{POST_SNAPBACK}][/a] (http://index.php?act=findpost&pid=259198")

Make sure you have [a href="http://www.hydrogenaudio.org/forums/index.php?showtopic=28647&view=findpost&p=89754]foo_ui_columns[/url]  v0.1.2rc1 in your components folder and selected as the user interface (Preferences->display). Then right click in the sidebar and select "General->Track info".

Quote
Suggestion: Would it be possible to add a config saver/opener in the config dialog, like in foo_syfm ?
[a href="index.php?act=findpost&pid=259203"][{POST_SNAPBACK}][/a]

Maybe. I don't really have any interest in adding that at the moment though.
Title: foo_uie_trackinfo
Post by: Shadikka on 2004-12-15 15:28:45
Code: [Select]
$if($stricmp($mod(%_time_elapsed_seconds%,8),0),$char(1)C o $char(10)$char(1)C/|\$char(10)$char(1)C/ \)
$if($stricmp($mod(%_time_elapsed_seconds%,8),1),$char(1)C\o $char(10)$char(1)C |\$char(10)$char(1)C/ \)
$if($stricmp($mod(%_time_elapsed_seconds%,8),2),$char(1)C\o $char(10)$char(1)C\|\$char(10)$char(1)C  \)
$if($stricmp($mod(%_time_elapsed_seconds%,8),3),$char(1)C\o $char(10)$char(1)C |\$char(10)$char(1)C/ \)
$if($stricmp($mod(%_time_elapsed_seconds%,8),4),$char(1)C o $char(10)$char(1)C/|\$char(10)$char(1)C/ \)
$if($stricmp($mod(%_time_elapsed_seconds%,8),5),$char(1)C o/$char(10)$char(1)C/| $char(10)$char(1)C/ \)
$if($stricmp($mod(%_time_elapsed_seconds%,8),6),$char(1)C o/$char(10)$char(1)C/|/$char(10)$char(1)C/  )
$if($stricmp($mod(%_time_elapsed_seconds%,8),7),$char(1)C o/$char(10)$char(1)C/| $char(10)$char(1)C/ \)


Teh ownage
Title: foo_uie_trackinfo
Post by: upNorth on 2004-12-15 16:51:50
That dancer looked so lonely, so I introduced him to Messer's
Code: [Select]
$char(1)C
$select($add(1,$mod(%_time_elapsed_seconds%,10)),
' o ',' o/',' o>','<o>','<o/',' o ',' o ',' o ',' o/',' o>')'   '
$select($add(1,$mod(%_time_elapsed_seconds%,8)),
' o ','\o ','\o ','\o ',' o ',' o/',' o/',' o/')$char(10)$char(1)C
$select($add(1,$mod(%_time_elapsed_seconds%,10)),
'<!>','<! ','<! ',' ! ',' ! ','/!,',',!>','<!,','/! ','/! ')'   '
$select($add(1,$mod(%_time_elapsed_seconds%,8)),
'/|\',' |\','\|\',' |\','/|\','/| ','/|/','/| ')$char(10)$char(1)C
$select($add(1,$mod(%_time_elapsed_seconds%,10)),
'< >','< >','< >','< >','/ >','/ >',' >>','<< ',' >>','/ >')'   '
$select($add(1,$mod(%_time_elapsed_seconds%,8)),
'/ \','/ \','  \','/ \','/ \','/ \','/  ','/ \')$char(10)
Title: foo_uie_trackinfo
Post by: upNorth on 2004-12-15 16:52:13
connection/database problems
Title: foo_uie_trackinfo
Post by: Shadikka on 2004-12-15 18:04:49
Code: [Select]
$puts(len,47)
$puts(sep,─)
$puts(prg,═)
$char(1)C$rgb(0,0,255)InfoMode: %_trackinfo_mode%$char(10)
$repeat($get(sep),$get(len))$char(10)
$char(1)C$rgb(255,80,0)SongInfo$char(10)$char(10)
$rgb(0,0,128)Artist: $if2(%artist%,$rgb(128,128,128)no artist set)$char(10)
$rgb(0,0,128) Title: $if2(%title%,$rgb(128,128,128)no artist set)$char(10)
$rgb(0,0,128) Album: $if2(%album%,$rgb(128,128,128)no album set)$char(10)
$if(%album%,$rgb(0,0,128)[ Track: [CD$num(%disc%,1)/]#$num(%tracknumber%,2)$char(10)])
$if(%date%,$rgb(0,0,128)  Date: %date%$char(10))
$rgb(0,0,128)Length: %_length%$char(10)$char(10)
$repeat($get(sep),$get(len))$char(10)
$char(1)C$rgb(255,0,255)TechInfo$char(10)$char(10)
$rgb(0,128,0)   Bitrate: %__bitrate%kbps$char(10)
$rgb(0,128,0)Samplerate: %__samplerate%Hz$char(10)
$rgb(0,128,0)     Codec: %__codec%$char(10)$char(10)
$repeat($get(sep),$get(len))$char(10)
$char(1)C$rgb(0,0,255)ReplayGain$char(10)$char(10)
$rgb(255,80,0)TrackGain: $if2(%__replaygain_track_gain%,No RG calculated)$char(10)
$rgb(255,80,0)AlbumGain: $if2(%__replaygain_album_gain%,No RG calculated)$char(10)$char(10)
$repeat($get(sep),$get(len))$char(10)$char(10)
$progress2(%_time_elapsed_seconds%,%_time_total_seconds%,$get(len),$rgb(130,160,255)$get(prg),$rgb(215,245,255)$get(prg))


A bit more seriously done. Fixed width font is not necessary, but makes it look better. If you haven't got a Unicode build (=not XP/2000 as far as I can remember), just replace the "prg" and "sep" values with what you want. Of course, you can do it anyway if you like  Change the "len" value to match the size of your TrackInfo panel/toolbar/however you are using it - in characters, not pixels. White background is another good idea to use this with.
Title: foo_uie_trackinfo
Post by: Shadikka on 2004-12-15 18:07:36
Haha, that's great, upNorth  Just guess where I sort of got the idea from... I was reading that code (I tested it after I'd done my own) and then I sort of thought "Hmm, is that a dancer? Maybe I should try to make one..."
ASCII-animations are so funny to make xD
Title: foo_uie_trackinfo
Post by: Shadikka on 2004-12-15 19:12:11
Okay, I suppose this is the last stickfigure animation.
At least the last I'll put here unless I invent something megaübercool. x)

Code: [Select]
$select($add($mod(%_time_elapsed_seconds%,16),1),
?   ? $char(10)<|> <|>$char(10)/ \ / \,
?   ? $char(10)¯|> <|¯$char(10)/ \ / \,
\?   ?/ $char(10) |> <| $char(10)/ \ / \,
\?   ?/$char(10) |¯ ¯| $char(10)/ \ / \,
\?/ \?/$char(10) |   | $char(10)/ \ / \,
\?/ \?/$char(10) |   | $char(10)< \ / >,
\?/ \?/$char(10) |   | $char(10)/ \ / \,
\?/ \?/$char(10) |   | $char(10)/ > < \,
<?/ \?>$char(10) |   | $char(10)/ > < \,
\?/ \?/$char(10) |   | $char(10)/ > < \,
\?/ \?/$char(10) |   | $char(10)/ \ / \,
\?/ \?/$char(10) |   | $char(10)< \ / >,
\?/ \?/$char(10) |   | $char(10)/ \ / \,
\?> <?/$char(10) |   | $char(10)/ > < \,
\?> <?/$char(10) |   | $char(10)/ \ / \,
?   ? $char(10)¯|¯ ¯|¯ $char(10)/ \ / \)


Best (or at least good) viewed with Lucida Console 16pt, line spacing -1.
Have fun.

EDIT: Oh cool. Replace the ?:s with either "o", "O" or a smiley head (U+263A/263B)
Title: foo_uie_trackinfo
Post by: Killmaster on 2004-12-17 00:37:46
Two requests, not sure how feasible they'd be:

1. Could you add support for the album list? Showing track info if I click on an albumlist item would be immensely useful, not sure how feasible it'd be..

2. In line with #1, could you add support for info on multiple tracks? The only other feature in Foobar that does this is the properties box, so I'm not sure how feasible it'd be, but if you could implement it so that it'd check each %field% for something different that would be incredible.. especially if combined with the albumlist, and if it had something like a %_total_length% field so that I could see how long each album is..
Title: foo_uie_trackinfo
Post by: Phi on 2004-12-17 01:13:59
1. I've thought about adding some kind of interface to let other components override the displayed track (or just change the text that's displayed). This way the albumlist could "send" tracks to track info to have them displayed.

2. Has been requested before - it's planned, I just haven't done any serious work on the plugin for a while. I actually hadn't thought about the fields being different (which should have been obvious ), but that shouldn't be too difficult to work out.
Title: foo_uie_trackinfo
Post by: metal_termite on 2004-12-17 11:48:36
Not sure if this is the right thread to ask, but how do I display the filesize of a track with this plugin?

Also, when calling %__codec%, if its MP3, i want it to display as MPEG Layer 3. But I havent figured out how to do that with the rudimentary if statements.
Title: foo_uie_trackinfo
Post by: upNorth on 2004-12-17 12:31:08
Quote
Not sure if this is the right thread to ask, but how do I display the filesize of a track with this plugin?[a href="index.php?act=findpost&pid=260303"][{POST_SNAPBACK}][/a]

Filesize in megabytes (format: X.XX)
Code: [Select]
$div(%_filesize%,1048576).$left($num($muldiv($mod(%_filesize%,1048576),100,1048576),2),2)'MB'


Quote
Also, when calling %__codec%, if its MP3, i want it to display as MPEG Layer 3. But I havent figured out how to do that with the rudimentary if statements.[a href="index.php?act=findpost&pid=260303"][{POST_SNAPBACK}][/a]

Alt1:
Code: [Select]
$if($stricmp(%__codec%,'MP3'),'MPEG Layer 3',%__codec%)

Alt2 (using, and displaying, file extension instead of codec):
Code: [Select]
$if($stricmp($ext(%_path%),'MP3'),'MPEG Layer 3',$ext(%_path%))
Title: foo_uie_trackinfo
Post by: Shadikka on 2004-12-17 19:27:11
upNorth, that your filesize thingie didn't work with me. I made a line that works at least with me (tested with a few files):
Code: [Select]
$div(%_filesize%,1048576).$ifgreater($substr($mod(%_filesize%,1048576),4,4),
4,$left($mod(%_filesize%,1048576),2)$add(1,$substr($mod(%_filesize%,1048576),3,3))
,$left($mod(%_filesize%,1048576),3))


Yes, that's one heck of a line. Line-breaked it a bit  In short, it checks if the fourth decimal if over four and if it is, it adds one to the third decimal. (e.g. 0.28 2 8 = 8 > 4 = 0.28 2+1 = 0.283)
Title: foo_uie_trackinfo
Post by: upNorth on 2004-12-17 19:49:13
Quote
upNorth, that your filesize thingie didn't work with me.[a href="index.php?act=findpost&pid=260379"][{POST_SNAPBACK}][/a]
Please define "doesn't work".
Title: foo_uie_trackinfo
Post by: esa372 on 2004-12-17 19:54:07
Quote
upNorth, that your filesize thingie didn't work with me.

This one works for me:
Code: [Select]
$div(%_filesize%,1048576).$num($muldiv($mod(%_filesize%,1048576),100,1048576),2) MB


(Coutesy of musicmusic, from this (http://www.hydrogenaudio.org/forums/index.php?showtopic=29711) thread.)
Title: foo_uie_trackinfo
Post by: upNorth on 2004-12-17 20:03:45
I guess I should credit musicmusic too, the first code I posted was his with $left(,2) added to it...

Edit:
I guess this one is a little more accurate (last digit):
Code: [Select]
$div(%_filesize%,1048576).$left($num($muldiv($mod(%_filesize%,1048576),1000,1048576),3),2)' MB'


edit2:
@Shadikka: There is a bug in your code.
Example: A file that should be 4.97MB is displayed as 4.102MB

Btw: I'm really tired at the moment, so everything I write should be taken with a grain of salt... 
Title: foo_uie_trackinfo
Post by: metal_termite on 2004-12-17 22:04:31
Thanks
Title: foo_uie_trackinfo
Post by: Shadikka on 2004-12-18 16:57:58
Oh well, that's a good point. Your first code showed me wrong values, though. Well, I was in a bit weird mood yesterday, so I may be wrong - wouldn't be the first (or surely even the last) time... xD
Title: foo_uie_trackinfo
Post by: musicmusic on 2004-12-18 18:30:16
Quote
I guess I should credit musicmusic too, the first code I posted was his with $left(,2) added to it...

Edit:
I guess this one is a little more accurate (last digit):
Code: [Select]
$div(%_filesize%,1048576).$left($num($muldiv($mod(%_filesize%,1048576),1000,1048576),3),2)' MB'

[a href="index.php?act=findpost&pid=260385"][{POST_SNAPBACK}][/a]

$muldiv rounds to nearest integer. Yours would cut e.g. 4.678 to 4.67 (whilst mine would round it to 4.68). Though, its not like Windows explorer rounds properly anyway..
Title: foo_uie_trackinfo
Post by: Shadikka on 2004-12-19 08:49:05
Oh well, I give up now, it's all the same for me if the filesize is 0,01 MB different from the real one... x)
Hmm, does anyone happen to want my pretty-much-updated trackinfo string?

EDIT: Well, you'll get it anyway
EDIT2: Code optimization...

Code: [Select]
$puts(len,47)
$puts(sep,─)
$puts(prg,═)
$char(1)C$rgb(0,0,255)InfoMode: %_trackinfo_mode%$char(10)
$repeat($get(sep),$get(len))$char(10)
$char(1)C$rgb(255,80,0)SongInfo$char(10)$char(10)
$rgb(0,0,128)Artist: $if2(%artist%,$rgb(128,128,128)no artist set)$char(10)
$rgb(0,0,128) Title: $if2(%title%,$rgb(128,128,128)no artist set)$char(10)
$rgb(0,0,128) Album: $if2(%album%,$rgb(128,128,128)no album set)$char(10)
$if(%album%,$rgb(0,0,128)[ Track: [CD$num(%disc%,1)/]#$num(%tracknumber%,2)$char(10)],$puts(br1,$char(10)))
$if(%date%,$rgb(0,0,128)  Date: %date%$char(10),$puts(br2,$char(10)))
$rgb(0,0,128)Length: %_length%$char(10)$char(10)
$repeat($get(sep),$get(len))$char(10)
$char(1)C$rgb(255,0,255)TechInfo$char(10)$char(10)
$rgb(0,128,0)   Bitrate: %__bitrate%kbps$char(10)
$rgb(0,128,0)Samplerate: %__samplerate%Hz$char(10)
$rgb(0,128,0)     Codec: %__codec%$char(10)
$rgb(0,128,0)  Filesize: $div(%_filesize%,1048576).$left($num($muldiv($mod(%_filesize%,1048576),1000,1048576),3),2) MB$char(10)
$rgb(0,128,0)  Filename: $ifgreater($len(%_filename_ext%),$sub($get(len),14),…$right(%_filename_ext%,$sub($get(len),14)),%_filename_ext%)$char(10)
$if(%bpm%,$rgb(0,128,0)       BPM: %bpm%$char(10),$puts(br3,$char(10)))$char(10)
$repeat($get(sep),$get(len))$char(10)
$char(1)C$rgb(0,0,255)ReplayGain$char(10)$char(10)
$rgb(255,80,0)TrackGain: $if2(%__replaygain_track_gain%,No RG calculated)$char(10)
$rgb(255,80,0)AlbumGain: $if2(%__replaygain_album_gain%,No RG calculated)$char(10)$char(10)
$repeat($get(sep),$get(len))$char(10)
$char(1)C$rgb(0,128,0)Statistics$char(10)$char(10)
$rgb(255,0,255)Times played: $if(%play_counter%,%play_counter%,$rgb(128,128,128)no counter found)$char(10)
$rgb(255,0,255)Last played: $if($and(%play_date%,%play_time%),$substr(%play_date%,1,2).$substr(%play_date%,3,4).20$substr(%play_date%,5,6) $substr(%play_time%,1,2):$substr(%play_time%,3,4):$substr(%play_time%,5,6),$rgb(128,128,128)no info found)$char(10)
$rgb(255,0,255)Total playtime: $if(%play_counter%,$div($mul(%play_counter%,%_length_seconds%),60):$num($mod($mul(%play_counter%,%_length_seconds%),60),2),$rgb(128,128,128)no counter found)
$char(10)$char(10)$if($and(%play_counter%,%_isplaying%),$rgb(128,128,128)'('playcount & playtime = after this play')'$char(10),$puts(br4,$char(10)))
$repeat($get(sep),$get(len))$char(10)$char(10)$get(br1)$get(br2)$get(br3)$get(br4)
$progress2(%_time_elapsed_seconds%,%_time_total_seconds%,$get(len),$rgb(130,160,255)$get(prg),$rgb(215,245,255)$get(prg))


Screenshot: http://koti.mbnet.fi/wwolf/fb2k_2.png (http://koti.mbnet.fi/wwolf/fb2k_2.png)
Title: foo_uie_trackinfo
Post by: upNorth on 2004-12-19 09:27:41
Quote
Quote
I guess I should credit musicmusic too, the first code I posted was his with $left(,2) added to it...

Edit:
I guess this one is a little more accurate (last digit):
Code: [Select]
$div(%_filesize%,1048576).$left($num($muldiv($mod(%_filesize%,1048576),1000,1048576),3),2)' MB'

[a href="index.php?act=findpost&pid=260385"][{POST_SNAPBACK}][/a]

$muldiv rounds to nearest integer. Yours would cut e.g. 4.678 to 4.67 (whilst mine would round it to 4.68). Though, its not like Windows explorer rounds properly anyway..
[a href="index.php?act=findpost&pid=260559"][{POST_SNAPBACK}][/a]
Ahh, thanks, it was Explorer that fooled me. I originally intended to add 5 to the output of muldiv, but for some reason I forgot it along the way. But, I'll just stick to yours now. 

Quote
it's all the same for me if the filesize is 0,01 MB different from the real one... [a href="index.php?act=findpost&pid=260634"][{POST_SNAPBACK}][/a]
Yeah, it wouldn't really matter to me either, as I only use it to get an idea of the size.
Title: foo_uie_trackinfo
Post by: Gamof on 2004-12-27 02:26:42
Is there by any chance a mirror to this plugin? ;o
Title: foo_uie_trackinfo
Post by: Phi on 2004-12-28 01:09:53
Server seems fine now.

Temporary mirror here (http://metawire.org/~phi/foo_uie_trackinfo.dll) just in case they have some more work to do.
Title: foo_uie_trackinfo
Post by: lll9p_1 on 2004-12-28 10:16:02
yeah,a good plugin,Thanks!
Title: foo_uie_trackinfo
Post by: JEN on 2004-12-28 16:43:26
How do I display if the track is cbr or vbr.  I am not interested in updating the display to display the actual bitrate in real time, I just want it to display cbr or vbr in the foo_uie_trackinfo plugin panel.

Thanks for any help.
Title: foo_uie_trackinfo
Post by: 0x1ff on 2004-12-28 16:51:23
this should do:

$if2(%__extrainfo%,'CBR')

Quote
How do I display if the track is cbr or vbr.  I am not interested in updating the display to display the actual bitrate in real time, I just want it to display cbr or vbr in the foo_uie_trackinfo plugin panel.

Thanks for any help.
[a href="index.php?act=findpost&pid=261885"][{POST_SNAPBACK}][/a]
Title: foo_uie_trackinfo
Post by: JEN on 2004-12-28 17:11:36
Excellent! Thanks a lot
Title: foo_uie_trackinfo
Post by: jkwarras on 2005-01-07 10:50:05
Hi Phi,

Do you have any news about  :

- Lowering CPU usage when using tags containing a lot of text like %comment%?
- Update very second for tags like %rating%?

Thanks a lot for your plugin dude
Title: foo_uie_trackinfo
Post by: Morgensonne on 2005-01-07 12:24:56
I asked before but is there a possibility to enable tab [$char(9)] support in trackinfo panel?
Title: foo_uie_trackinfo
Post by: aron on 2005-01-07 21:51:27
I may be blind this afternoon, but I can't seem to find the formatting upNorth was using for his track info panel. I thought it was nice...
Title: foo_uie_trackinfo
Post by: upNorth on 2005-01-07 21:58:59
Quote
I may be blind this afternoon, but I can't seem to find the formatting upNorth was using for his track info panel. I thought it was nice...
[a href=\"index.php?act=findpost&pid=263686\"][{POST_SNAPBACK}][/a]
Thanks, but I don't really remember what or when I posted. Anyway, here is my current one:

Font: Tahoma 8pt
Background color (RGB): 0 0 25
Font color (RGB): 85 136 255
Code: [Select]
//Play date (last played) formatting
$puts(Last_played,$select(1,
$if($meta_test(PLAY_DATE),
$puts(month,$select($substr($meta(PLAY_DATE),3,4),
'january','february','march','april','may','june','july','august','september','october','november','desember',))
$left($meta(PLAY_DATE),2)'. '$get(month)' 20'$right($meta(PLAY_DATE),2)
),$meta(PLAY_DATE)))


//Some colors and variables

$puts(c_t1a,FF8855|FF8855)
$puts(c_t1b,FFBB99|FFBB99)
$puts(c_t2a,FF8855|FF8855)
$puts(c_t2b,FFDDDD|FFDDDD)
$puts(c_3,AA6644|AA6644)
$puts(spacer,$get(c_3)'--------------------------------'$char(10))


'Artist: '$get(c_t1b)$meta(artist)$char(10)
'Title: '$get(c_t1b)$replace($meta(title),'(',$get(c_3)'(',')',')'$get(c_t1b))$get(c_3)[' ('$meta(title_extra)')']$char(10)
'Album: '$get(c_t1b)$replace($meta(album),'(',$get(c_3)'(',')',')'$get(c_t1b),'[',$get(c_3)'[',']',']'$get(c_t1b))FFFFFF|FFFFFF[' disc '$meta(disc)][' '''$meta(discname)'']$char(10)
'Tracknumber: '$get(c_t1b)$tracknumber(1)$char(10)
'Date: '$get(c_t1b)$meta(date)$char(10)
'Genre: '$get(c_t1b)$meta(genre)$char(10)
'Comment: '$get(c_t1b)$meta(comment)$char(10)

$get(c_3)'---( '%_trackinfo_mode%' mode )---'$char(10)

'Sort genre: '$get(c_t1b)$meta(sort_genre)$char(10)
'Trackrating: '$get(c_t1b)$meta(trackrating)$char(10)
'Play count: '$get(c_t1b)$meta(PLAY_COUNTER)$char(10)
'Last played: '$get(c_t1b)$get(Last_played)$char(10)
$if($meta_test(TITLE_EXTRA),'Title extra: '$get(c_t1b)$meta(TITLE_EXTRA)$char(10))
$if($meta_test(k),'K: '$get(c_t1b)$meta(k)$char(10))

$get(spacer)

// codec
$get(c_t1a)'Codec: '00B3FF|00B3FF$upper($ext(%_path%))
// musepack profile
0073DD|0073DD$if(%__mpc_profile%,' '%__mpc_profile%$get(c_3)' @ ')
// bitrate with coloring
$if($greater(%__bitrate%,128),FFFFFF|FFFFFF,999999|999999)$if(%__bitrate%,$padcut_right(%__bitrate%,4)$get(c_3)' kbps')
// extrainfo
[' '0073DD|0073DD$pad_right(%__mp3_stereo_mode%,2)][' '00B3FF|00B3FF%__extrainfo%]$char(10)


// LAME (needs modified "foo_input_std.dll")
$if($or(%__lame_profile%,%__lame_version%),
$get(c_t1a)'LAME: '$get(c_t1b)
$if(%__lame_profile%,'-'%__lame_profile%)
$if(%__lame_version%,' ('%__lame_version%')')
$char(10)
)


'Audio: '$get(c_t1b)$if(%__channels%,%__channels%$get(c_3)'ch  ')$if(%__samplerate%,$get(c_t1b)$cut(%__samplerate%,2)$get(c_3)'kHz  ')$char(10)
'Track Gain: '$get(c_t1b)$if(%__replaygain_track_gain%,$left(%__replaygain_track_gain%,$add($strrchr($replace(%__replaygain_track_gain%,',','','.',''),''),2))$get(c_3)' dB')$char(10)
'Album Gain: '$get(c_t1b)$if(%__replaygain_album_gain%,$left(%__replaygain_album_gain%,$add($strrchr($replace(%__replaygain_album_gain%,',','','.',''),''),2))$get(c_3)' dB')$char(10)
'Size: '$get(c_t1b)$if(%_filesize%,$div(%_filesize%,1048576).$left($num($muldiv($mod(%_filesize%,1048576),100,1048576),2),2)$get(c_3)' MB')$char(10)

$get(spacer)

'Filename: '$get(c_t1b)[%_filename_ext%]$char(10)
'Directory: '$get(c_t1b)[%_directoryname%]$char(10)
'Path: '$get(c_t1b)[%_path%]$char(10)

Haven't really put my heart and soul in it though...

Edit: changed from "code" to "codebox", to save some space
Title: foo_uie_trackinfo
Post by: aron on 2005-01-07 22:12:23
Quote
Quote
I may be blind this afternoon, but I can't seem to find the formatting upNorth was using for his track info panel. I thought it was nice...
[a href=\"index.php?act=findpost&pid=263686\"][{POST_SNAPBACK}][/a]
Thanks, but I don't really remember what or when I posted. Anyway, here is my current one:

Font: Tahoma 8pt
Background color (RGB): 0 0 25
Font color (RGB): 85 136 255
Code: [Select]
//Play date (last played) formatting
$puts(Last_played,$select(1,
$if($meta_test(PLAY_DATE),
$puts(month,$select($substr($meta(PLAY_DATE),3,4),
'january','february','march','april','may','june','july','august','september','october','november','desember',))
$left($meta(PLAY_DATE),2)'. '$get(month)' 20'$right($meta(PLAY_DATE),2)
),$meta(PLAY_DATE)))


//Some colors and variables

$puts(c_t1a,FF8855|FF8855)
$puts(c_t1b,FFBB99|FFBB99)
$puts(c_t2a,FF8855|FF8855)
$puts(c_t2b,FFDDDD|FFDDDD)
$puts(c_3,AA6644|AA6644)
$puts(spacer,$get(c_3)'--------------------------------'$char(10))


'Artist: '$get(c_t1b)$meta(artist)$char(10)
'Title: '$get(c_t1b)$replace($meta(title),'(',$get(c_3)'(',')',')'$get(c_t1b))$get(c_3)[' ('$meta(title_extra)')']$char(10)
'Album: '$get(c_t1b)$replace($meta(album),'(',$get(c_3)'(',')',')'$get(c_t1b),'[',$get(c_3)'[',']',']'$get(c_t1b))FFFFFF|FFFFFF[' disc '$meta(disc)][' '''$meta(discname)'']$char(10)
'Tracknumber: '$get(c_t1b)$tracknumber(1)$char(10)
'Date: '$get(c_t1b)$meta(date)$char(10)
'Genre: '$get(c_t1b)$meta(genre)$char(10)
'Comment: '$get(c_t1b)$meta(comment)$char(10)

$get(c_3)'---( '%_trackinfo_mode%' mode )---'$char(10)

'Sort genre: '$get(c_t1b)$meta(sort_genre)$char(10)
'Trackrating: '$get(c_t1b)$meta(trackrating)$char(10)
'Play count: '$get(c_t1b)$meta(PLAY_COUNTER)$char(10)
'Last played: '$get(c_t1b)$get(Last_played)$char(10)
$if($meta_test(TITLE_EXTRA),'Title extra: '$get(c_t1b)$meta(TITLE_EXTRA)$char(10))
$if($meta_test(k),'K: '$get(c_t1b)$meta(k)$char(10))

$get(spacer)

// codec
$get(c_t1a)'Codec: '00B3FF|00B3FF$upper($ext(%_path%))
// musepack profile
0073DD|0073DD$if(%__mpc_profile%,' '%__mpc_profile%$get(c_3)' @ ')
// bitrate with coloring
$if($greater(%__bitrate%,128),FFFFFF|FFFFFF,999999|999999)$if(%__bitrate%,$padcut_right(%__bitrate%,4)$get(c_3)' kbps')
// extrainfo
[' '0073DD|0073DD$pad_right(%__mp3_stereo_mode%,2)][' '00B3FF|00B3FF%__extrainfo%]$char(10)


// LAME (needs modified "foo_input_std.dll")
$if($or(%__lame_profile%,%__lame_version%),
$get(c_t1a)'LAME: '$get(c_t1b)
$if(%__lame_profile%,'-'%__lame_profile%)
$if(%__lame_version%,' ('%__lame_version%')')
$char(10)
)


'Audio: '$get(c_t1b)$if(%__channels%,%__channels%$get(c_3)'ch  ')$if(%__samplerate%,$get(c_t1b)$cut(%__samplerate%,2)$get(c_3)'kHz  ')$char(10)
'Track Gain: '$get(c_t1b)$if(%__replaygain_track_gain%,$left(%__replaygain_track_gain%,$add($strrchr($replace(%__replaygain_track_gain%,',','','.',''),''),2))$get(c_3)' dB')$char(10)
'Album Gain: '$get(c_t1b)$if(%__replaygain_album_gain%,$left(%__replaygain_album_gain%,$add($strrchr($replace(%__replaygain_album_gain%,',','','.',''),''),2))$get(c_3)' dB')$char(10)
'Size: '$get(c_t1b)$if(%_filesize%,$div(%_filesize%,1048576).$left($num($muldiv($mod(%_filesize%,1048576),100,1048576),2),2)$get(c_3)' MB')$char(10)

$get(spacer)

'Filename: '$get(c_t1b)[%_filename_ext%]$char(10)
'Directory: '$get(c_t1b)[%_directoryname%]$char(10)
'Path: '$get(c_t1b)[%_path%]$char(10)

Haven't really put my heart and soul in it though...
[a href=\"index.php?act=findpost&pid=263688\"][{POST_SNAPBACK}][/a]
thanks for the (amazingly quick) reply!

moderation: changed quoted [ code ] into [ codebox ]
Title: foo_uie_trackinfo
Post by: Tomacco_Boy on 2005-01-08 00:09:41
Thats awesome upnorth, simple yet very informative. Great job dude 
Title: foo_uie_trackinfo
Post by: Phi on 2005-01-08 06:58:04
Quote
- Lowering CPU usage when using tags containing a lot of text like %comment%?

Not done yet.

Quote
- Update very second for tags like %rating%?

Fixed that one (haven't released anything though).

Quote
I asked before but is there a possibility to enable tab [$char(9)] support in trackinfo panel?

Its working in my dev version now, so it'll be in the next release - although I'm not sure how soon that will be...
Title: foo_uie_trackinfo
Post by: Fishy Joe on 2005-01-09 11:20:29
Would it be possible to have an option that automatically truncates the length of a line as it runs past the width of the window? columns_ui has a very nice option called "Show ellipsis when string does not fit". The reason I ask is because I find that long album or track names really screw up the trackinfo display.

Thanks!
Title: foo_uie_trackinfo
Post by: andreas on 2005-01-09 11:29:22
Since I don't change the width of my sidebar, for me works something like this:

Code: [Select]
$iflonger(%album%,33,$cut(%album%,29)...,%album%)


This truncates all album names longer than 33 characters to 29 characters and appends "..." to them. Album names shorter don't get touched.
You'll have to play around with comparison value and truncation value, if your font is variable width.

I hope, this was of any help.

Regards,
Andreas
Title: foo_uie_trackinfo
Post by: Fishy Joe on 2005-01-09 12:31:02
Quote
Since I don't change the width of my sidebar, for me works something like this:

Code: [Select]
$iflonger(%album%,33,$cut(%album%,29)...,%album%)


This truncates all album names longer than 33 characters to 29 characters and appends "..." to them. Album names shorter don't get touched.
You'll have to play around with comparison value and truncation value, if your font is variable width.
[a href="index.php?act=findpost&pid=263954"][{POST_SNAPBACK}][/a]


I should have mentioned earlier that I did try this, but the fact that I'm not using a fixed width font made it nearly impossible to get any uniformity. Short strings were being truncated too early and even with a conservative truncation value there were always some strings that were still too long. It works as a temporary fix, but a built in option to prevent the wrapping would make it work 100% of the time rather than 50%.

Thanks for the suggestion though
Title: foo_uie_trackinfo
Post by: Phi on 2005-01-09 23:59:25
Yeah, that would be nice. I'll add it to the list.
Title: foo_uie_trackinfo
Post by: ModelCitizen on 2005-01-14 12:48:58
Hello all.
After years of using Fooobar2000 "out of the box" I have realised that it can be made to work (and look) very differently form the deafult mode, so I've been setting aboiut configuring mine to be just the way I want it (using track info, album art, columns gui, spectrum thingy etc). It's taken a bit of getting my head around (and the installtion of a few libraries and components) but I'm nearly there now.
The only thing I am unhappy with is the display on Track info, and although I've tried most of the code listed in this topic I have not found one that does exactly what I want (one comes very close but no scroll bars appear on the track info panel, making it impossible to use in my set up).

Does anyone have any code which gets anything like this listing:

No Mode Info or title at all as takes to much space. In fact space is at such a preminum that it would be good if there was no vertical space (or hardly any) between the lines of text

Info displayed (something like this):

Artist
Album [Year]
Track [Length]
Comment

Ideally the panel should include vertical scoll bars as the comments field includes reviews in my flac files. I do not know if it is possible to have vertical scoll bars in the track info panel though. I guess the text should wrap.

I'd be very grateful if anyone had anything like this... otherwise I'll have to work out how to program it.. and with a brand new baby I know that I'm not going to have enough time for this.

Thanks for reading this.
Title: foo_uie_trackinfo
Post by: upNorth on 2005-01-14 13:36:24
@ModelCitizen: Learning to write your own code opens a lot of posibilities, but of course it takes time, and with a "brand new baby" I guess you have better thing to do. Like getting some sleep 

Anyway, here are some variations of the same simple code. Hopefully easy enough to make you able to customize it without investing too much time. If not, specify what you want changed, and I'll try to help you, and I'm sure others will too.

Code: [Select]
%artist%$char(10)
%album%' ['$if2(%year%,%date%)']'$char(10)
%title%' ['%_length%']'$char(10)
%comment%
Note: shows '?' if a tag is missing.

Code: [Select]
[%artist%]$char(10)
[%album%]$if3(' ['%year%']',' ['%date%']',)$char(10)
[%title%][' ['%_length%']']$char(10)
[%comment%]
Note: does not show '?' if a tag is missing.

Code: [Select]
'Artist: '[%artist%]$char(10)
'Album: '[%album%]' ['$if2(%year%,%date%)']'$char(10)
'Title: '[%title%]' ['[%_length%]']'$char(10)
'Comment: '[%comment%]
Note: Starts with the name of the tag

Code: [Select]
'Artist: '0000FF[%artist%]$char(10)
'Album: '0000FF[%album%]' ['$if2(%year%,%date%)']'$char(10)
'Title: '0000FF[%title%]' ['[%_length%]']'$char(10)
'Comment: '0000FF[%comment%]
Note: With color


I hope this helps, and that I didn't make any mistakes in the code. 

Edit: grammar
Edit2: fixed a minor bug in the the second code
Title: foo_uie_trackinfo
Post by: Lance Uppercut on 2005-01-14 20:41:11
Quote
Ideally the panel should include vertical scoll bars as the comments field includes reviews in my flac files. I do not know if it is possible to have vertical scoll bars in the track info panel though. I guess the text should wrap.

[a href="index.php?act=findpost&pid=265273"][{POST_SNAPBACK}][/a]

The trackinfo panel scrolls automatically with your mouse wheel when the cursor is above the panel.  There are no scroll bars, but the mouse wheel works fine.

btw, i am no programmer, so it took me a while to learn how to format my displays.
here is my minimal config.  I have fuller ones when the mood is right:

font: papyrus 8pt
default text (rgb): 255,255,255
background (rgb): 70,70,70

Code: [Select]
$puts(line,ffffff)
$puts(sep,$transition(         ---------------------------------,464646,f0a300))

$if(%_trackinfo_notrack%,No track selected,

[$char(1)Cc08000$iflonger(%title%,27,$cut(%title%,23) ...,%title%)$char(10)]
[$char(1)Cf0a300$iflonger(%artist%,27,$cut(%artist%,25) ...,%artist%)$char(10)]
[$char(1)Cffbf3c$iflonger(%album%,27,$cut(%album%,24) ...,%album%)$char(10)]

$if(%_isplaying%,$char(1)C
%_time_elapsed% / %_length%
'  [' 0000ff-%_time_remaining% $get(line)']'
,$char(1)C[%_length%])$char(10)

$get(sep)$char(10)
$char(10)
)
Title: foo_uie_trackinfo
Post by: ModelCitizen on 2005-01-15 15:29:12
Well, thank you very much indeed guys (very especially upNorth)
I've tried all the strings you've posted and it's certainly given me some food for thought.... and..... unfotunately I've started to look at the make up of the strings as I've realised what possibilities there are. This is not good news (ooh.. is that a baby crying?).

But... just one quick thing....
How to I get two entries on one line, between a static word of my own choosing.... and be able to control the clour of the word.. i.e:

This is what I'd like (now!):

No headings involved (e.g Title, Album etc),

Track Name by Artist
[Track Number] - Album [Date]
Comment

I'd like to include the "by", " - " and square brackets as fixed colour-configurable text.

Is this possible (I'm beginning to think it's not)?

I'd also like to add Lance Uppercut's track length, minutes past and minutes to go text above the comment field... if i can work out how to reformat it and get rid of the extraneous square bracket. Thanks mate.

Right, better see what up with the baby. Probably see you in another two days.... :-(
Title: foo_uie_trackinfo
Post by: andreas on 2005-01-15 16:10:55
Quote
Well, thank you very much indeed guys (very especially upNorth)
I've tried all the strings you've posted and it's certainly given me some food for thought.... and..... unfotunately I've started to look at the make up of the strings as I've realised what possibilities there are. This is not good news (ooh.. is that a baby crying?).

But... just one quick thing....
How to I get two entries on one line, between a static word of my own choosing.... and be able to control the clour of the word.. i.e:

This is what I'd like (now!):

No headings involved (e.g Title, Album etc),

Track Name by Artist
[Track Number] - Album [Date]
Comment

I'd like to include the "by", " - " and square brackets as fixed colour-configurable text.

Is this possible (I'm beginning to think it's not)?

I'd also like to add Lance Uppercut's track length, minutes past and minutes to go text above the comment field... if i can work out how to reformat it and get rid of the extraneous square bracket. Thanks mate.

Right, better see what up with the baby. Probably see you in another two days.... :-(
[a href="index.php?act=findpost&pid=265550"][{POST_SNAPBACK}][/a]


I'd like to add a suggestion to the "How to cram as much as possible into a as tiny as possible trackinfo panel". I don't display the mode, but rather use to colours for the field information depending on the mode:
Code: [Select]
$puts(c_4,$if($strcmp(%_trackinfo_mode%,Now playing),8d8d8d,c0c0c0))


In order to put two thing on one line, simply do so without inserting a linebrake. In short:
Code: [Select]
%title% by %artist%$char(10)

Of couse you can do all the other nifty stuff (like cutting, replacing and colouring...) instead of simply writing %title% or %artist%.

Hope this was of any help.
Greetings and best wishes for the new, still growing "foobar-user",
Andreas
Title: foo_uie_trackinfo
Post by: andreas on 2005-01-15 16:37:42
Hi,

I just had another idea. Would it be possible to have several instances of foo_trackinfo with different configurations?
I'm thinking of something like this:
I'd like to have one small trackinfo panel in the sidebar below my playlists. This one displays only the absolutely necessary infos. A second more informative trackinfo panel I'd like to have on demand shown in the place of my playlists (with foo_uie_tabs).

I don't want to look greedy, this is already a very nice plugin, but it slipped through my mind and I thought I post it.

Regards,
Andreas
Title: foo_uie_trackinfo
Post by: upNorth on 2005-01-15 18:51:09
@ModelCitizen:Here is my first attempt to create what you described:

Code: [Select]
$puts(c_static,888888)

%title%$get(c_static)' by '$if2(%artist%,%album artist%)$char(10)
$get(c_static)'['$get(c_num)$tracknumber()$get(c_static)'] - '%album%$get(c_static)' ['$if3(%date%,%year%)$get(c_static)']'$char(10)
$if(%_time_elapsed%,%_time_elapsed%$get(c_static)' / ')%_length%$char(10)
[%comment%]

All the text that is the contents of tags, will get the color you set in the config of this plugin. The color of the static text ('[', 'by','/',...) is set with the c_static variable. Currently set to gray.

A few  questions:
1) Do you want the same color for all info (artist, title, album,...), or do you want to be able to define each of them separately? I did the latter at first, but then decided to make a stipped down version first.
2) Is the time display correct (elapsed/total)?
3) Do you want anything centered.

Btw: Those squares in the code, are used to reset the color back to the color defined in config. So, that's the answer to you question about alternating colors.
Title: foo_uie_trackinfo
Post by: ModelCitizen on 2005-01-16 17:04:16
Hi,
just dragged myself back from poo land...

thanks again for this. upNorth... I wondered what those little squares were for, that explains a lot now. Is there a guide to writing these strings somewhere (not that I should really look at it....)?

Anyway, I think with what you've told me and what I had learnt already I could probably write my own (simple) string now. However, I think I'm pretty sorted with my Foobar now....

If anyone wants a loook you can see it here (http://modelcitizen.mine.nu/foobar_neat.jpg). I've called it Foobar Neat (http://modelcitizen.mine.nu/foobar_neat.jpg).

So.. I've finished... thanks for all the help.

But... there is just one little thing... I'd really like to have three tabs at the top of the left hand pane (i.e below the transport buttons in my Foobar Neat), titled Album View, Track Info and Playlists.
I know it is possible to put the tabs there as i have seen version like this... but cannot remember where. I guess you can make a panel containing three tabs which then link to other panels??
Can anyone tell me which forum I should be asking questions about this in... as I have no idea (apart from it is obviously not this one!).

If i can dedicate a whole left hand pane to Track Info then i can use one of your great scripts above.

I should not being doing this.....
:-(

Back to poo land...
Title: foo_uie_trackinfo
Post by: andreas on 2005-01-17 06:47:26
Quote
Hi,
just dragged myself back from poo land...

thanks again for this. upNorth... I wondered what those little squares were for, that explains a lot now. Is there a guide to writing these strings somewhere (not that I should really look at it....)?

Anyway, I think with what you've told me and what I had learnt already I could probably write my own (simple) string now. However, I think I'm pretty sorted with my Foobar now....

If anyone wants a loook you can see it here (http://modelcitizen.mine.nu/foobar_neat.jpg). I've called it Foobar Neat (http://modelcitizen.mine.nu/foobar_neat.jpg).

So.. I've finished... thanks for all the help.

But... there is just one little thing... I'd really like to have three tabs at the top of the left hand pane (i.e below the transport buttons in my Foobar Neat), titled Album View, Track Info and Playlists.
I know it is possible to put the tabs there as i have seen version like this... but cannot remember where. I guess you can make a panel containing three tabs which then link to other panels??
Can anyone tell me which forum I should be asking questions about this in... as I have no idea (apart from it is obviously not this one!).

If i can dedicate a whole left hand pane to Track Info then i can use one of your great scripts above.

I should not being doing this.....
:-(

Back to poo land...
[a href="index.php?act=findpost&pid=265793"][{POST_SNAPBACK}][/a]


You want to search the forum for: foo_uie_tabs
This is another plugin, which does exactly, what you describe.
Title: foo_uie_trackinfo
Post by: deer on 2005-01-17 22:55:05
Can author add to plugin features, like read info from some file (Ex: *txt, etc).

Ex: I not needed on tagz on foo_ui_trackinfo. I can read tagz from playlist and statusbar.

4what: read lyric from file.txt for curent song, or album(group,artist) history(biography,etc).

PS: Ex - example
Title: foo_uie_trackinfo
Post by: Lycox on 2005-01-18 16:51:36
Hey guys,

I did another code for track info panel. Highly customizeable I guess. Look at the config part.

Code: [Select]
// Highly customizeable track information made by Lycox

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

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

// 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(mixartist,1)
$puts(band,1)
$puts(album,1)
$puts(tracknumber,1)
$puts(genre,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)
$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 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(bitrate,1)
$puts(samplerate,1)
$puts(channels,1)
$puts(time_elapsed_total,1)
$puts(trackgain,1)
$puts(albumgain,1)
$puts(rating,1)
$puts(play_counter,1)
$puts(play_date,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(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)

// Spacer
$puts(spacer,d6d6d6------------------------------------------------------------------------------------------$char(10))

// color codes
$puts(headline,256d3d)
$puts(info,ec9184)
$puts(text,000000)
$puts(grayed,c8c8c8)

// chars
$puts(rating_char,♪)
$puts(progress_char,●)

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


DCAE8DMode: %_trackinfo_mode%$char(10)$if(%_trackinfo_notrack%,No track,

// progressbar config
$puts(theme,1)
$puts(progress_length,18)

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


// 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))$char(10)

// Song Info
$if($strcmp(1,$get(show_songinfo)),
$get(spacer)
$char(1)C$get(headline)Song Info$char(10)
$if($strcmp(1,$get(title)),$get(info)Title: $get(text)$if(%title%,%title%,$get(grayed)'['No Title']')$char(10))
$if($strcmp(1,$get(artist)),$get(info)Artist: $get(text)$if(%artist%,%artist%,$get(grayed)'['Unknown Artist']')$char(10))
$if($strcmp(1,$get(mixartist))
|$strcmp(1,$get(band))
,
$if($strcmp(1,$get(mixartist)),$if(%mixartist%,$get(info)MixArtist: $get(text)%mixartist%$char(10)))
$if($strcmp(1,$get(band)),$if(%band%,$get(info)Band: $get(text)%band%$char(10))))
$if($strcmp(1,$get(album)),$if(%album%,$get(info)Album: $get(text)%album%$char(10)))
$if($strcmp(1,$get(tracknumber)),$if(%tracknumber%,$get(info)Track: $get(text)%tracknumber%$char(10)))
$if($strcmp(1,$get(genre)),$if(%genre%,$get(info)Genre: $get(text)%genre%$char(10)))
$if($strcmp(1,$get(bpm)),$if(%bpm%,$get(info)bpm: $get(text)%bpm%$char(10)))
$if($strcmp(1,$get(date)),$if(%date%,$get(info)Date: $get(text)%date%$char(10)))
$if($strcmp(1,$get(copyright)),$if(%copyright%,$get(info)© $get(text)%copyright%$char(10)))
)
// End Song Info

// Additional Info
$if($strcmp(1,$get(show_additionalinfo)),
$if($if(%comment%,$and($strcmp(1,$get(comment))))
|$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)
$char(1)C$get(headline)Additional Info$char(10)
$if($strcmp(1,$get(comment)),$if(%comment%,$get(info)Comment: $get(text)%comment%$char(10)))
$if($strcmp(1,$get(wwwartist)),$if(%wwwartist%,$get(info)Web: $get(text)%wwwartist%$char(10)))
$if($strcmp(1,$get(publisher)),$if(%publisher%,$get(info)Publisher: $get(text)%publisher%$char(10)))
$if($strcmp(1,$get(language)),$if(%language%,$get(info)Language: $get(text)%language%$char(10)))
$if($strcmp(1,$get(composer)),$if(%composer%,$get(info)Composer: $get(text)%composer%$char(10)))
$if($strcmp(1,$get(lyricist)),$if(%lyricist%,$get(info)Lyricist: $get(text)%lyricist%$char(10)))
$if($strcmp(1,$get(conductor)),$if(%conductor%,$get(info)Conductor: $get(text)%conductor%$char(10)))
$if($strcmp(1,$get(contentgroup)),$if(%contentgroup%,$get(info)Group: $get(text)%contentgroup%$char(10)))
$if($strcmp(1,$get(recordingdates)),$if(%recordingdates%,$get(info)Rec. Date: $get(text)%recordingdates%$char(10)))
$if($strcmp(1,$get(fileowner)),$if(%fileowner%,$get(info)Owner: $get(text)%fileowner%$char(10)))
))
// End Additional Info

// Tech Info
$if($strcmp(1,$get(show_techinfo)),
$get(spacer)
$char(1)C$get(headline)Tech Info$char(10)
$if($strcmp(1,$get(codec)),$get(info)Codec: $get(text)%__codec%$char(10))
$if($strcmp(1,$get(bitrate)),$get(info)Bitrate: $get(text)%__bitrate% Kbit/s$char(10))
$if($strcmp(1,$get(samplerate)),$get(info)Samplerate: $get(text)%__samplerate% Hz$char(10))
$if($strcmp(1,$get(channels)),$get(info)Channels: $get(text)$if(%__channels%,$ifgreater(%__channels%,2,%__channels%ch,$ifgreater(%__channels%,1,' 'Stereo,''Mono)),)$char(10))
$if($strcmp(1,$get(time_elapsed_total)),$get(info)Time: $get(text)%_time_elapsed% / %_time_total%$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,1)
$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)))
$if($strcmp(1,$get(play_date)),$if(%play_date%,$get(info)Last played: $get(text)%play_date%$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)))

// formating filesize string by upNorth
$if($strcmp(1,$get(filesize)),$get(info)Filesize: $get(text)$div(%_filesize%,1048576).$left($num($muldiv($mod(%_filesize%,1048576),1000,1048576),3),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))))
,
$char(1)C$get(headline)Web Info$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 Ifno
$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))))
,$char(1)C$get(headline)NetRadio Info$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)
$char(1)C$get(headline)Misc Info$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)
$char(1)C$get(headline)Original Info$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)))
))

Screenshot: (http://img118.exs.cx/img118/3070/foobarscreenshot8tg.jpg)

Let me know what you think about it (and any bugs too).
Lycox

moderation: changed [ code ] into [ codebox ]
Title: foo_uie_trackinfo
Post by: holtman on 2005-01-18 18:56:00
looks nice.. xD .. great work
Title: foo_uie_trackinfo
Post by: pIv on 2005-01-19 10:37:45
To lycos

I see two bugs, not in your configuration, but in plugin trackinfo.

1. If I paused play and exit Foobar, then start it again - I see in Time section "?/?"

2. If I use playlist_tree plugin and enable "Decueue last played", when current song ended and deleted from playlist, in next song information - I see in Time section "?/?"

pIv
Title: foo_uie_trackinfo
Post by: mazy on 2005-01-19 10:57:33
that's not a bug ... it's something that can be fixed in the string.

from titleformat_help.html: %_time_total% / %_time_total_seconds% get data from playback core while %_length% / %_length_seconds%

(info from playback core is not available when the song is not being played or read by playback core, so you should use info from db in that case)

you can for example replace:
Code: [Select]
$if($strcmp(1,$get(time_elapsed_total)),$get(info)Time: $get(text)%_time_elapsed% / %_time_total%$char(10))

with:
Code: [Select]
$if($strcmp(1,$get(time_elapsed_total)),$get(info)Time: $get(text)$if(%_time_elapsed%,%_time_elapsed% / %_time_total%,%_length%)$char(10))
Title: foo_uie_trackinfo
Post by: sMiK on 2005-01-19 12:35:02
anyways to make another mode except "follow cursor"?
Title: foo_uie_trackinfo
Post by: Lycox on 2005-01-19 13:23:10
Quote
that's not a bug ... it's something that can be fixed in the string.

from titleformat_help.html: %_time_total% / %_time_total_seconds% get data from playback core while %_length% / %_length_seconds%

(info from playback core is not available when the song is not being played or read by playback core, so you should use info from db in that case)

you can for example replace:
Code: [Select]
$if($strcmp(1,$get(time_elapsed_total)),$get(info)Time: $get(text)%_time_elapsed% / %_time_total%$char(10))

with:
Code: [Select]
$if($strcmp(1,$get(time_elapsed_total)),$get(info)Time: $get(text)$if(%_time_elapsed%,%_time_elapsed% / %_time_total%,%_length%)$char(10))

[a href="index.php?act=findpost&pid=266515"][{POST_SNAPBACK}][/a]



@mazy: Well, thanks alot.

@sMIK: Just double click in the trackinfo panel to change the mode.
Title: foo_uie_trackinfo
Post by: pIv on 2005-01-19 14:11:18
To mazy and Lycox

Your decision is good, but when enable "Decueue last played" and Foobar switch to next song and delete from playlist previous one - the plugin trackinfo return frozen tags %title%, %tracknumber% and other from deleted song.

This is also when i delete song from playlist manually, when it played. After end of playing this song the information about next not displayed and displayed information about deleted song.

Only if I manually switch to any song the information about it display correct.

pIv
Title: foo_uie_trackinfo
Post by: esa372 on 2005-01-19 14:37:52
Quote
anyways to make another mode except "follow cursor"?
[a href="index.php?act=findpost&pid=266529"][{POST_SNAPBACK}][/a]
Double-click inside the TrackInfo panel.

Title: foo_uie_trackinfo
Post by: deer on 2005-01-19 23:20:26
Quote
anyways to make another mode except "follow cursor"?
[a href="index.php?act=findpost&pid=266529"][{POST_SNAPBACK}][/a]

use foo_temple
Title: foo_uie_trackinfo
Post by: Phi on 2005-01-20 01:53:49
Quote
This is also when i delete song from playlist manually, when it played. After end of playing this song the information about next not displayed and displayed information about deleted song.

Only if I manually switch to any song the information about it display correct.
[a href="index.php?act=findpost&pid=266552"][{POST_SNAPBACK}][/a]

I think you're in "follow cursor," not "now playing" mode.
Title: foo_uie_trackinfo
Post by: VLSI on 2005-01-20 19:31:48
Quote
I don't think you'll ever be able to select/copy text though, sorry.
[a href="index.php?act=findpost&pid=254293"][{POST_SNAPBACK}][/a]
How about a compromise:  allow the user to copy the entire trackinfo text to the clipboard.  That should be fairly easy to implement.
Title: foo_uie_trackinfo
Post by: upNorth on 2005-01-20 19:43:52
Quote
Quote
I don't think you'll ever be able to select/copy text though, sorry.
[a href="index.php?act=findpost&pid=254293"][{POST_SNAPBACK}][/a]
How about a compromise:  allow the user to copy the entire trackinfo text to the clipboard.  That should be fairly easy to implement.
[a href="index.php?act=findpost&pid=266912"][{POST_SNAPBACK}][/a]
Can't you just use the standard copy command?
Preferences->Display->Title formatting->Copy command
Title: foo_uie_trackinfo
Post by: VLSI on 2005-01-21 02:47:16
Quote
Quote
Quote
I don't think you'll ever be able to select/copy text though, sorry.
[a href="index.php?act=findpost&pid=254293"][{POST_SNAPBACK}][/a]
How about a compromise:  allow the user to copy the entire trackinfo text to the clipboard.  That should be fairly easy to implement.
[a href="index.php?act=findpost&pid=266912"][{POST_SNAPBACK}][/a]
Can't you just use the standard copy command?
Preferences->Display->Title formatting->Copy command
[a href="index.php?act=findpost&pid=266915"][{POST_SNAPBACK}][/a]

Currently, I use the Copy command to grab basic info.  However, it would be nice to also be able to get full details from the track info panel.
Title: foo_uie_trackinfo
Post by: war59312 on 2005-01-23 08:11:33
Quote
I guess I should credit musicmusic too, the first code I posted was his with $left(,2) added to it...

Edit:
I guess this one is a little more accurate (last digit):
Code: [Select]
$div(%_filesize%,1048576).$left($num($muldiv($mod(%_filesize%,1048576),1000,1048576),3),2)' MB'


edit2:
@Shadikka: There is a bug in your code.
Example: A file that should be 4.97MB is displayed as 4.102MB

Btw: I'm really tired at the moment, so everything I write should be taken with a grain of salt... 
[a href="index.php?act=findpost&pid=260385"][{POST_SNAPBACK}][/a]

Well the file sizes appear correct but it fails to sort correctly.

Like:

(http://img174.exs.cx/img174/8729/foobar1io.png)

Goes from 1mb to 10mb to 15mb back to 2mb.

And:

(http://img174.exs.cx/img174/8117/foobar7rm.png)

Any help to get sorting working corectly would be great. I know the problem is that its doing the sort based on only the first digit "first", obviously but dont know how to fix. New to foobar custmizing.

Thanks a lot,
  Will
Title: foo_uie_trackinfo
Post by: anza on 2005-01-23 11:36:57
Why don't you just make it sort by %_filesize%? It should be enough.
Title: foo_uie_trackinfo
Post by: upNorth on 2005-01-23 13:10:15
and use something like $sub(1000000000,%_filesize%) to reverse it.
Title: foo_uie_trackinfo
Post by: Skates on 2005-01-24 14:04:03
I've been thinking about this more and more, and I think a great feature would be to add support for reading lyrics from tags properly.  Since it's technically track information, support for some type of scrolling lyrics to music would be awesome.

Edit: When I think about it though, that would mean album art and stuff would then be brought into the track info realm.  Maybe this isn't such a good idea for a your plug-in as that would be bring it into a whole new category.
Title: foo_uie_trackinfo
Post by: Zoch on 2005-01-24 23:16:03
Hello all. I have a question.
The plisk formatting string has a special formatting for 3 digit tracknumbers. Is it possible to implement it to upNorth's config for foo_uie_trackinfo? The plisk string does the following: if there is a three-digit tracknumber, writes the #of the disc next to album info.

Code: [Select]
//-----formatting of 3 digit tracknumbers-----
$if($strcmp(3,$len2($get(t_tracknumber))),
$puts(t_disc,'Disc '$cut($get(t_tracknumber),1))
$puts(has_disc_info,1)
$puts(t_tracknumber,$substr($get(t_tracknumber),2,3))
$if($strcmp($get(t_tracknumber),01),$puts(is_first,1))
)
//--------------------------------------------
Title: foo_uie_trackinfo
Post by: war59312 on 2005-01-24 23:27:57
Because this is not what i want.

(http://img178.exs.cx/img178/1761/mp34dd.png)
Title: foo_uie_trackinfo
Post by: picmixer on 2005-01-24 23:39:12
@war59312

Hmh, could you maybe explain to me what your last two posts have to do with foo_uie_trackinfo?

Could be I overlooked something, but I somehow fail to see the connection.
Title: foo_uie_trackinfo
Post by: syrek on 2005-01-25 01:31:04
Quote
Hey guys,

I did another code for track info panel. Highly customizeable I guess. Look at the config part.

Code: [Select]
// Highly customizeable track information made by Lycox

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

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

// 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(mixartist,1)
$puts(band,1)
$puts(album,1)
$puts(tracknumber,1)
$puts(genre,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)
$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 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(bitrate,1)
$puts(samplerate,1)
$puts(channels,1)
$puts(time_elapsed_total,1)
$puts(trackgain,1)
$puts(albumgain,1)
$puts(rating,1)
$puts(play_counter,1)
$puts(play_date,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(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)

// Spacer
$puts(spacer,d6d6d6------------------------------------------------------------------------------------------$char(10))

// color codes
$puts(headline,256d3d)
$puts(info,ec9184)
$puts(text,000000)
$puts(grayed,c8c8c8)

// chars
$puts(rating_char,♪)
$puts(progress_char,●)

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


DCAE8DMode: %_trackinfo_mode%$char(10)$if(%_trackinfo_notrack%,No track,

// progressbar config
$puts(theme,1)
$puts(progress_length,18)

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


// 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))$char(10)

// Song Info
$if($strcmp(1,$get(show_songinfo)),
$get(spacer)
$char(1)C$get(headline)Song Info$char(10)
$if($strcmp(1,$get(title)),$get(info)Title: $get(text)$if(%title%,%title%,$get(grayed)'['No Title']')$char(10))
$if($strcmp(1,$get(artist)),$get(info)Artist: $get(text)$if(%artist%,%artist%,$get(grayed)'['Unknown Artist']')$char(10))
$if($strcmp(1,$get(mixartist))
|$strcmp(1,$get(band))
,
$if($strcmp(1,$get(mixartist)),$if(%mixartist%,$get(info)MixArtist: $get(text)%mixartist%$char(10)))
$if($strcmp(1,$get(band)),$if(%band%,$get(info)Band: $get(text)%band%$char(10))))
$if($strcmp(1,$get(album)),$if(%album%,$get(info)Album: $get(text)%album%$char(10)))
$if($strcmp(1,$get(tracknumber)),$if(%tracknumber%,$get(info)Track: $get(text)%tracknumber%$char(10)))
$if($strcmp(1,$get(genre)),$if(%genre%,$get(info)Genre: $get(text)%genre%$char(10)))
$if($strcmp(1,$get(bpm)),$if(%bpm%,$get(info)bpm: $get(text)%bpm%$char(10)))
$if($strcmp(1,$get(date)),$if(%date%,$get(info)Date: $get(text)%date%$char(10)))
$if($strcmp(1,$get(copyright)),$if(%copyright%,$get(info)© $get(text)%copyright%$char(10)))
)
// End Song Info

// Additional Info
$if($strcmp(1,$get(show_additionalinfo)),
$if($if(%comment%,$and($strcmp(1,$get(comment))))
|$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)
$char(1)C$get(headline)Additional Info$char(10)
$if($strcmp(1,$get(comment)),$if(%comment%,$get(info)Comment: $get(text)%comment%$char(10)))
$if($strcmp(1,$get(wwwartist)),$if(%wwwartist%,$get(info)Web: $get(text)%wwwartist%$char(10)))
$if($strcmp(1,$get(publisher)),$if(%publisher%,$get(info)Publisher: $get(text)%publisher%$char(10)))
$if($strcmp(1,$get(language)),$if(%language%,$get(info)Language: $get(text)%language%$char(10)))
$if($strcmp(1,$get(composer)),$if(%composer%,$get(info)Composer: $get(text)%composer%$char(10)))
$if($strcmp(1,$get(lyricist)),$if(%lyricist%,$get(info)Lyricist: $get(text)%lyricist%$char(10)))
$if($strcmp(1,$get(conductor)),$if(%conductor%,$get(info)Conductor: $get(text)%conductor%$char(10)))
$if($strcmp(1,$get(contentgroup)),$if(%contentgroup%,$get(info)Group: $get(text)%contentgroup%$char(10)))
$if($strcmp(1,$get(recordingdates)),$if(%recordingdates%,$get(info)Rec. Date: $get(text)%recordingdates%$char(10)))
$if($strcmp(1,$get(fileowner)),$if(%fileowner%,$get(info)Owner: $get(text)%fileowner%$char(10)))
))
// End Additional Info

// Tech Info
$if($strcmp(1,$get(show_techinfo)),
$get(spacer)
$char(1)C$get(headline)Tech Info$char(10)
$if($strcmp(1,$get(codec)),$get(info)Codec: $get(text)%__codec%$char(10))
$if($strcmp(1,$get(bitrate)),$get(info)Bitrate: $get(text)%__bitrate% Kbit/s$char(10))
$if($strcmp(1,$get(samplerate)),$get(info)Samplerate: $get(text)%__samplerate% Hz$char(10))
$if($strcmp(1,$get(channels)),$get(info)Channels: $get(text)$if(%__channels%,$ifgreater(%__channels%,2,%__channels%ch,$ifgreater(%__channels%,1,' 'Stereo,''Mono)),)$char(10))
$if($strcmp(1,$get(time_elapsed_total)),$get(info)Time: $get(text)%_time_elapsed% / %_time_total%$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,1)
$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)))
$if($strcmp(1,$get(play_date)),$if(%play_date%,$get(info)Last played: $get(text)%play_date%$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)))

// formating filesize string by upNorth
$if($strcmp(1,$get(filesize)),$get(info)Filesize: $get(text)$div(%_filesize%,1048576).$left($num($muldiv($mod(%_filesize%,1048576),1000,1048576),3),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))))
,
$char(1)C$get(headline)Web Info$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 Ifno
$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))))
,$char(1)C$get(headline)NetRadio Info$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)
$char(1)C$get(headline)Misc Info$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)
$char(1)C$get(headline)Original Info$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)))
))

Screenshot: (http://img118.exs.cx/img118/3070/foobarscreenshot8tg.jpg)

Let me know what you think about it (and any bugs too).
Lycox

moderation: changed [ code ] into [ codebox ]
[a href=\"index.php?act=findpost&pid=266314\"][{POST_SNAPBACK}][/a]

Code: [Select]
// Spacer
$puts(spacer,52525------------------------------------------------------------------------------------------$char(10))

// color codes
$puts(headline,4380f4)
$puts(info,b29078)
$puts(text,000000)
$puts(grayed,525252)

// chars
$puts(rating_char,♪)
$puts(progress_char,▪)

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


b29078Mode: %_trackinfo_mode%$char(10)$if(%_trackinfo_notrack%,No track,

// progressbar config
$puts(theme,1)
$puts(progress_length,18)

$if($strcmp($get(theme),1),
$puts(progress_color1,85b194)
$puts(progress_color2,2accff)
)
)

My little piece of HmmXP color theme, just find the strings and copy paste them into it.  _O_ thnx Lycox _O_
Title: foo_uie_trackinfo
Post by: Phi on 2005-01-25 03:05:12
Quote
Because this is not what i want.
http://img178.exs.cx/img178/1761/mp34dd.png (http://img178.exs.cx/img178/1761/mp34dd.png)
[a href="index.php?act=findpost&pid=267784"][{POST_SNAPBACK}][/a]

Put your display string under the "display" tab for the size column, then use %_filesize% in the "sort" tab.

PS. Ever heard of [url]?
Title: foo_uie_trackinfo
Post by: upNorth on 2005-01-25 09:34:51
Quote
Hello all. I have a question.
The plisk formatting string has a special formatting for 3 digit tracknumbers. Is it possible to implement it to upNorth's config for foo_uie_trackinfo? The plisk string does the following: if there is a three-digit tracknumber, writes the #of the disc next to album info.

Code: [Select]
//-----formatting of 3 digit tracknumbers-----
$if($strcmp(3,$len2($get(t_tracknumber))),
$puts(t_disc,'Disc '$cut($get(t_tracknumber),1))
$puts(has_disc_info,1)
$puts(t_tracknumber,$substr($get(t_tracknumber),2,3))
$if($strcmp($get(t_tracknumber),01),$puts(is_first,1))
)
//--------------------------------------------
[a href="index.php?act=findpost&pid=267782"][{POST_SNAPBACK}][/a]


In my formatting, replace this line:
Code: [Select]
'Album: '$get(c_t1b)$replace($meta(album),'(',$get(c_3)'(',')',')'$get(c_t1b),'[',$get(c_3)'[',']',']'$get(c_t1b))FFFFFF|FFFFFF[' disc '$meta(disc)][' '''$meta(discname)'']$char(10)
with this:
Code: [Select]
'Album: '$get(c_t1b)$replace($meta(album),'(',$get(c_3)'(',')',')'$get(c_t1b),'[',$get(c_3)'[',']',']'$get(c_t1b))FFFFFF|FFFFFF$if(%disc%,' disc '%disc%,$ifgreater($len($tracknumber()),2,' disc '$left($tracknumber(),1),))[' '''$meta(discname)'']$char(10)


and
Code: [Select]
'Tracknumber: '$get(c_t1b)$tracknumber(1)$char(10)
with:
Code: [Select]
'Tracknumber: '$get(c_t1b)$ifgreater($len($tracknumber()),2,$right($tracknumber(),2),$tracknumber(1))$char(10)


No guarantee, as I hardly tested it, and just threw it together.
Title: foo_uie_trackinfo
Post by: Zoch on 2005-01-25 12:42:57
(http://forum.hwsw.hu/html/emoticons/ico_respect.gif) Thank you!

Is it possible to put left and right parenthesis next to the text? I tried, but i failed...
disc 1 -> (Disc 1) (http://forum.hwsw.hu/html/emoticons/gondolkodik.gif)
Title: foo_uie_trackinfo
Post by: upNorth on 2005-01-25 13:24:19
Quote
(http://forum.hwsw.hu/html/emoticons/ico_respect.gif) Thank you!

Is it possible to put left and right parenthesis next to the text? I tried, but i failed...
disc 1 -> (Disc 1) (http://forum.hwsw.hu/html/emoticons/gondolkodik.gif)
[a href="index.php?act=findpost&pid=267926"][{POST_SNAPBACK}][/a]

New version:
Code: [Select]
'Album: '$get(c_t1b)$replace($meta(album),'(',$get(c_3)'(',')',')'$get(c_t1b),'[',$get(c_3)'[',']',']'$get(c_t1b))FFFFFF|FFFFFF$if(%disc%,' (Disc '%disc%')',$ifgreater($len($tracknumber()),2,' (Disc '$left($tracknumber(),1)')',))[' '''$meta(discname)'']$char(10)
Title: foo_uie_trackinfo
Post by: war59312 on 2005-01-26 05:00:28
Quote
@war59312

Hmh, could you maybe explain to me what your last two posts have to do with foo_uie_trackinfo?

Could be I overlooked something, but I somehow fail to see the connection.
[a href="index.php?act=findpost&pid=267786"][{POST_SNAPBACK}][/a]

Well srry someone had said something so I was just replying about it. But fine with drop it and start a new topic if need be.
Title: foo_uie_trackinfo
Post by: waileongyeo on 2005-01-26 07:39:45
Quote
Can author add to plugin features, like read info from some file (Ex: *txt, etc).

Ex: I not needed on tagz on foo_ui_trackinfo. I can read tagz from playlist and statusbar.

4what: read lyric from file.txt for curent song, or album(group,artist) history(biography,etc).

PS: Ex - example
[{POST_SNAPBACK}][/a] (http://index.php?act=findpost&pid=266156")


Oh.. It's some sort of [a href="http://www.hydrogenaudio.org/forums/index.php?showtopic=30855&hl=]Lyrics Panel[/url] requested by eliazu?

Good idea. However, how should the trackinfo works? When to display track information and when to display lyrics? You can have both displayed but you need a large panel space on foobar UI. 
Title: foo_uie_trackinfo
Post by: Zurman on 2005-01-26 15:06:53
I have a few requests

Would it be possible to have multiple info panels with multiple configurations?
For example, one panel for the infos about the track, another for displaying the lyrics, another for the review of the CD...

And how about reading content from external file? (for those who use evillyrics for example)

anyway thanks for the plugin
Title: foo_uie_trackinfo
Post by: A_Man_Eating_Duck on 2005-01-29 00:27:49
does anybody know how to get the filesize to work like the %_time_elapsed%.

e.g when the time is at zero then the filesize is also zero, but when it starts to play the filesize starts to count up in MB's as the seconds go by, and finishes at the acutal size of the file.

also is there anyway of stopping CBR mp3's showing when using %__dynamic_bitrate%

This is the string i'm using

Code: [Select]
'AVG Bitrate: '$get(c_t1b)%__bitrate% kbps$if(%__bitrate_dynamic%,$char(10)'VBR Bitrate: '$get(c_t1b)%__bitrate_dynamic% kbps,) $char(10)


It only needs to work with MP3,MPC and WV
Title: foo_uie_trackinfo
Post by: Phi on 2005-01-29 01:44:30
1. $muldiv(%_filesize%,%_time_elapsed_seconds%,%_time_total_seconds%)
(then wrap that in the bytes->MB code)

edit: code was borken
Title: foo_uie_trackinfo
Post by: Olive on 2005-01-29 02:06:54
2. $if($and(%__mp3_stereo_mode%,$not(%__extrainfo%)),MP3 CBR,OTHER)
Title: foo_uie_trackinfo
Post by: MrEnergizer on 2005-01-29 02:12:13
Phi
Just wanted to say thx for this plug in....its just what I needed....its an integral part of my Foo.
Keep up the good work
Mr E
Title: foo_uie_trackinfo
Post by: A_Man_Eating_Duck on 2005-01-29 02:24:54
Quote
1. $muldiv(%_filesize%,%time_elapsed_seconds%,%time_total_seconds)
(then wrap that in the bytes->MB code)
[a href="index.php?act=findpost&pid=269053"][{POST_SNAPBACK}][/a]


That doesn't seem to work,it just stays at zero, i added this to it
Code: [Select]
$div($muldiv(%_filesize%,%time_elapsed_seconds%,%time_total_seconds),1048576)


i think i've had too much caffiene because this one seems to work
Code: [Select]
$left($div($mul($muldiv(%__bitrate%,1000,8),%_time_elapsed_seconds%),1048576),2).$right($div($mul($muldiv(%__bitrate%,1000,8),%_time_elapsed_seconds%),10485.76),2)
Title: foo_uie_trackinfo
Post by: A_Man_Eating_Duck on 2005-01-29 02:40:39
Quote
2. $if($and(%__mp3_stereo_mode%,$not(%__extrainfo%)),MP3 CBR,OTHER)
[a href="index.php?act=findpost&pid=269059"][{POST_SNAPBACK}][/a]


Thanks that works a treat

Code: [Select]
'AVG Bitrate: '$get(c_t1b)%__bitrate% kbps
$if($and(%__mp3_stereo_mode%,$not(%__extrainfo%)),$char(10),$if(%__bitrate_dynamic%,$char(10)'VBR Bitrate: '$get(c_t1b)%__bitrate_dynamic% kbps,) $char(10))


Whoops, i should have just edited my post above, sorry.
Title: foo_uie_trackinfo
Post by: Olive on 2005-01-29 02:43:11
edit: nevermind (you sorted it out on your own)
Title: foo_uie_trackinfo
Post by: A_Man_Eating_Duck on 2005-01-29 03:03:18
Quote
1. %_time... instead of %time... and one % is missing
[a href="index.php?act=findpost&pid=269066"][{POST_SNAPBACK}][/a]


ahh, now it works,
Code: [Select]
$div($muldiv(%_filesize%,%_time_elapsed_seconds%,%_time_total_seconds%),1048576)


this does the same as the one i made, either one or the other is out by a little bit
Code: [Select]
$left($div($muldiv(%_filesize%,%_time_elapsed_seconds%,%_time_total_seconds%),1048576),2).$right($div($muldiv(%_filesize%,%_time_elapsed_seconds%,%_time_total_seconds%),10485.76),2)


Thanks for your help
Title: foo_uie_trackinfo
Post by: Phi on 2005-01-29 08:35:58
Ooops.

@MrEnergizer
No problem. Thanks.
Title: foo_uie_trackinfo
Post by: Zoch on 2005-01-29 11:51:58
Quote
New version:
Code: [Select]
'Album: '$get(c_t1b)$replace($meta(album),'(',$get(c_3)'(',')',')'$get(c_t1b),'[',$get(c_3)'[',']',']'$get(c_t1b))FFFFFF|FFFFFF$if(%disc%,' (Disc '%disc%')',$ifgreater($len($tracknumber()),2,' (Disc '$left($tracknumber(),1)')',))[' '''$meta(discname)'']$char(10)

[a href="index.php?act=findpost&pid=267930"][{POST_SNAPBACK}][/a]

Thank you very much, it works flawlessly.
Title: foo_uie_trackinfo
Post by: gob on 2005-01-31 04:34:53
how can i get strings to truncate with ... instead of continuing on the next line. i made it happen once but i dont know how.
Title: foo_uie_trackinfo
Post by: Phi on 2005-01-31 04:55:30
A couple of pages back:
http://www.hydrogenaudio.org/forums/index....ndpost&p=263954 (http://www.hydrogenaudio.org/forums/index.php?showtopic=29363&view=findpost&p=263954)

Its not a perfect solution though.
Title: foo_uie_trackinfo
Post by: gob on 2005-01-31 05:23:40
Quote
A couple of pages back:
http://www.hydrogenaudio.org/forums/index....ndpost&p=263954 (http://www.hydrogenaudio.org/forums/index.php?showtopic=29363&view=findpost&p=263954)

Its not a perfect solution though.
[a href="index.php?act=findpost&pid=269592"][{POST_SNAPBACK}][/a]



nope, not with non fixt width characters. but i used $rep(38,W) to get a figure for the wrapping and it works perfect. i only have 3 lines that would have strings over 38 chars neways.

thx man
Title: foo_uie_trackinfo
Post by: khiloa on 2005-01-31 21:54:46
Phi: I started using ColumnsUI about two weeks ago and it was lacking something until I tried this component. It works awesome, just what I needed! Thanks.
Title: foo_uie_trackinfo
Post by: gob on 2005-02-01 08:45:25
<removed>
Title: foo_uie_trackinfo
Post by: Olive on 2005-02-01 09:39:29
Quote
i created a little string for the info box today that i think looks pretty sweet. i made it easy enough to configure the colors and such. i might work on it a bit more latter but for the most part i think its finished. tell me what u guys think.

Code: [Select]

//////////////////////////////////////////////////////////////////////////////////////////////
////  About:
////  A simple formatting script for foo_uie_trackinfo.
////  It will work with the following tags:
////  %RATING%, %PLAY_COUNTER%, %PLAY_TIME%,
////  %LABEL% and/or %PUBLISHER%.
////  Best viewed in Arial 8pt Bold
////  Created by: korsairr@cogeco.ca
////  Date: Jan 31, 2005
/////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////
//Colors, etc.
////////////////////////////////

$puts(default_color,d4d4d4)
$puts(rating_color_1,5357EF)
$puts(rating_color_2,042573)
$puts(rating_symbol,♫)
$puts(is_playing_color,5357EF)
$puts(tag_missing_color,757575)
$puts(heading_color_l,ffb00d)
$puts(heading_color_r,000000)
$puts(is_playing_color,5357EF)

////////////////////////////////
//Code
////////////////////////////////


////////////////////////////////
///////Song Info
////////////////////////////////
$transition(----- Song Info ----------------------------------------,$get(heading_color_l),$get(heading_color_r))

$char(10)$get(default_color)

$if(%title%,$if(%_isplaying%,
$get(is_playing_color)$iflonger(%title%,36,$cut(%title%,33)...,%title%),
$iflonger(%title%,36,$trim($cut(%title%,33))...,%title%)),
$if(%_isplaying%,
$get(is_playing_color)$iflonger(%_filename_ext%,36,$cut(%_filename_ext%,33)...,%_filename_ext%),
$iflonger(%_filename_ext%,36,$trim($cut(%_filename_ext%,33))...,%_filename_ext%)))

$char(10)$get(default_color) 

$if(%artist%,
$iflonger(%artist%,36,$cut(%artist%,33)...,%artist%),
$get(tag_missing_color)no artist info)

$char(10)$get(default_color) 

$if(%album%,
$iflonger(%album%,36,$cut(%album%,33)...,%album%),
$get(tag_missing_color)no album info)

$char(10)$get(default_color) 

$if($or(%publisher%.%label%,%date%),$if($or(%publisher%,%label%),© ,)%date%$if($or(%publisher%,%label%),'. ',)[%publisher% ][label],
$get(tag_missing_color)no date or copyright info)

$char(10)$get(default_color) 

$if(%rating%,
$repeat($get(rating_color_1)$get(rating_symbol) ,%rating%)$repeat($get(rating_color_2)$get(rating_symbol) ,$sub(5,%rating%)) ,)
$get(default_color)$if(%genre%,%genre%,$get(tag_missing_color)no genre info)

$char(10)$char(10)

////////////////////////////////
///////Statistics
////////////////////////////////

$transition(----- Statistics -----------------------------------------,$get(heading_color_l),$get(heading_color_r))

$char(10)$get(default_color) 

$if(%play_date%,
$puts(month,$left(%play_date%,2))
$puts(day,$substr(%play_date%,4,5))
$puts(year,$right(%play_date%,2))
$puts(month_name,$select($get(month),
Jan,Feb,March,April,May,June,July,Aug,Sept,Oct,Nov,Dec))
$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)))))
$puts(time_of_year,$get(month_name) $get(day)$get(xx) 20$get(year))

$if(%play_counter%,Played $if($strcmp(%play_counter%,1),
once','$if(%play_date%, on $get(time_of_year)),
%play_counter% times$if(%play_date%,
$char(10)  Last played on $get(time_of_year))),This song has not played before)

$ifgreater(%play_counter%,1,,$char(10))

$char(10)$char(10)

////////////////////////////////
///////Tech Info
////////////////////////////////

$transition(----- Tech Info -----------------------------------------,$get(heading_color_l),$get(heading_color_r))

$char(10)$get(default_color) 

%__codec%
$if(%__bitrate_dynamic%,%__bitrate_dynamic%,%__bitrate%)kbps
$if($stricmp(%__codec%,mp3),$if($stricmp(%__extrainfo%,vbr),VBR,CBR))
$if($strcmp(%__channels%,1),Mono,Stereo)

$char(10)$get(default_color) 

[%_time_elapsed%/][%_length%][  -%_time_remaining%]
$if(%_isplaying%, 
$muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%)'%',) 
$div(%_filesize%,1048576).
$left($num($muldiv($mod(%_filesize%,1048576),1000,1048576),3),2)' MB'

$char(10)$get(default_color) 

$if($or(%__replaygain_track_gain%,%__replaygain_album_gain%),
['['Tg']' %__replaygain_track_gain% ]['['Ag']' %__replaygain_album_gain%],
$get(tag_missing_color)there is no gain)

[a href=\"index.php?act=findpost&pid=269971\"][{POST_SNAPBACK}][/a]
Can we sue you for not using codebox? 
Good config if you ask me, still a few things to iron out imo:
- a little bug in the counter (played once,)
- I think you should use variables for the pannel width, instead of 33 and 36, because everyone uses a different one.
- There are no separator between codec, bitrate and channels, is it intentional?
- $if($strcmp(%__channels%,1),Mono,Stereo) isn't AC3 5.1 friendly... Edit: I'd use $if($stricmp($codec(),MP3),%__mp3_stereo_mode%,$channels())
Title: foo_uie_trackinfo
Post by: gob on 2005-02-01 10:06:16
Quote
Can we sue you for not using codebox? 
Good config if you ask me, still a few things to iron out imo:
- a little bug in the counter (played once,)
- I think you should use variables for the pannel width, instead of 33 and 36, because everyone uses a different one.
- There are no separator between codec, bitrate and channels, is it intentional?
- $if($strcmp(%__channels%,1),Mono,Stereo) isn't AC3 5.1 friendly... Edit: I'd use $if($stricmp($codec(),MP3),%__mp3_stereo_mode%,$channels())
[a href="index.php?act=findpost&pid=269983"][{POST_SNAPBACK}][/a]


I didnt any seperators because im using a small window. the comma is not a typo, its to emphasize the track was played once. not once on that day. i will get around to making it size friendly soon, and ive already replaced your codec string

btw i didnt know about [ / codebox] thanks for the heads up.


Edit: you can now specify a size for the infobox.
Title: foo_uie_trackinfo
Post by: Olive on 2005-02-01 10:24:15
Quote
the comma is not a typo, its to emphasize the track was played once. not once on that day.[a href="index.php?act=findpost&pid=269992"][{POST_SNAPBACK}][/a]

Oh ok, it's because I use only the %playcounter% tag, so it's all I can see in the stats section, perhaps you could include the comma into $if(%play_date%
Besides that, I like the layout, good work.
Title: foo_uie_trackinfo
Post by: gob on 2005-02-01 10:32:50
Quote
Quote
the comma is not a typo, its to emphasize the track was played once. not once on that day.[a href="index.php?act=findpost&pid=269992"][{POST_SNAPBACK}][/a]

Oh ok, it's because I use only the %playcounter% tag, so it's all I can see in the stats section, perhaps you could include the comma into $if(%play_date%
Besides that, I like the layout, good work.
[a href="index.php?act=findpost&pid=269996"][{POST_SNAPBACK}][/a]



i see what you mean now. i didnt notice i left that in there if there is no play time.  fixt
Title: foo_uie_trackinfo
Post by: ajax3 on 2005-02-03 16:52:34
Quote
Hey guys,

I did another code for track info panel. Highly customizeable I guess. Look at the config part.

Code: [Select]
// Highly customizeable track information made by Lycox

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

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

// 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(mixartist,1)
$puts(band,1)
$puts(album,1)
$puts(tracknumber,1)
$puts(genre,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)
$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 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(bitrate,1)
$puts(samplerate,1)
$puts(channels,1)
$puts(time_elapsed_total,1)
$puts(trackgain,1)
$puts(albumgain,1)
$puts(rating,1)
$puts(play_counter,1)
$puts(play_date,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(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)

// Spacer
$puts(spacer,d6d6d6------------------------------------------------------------------------------------------$char(10))

// color codes
$puts(headline,256d3d)
$puts(info,ec9184)
$puts(text,000000)
$puts(grayed,c8c8c8)

// chars
$puts(rating_char,♪)
$puts(progress_char,●)

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


DCAE8DMode: %_trackinfo_mode%$char(10)$if(%_trackinfo_notrack%,No track,

// progressbar config
$puts(theme,1)
$puts(progress_length,18)

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


// 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))$char(10)

// Song Info
$if($strcmp(1,$get(show_songinfo)),
$get(spacer)
$char(1)C$get(headline)Song Info$char(10)
$if($strcmp(1,$get(title)),$get(info)Title: $get(text)$if(%title%,%title%,$get(grayed)'['No Title']')$char(10))
$if($strcmp(1,$get(artist)),$get(info)Artist: $get(text)$if(%artist%,%artist%,$get(grayed)'['Unknown Artist']')$char(10))
$if($strcmp(1,$get(mixartist))
|$strcmp(1,$get(band))
,
$if($strcmp(1,$get(mixartist)),$if(%mixartist%,$get(info)MixArtist: $get(text)%mixartist%$char(10)))
$if($strcmp(1,$get(band)),$if(%band%,$get(info)Band: $get(text)%band%$char(10))))
$if($strcmp(1,$get(album)),$if(%album%,$get(info)Album: $get(text)%album%$char(10)))
$if($strcmp(1,$get(tracknumber)),$if(%tracknumber%,$get(info)Track: $get(text)%tracknumber%$char(10)))
$if($strcmp(1,$get(genre)),$if(%genre%,$get(info)Genre: $get(text)%genre%$char(10)))
$if($strcmp(1,$get(bpm)),$if(%bpm%,$get(info)bpm: $get(text)%bpm%$char(10)))
$if($strcmp(1,$get(date)),$if(%date%,$get(info)Date: $get(text)%date%$char(10)))
$if($strcmp(1,$get(copyright)),$if(%copyright%,$get(info)© $get(text)%copyright%$char(10)))
)
// End Song Info

// Additional Info
$if($strcmp(1,$get(show_additionalinfo)),
$if($if(%comment%,$and($strcmp(1,$get(comment))))
|$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)
$char(1)C$get(headline)Additional Info$char(10)
$if($strcmp(1,$get(comment)),$if(%comment%,$get(info)Comment: $get(text)%comment%$char(10)))
$if($strcmp(1,$get(wwwartist)),$if(%wwwartist%,$get(info)Web: $get(text)%wwwartist%$char(10)))
$if($strcmp(1,$get(publisher)),$if(%publisher%,$get(info)Publisher: $get(text)%publisher%$char(10)))
$if($strcmp(1,$get(language)),$if(%language%,$get(info)Language: $get(text)%language%$char(10)))
$if($strcmp(1,$get(composer)),$if(%composer%,$get(info)Composer: $get(text)%composer%$char(10)))
$if($strcmp(1,$get(lyricist)),$if(%lyricist%,$get(info)Lyricist: $get(text)%lyricist%$char(10)))
$if($strcmp(1,$get(conductor)),$if(%conductor%,$get(info)Conductor: $get(text)%conductor%$char(10)))
$if($strcmp(1,$get(contentgroup)),$if(%contentgroup%,$get(info)Group: $get(text)%contentgroup%$char(10)))
$if($strcmp(1,$get(recordingdates)),$if(%recordingdates%,$get(info)Rec. Date: $get(text)%recordingdates%$char(10)))
$if($strcmp(1,$get(fileowner)),$if(%fileowner%,$get(info)Owner: $get(text)%fileowner%$char(10)))
))
// End Additional Info

// Tech Info
$if($strcmp(1,$get(show_techinfo)),
$get(spacer)
$char(1)C$get(headline)Tech Info$char(10)
$if($strcmp(1,$get(codec)),$get(info)Codec: $get(text)%__codec%$char(10))
$if($strcmp(1,$get(bitrate)),$get(info)Bitrate: $get(text)%__bitrate% Kbit/s$char(10))
$if($strcmp(1,$get(samplerate)),$get(info)Samplerate: $get(text)%__samplerate% Hz$char(10))
$if($strcmp(1,$get(channels)),$get(info)Channels: $get(text)$if(%__channels%,$ifgreater(%__channels%,2,%__channels%ch,$ifgreater(%__channels%,1,' 'Stereo,''Mono)),)$char(10))
$if($strcmp(1,$get(time_elapsed_total)),$get(info)Time: $get(text)%_time_elapsed% / %_time_total%$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,1)
$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)))
$if($strcmp(1,$get(play_date)),$if(%play_date%,$get(info)Last played: $get(text)%play_date%$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)))

// formating filesize string by upNorth
$if($strcmp(1,$get(filesize)),$get(info)Filesize: $get(text)$div(%_filesize%,1048576).$left($num($muldiv($mod(%_filesize%,1048576),1000,1048576),3),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))))
,
$char(1)C$get(headline)Web Info$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 Ifno
$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))))
,$char(1)C$get(headline)NetRadio Info$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)
$char(1)C$get(headline)Misc Info$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)
$char(1)C$get(headline)Original Info$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)))
))

Screenshot: (http://img118.exs.cx/img118/3070/foobarscreenshot8tg.jpg)

Let me know what you think about it (and any bugs too).
Lycox

moderation: changed [ code ] into [ codebox ]
[a href=\"index.php?act=findpost&pid=266314\"][{POST_SNAPBACK}][/a]

i used your code but no info show. What i made wrong?? And when i use UpNorth code everything works fine:)
Title: foo_uie_trackinfo
Post by: Olive on 2005-02-03 17:52:08
Hmm it seems to work for me, are you sure you copied the whole stuff?
A little thing though, there are a couple of unnecessary quotation marks at: 
$if($strcmp(1,$get(channels)),$get(info)Channels: $get(text)$if(%__channels%,$ifgreater(%__channels%,2,%__channels%ch,$ifgreater(%__channels%,1,' 'Stereo,''Mono)),)$char(10))
Title: foo_uie_trackinfo
Post by: upNorth on 2005-02-03 18:43:42
Quote
Hmm it seems to work for me, are you sure you copied the whole stuff?
A little thing though, there are a couple of unnecessary quotation marks at: 
$if($strcmp(1,$get(channels)),$get(info)Channels: $get(text)$if(%__channels%,$ifgreater(%__channels%,2,%__channels%ch,$ifgreater(%__channels%,1,' 'Stereo,''Mono)),)$char(10))[a href="index.php?act=findpost&pid=270642"][{POST_SNAPBACK}][/a]
Not that it matters really, but quotation marks are often nice to add for readability and for syntax highlighting to work. Looks like you made four of them bold, but only the two in front of Stereo is "unnecessary" (because of the space between them), as the two in front of Mono will actually display a quotation mark (no space between them).
Title: foo_uie_trackinfo
Post by: ajax3 on 2005-02-03 19:02:00
Quote
Hmm it seems to work for me, are you sure you copied the whole stuff?
A little thing though, there are a couple of unnecessary quotation marks at: 
$if($strcmp(1,$get(channels)),$get(info)Channels: $get(text)$if(%__channels%,$ifgreater(%__channels%,2,%__channels%ch,$ifgreater(%__channels%,1,' 'Stereo,''Mono)),)$char(10))
[a href="index.php?act=findpost&pid=270642"][{POST_SNAPBACK}][/a]



yes it works well:) i have small mistake i use black background:( so i didnt see anything:(
soory for trouble
Title: foo_uie_trackinfo
Post by: Olive on 2005-02-03 22:11:00
Quote
Quote
Hmm it seems to work for me, are you sure you copied the whole stuff?
A little thing though, there are a couple of unnecessary quotation marks at: 
$if($strcmp(1,$get(channels)),$get(info)Channels: $get(text)$if(%__channels%,$ifgreater(%__channels%,2,%__channels%ch,$ifgreater(%__channels%,1,' 'Stereo,''Mono)),)$char(10))[a href="index.php?act=findpost&pid=270642"][{POST_SNAPBACK}][/a]
Not that it matters really, but quotation marks are often nice to add for readability and for syntax highlighting to work. Looks like you made four of them bold, but only the two in front of Stereo is "unnecessary" (because of the space between them), as the two in front of Mono will actually display a quotation mark (no space between them).
[a href="index.php?act=findpost&pid=270662"][{POST_SNAPBACK}][/a]

Actually, the ' ' before stereo is unnecessary because there's already been a space (linebreak in my post) after Channels: so that's 2 spaces between "Channels:" and "stereo". As for the ones before mono they leed to "Channels: 'Mono" instead of "Channels: Mono". That being said it's a cool config and very configurable indeed
Title: foo_uie_trackinfo
Post by: Leech on 2005-02-05 18:13:23
Quote
i created a little string for the info box today that i think looks pretty sweet. i made it easy enough to configure the colors and such. i might work on it a bit more latter but for the most part i think its finished. tell me what u guys think.

(http://img213.exs.cx/img213/9672/foo2k1kj.th.png) (http://home.cogeco.ca/~korsairr/foo2k.png)


Code: [Select]
////////////////////////////////
//Colors, etc.
////////////////////////////////

$puts(info_box_size,36)
$puts(default_color,d4d4d4)
$puts(rating_color_1,5357EF)
$puts(rating_color_2,042573)
$puts(rating_symbol,♫)
$puts(is_playing_color,5357EF)
$puts(tag_missing_color,757575)
$puts(heading_color_l,ffb00d)
$puts(heading_color_r,000000)
$puts(is_playing_color,5357EF)

////////////////////////////////
//Code
////////////////////////////////


////////////////////////////////
///////Song Info
////////////////////////////////
$transition(----- Song Info $repeat(-,$add($get(info_box_size),4)),$get(heading_color_l),$get(heading_color_r))

$char(10)$get(default_color)

$if(%title%,$if(%_isplaying%,
$get(is_playing_color)$iflonger(%title%,$get(info_box_size),$cut(%title%,$sub($get(info_box_size),3))...,%title%),
$iflonger(%title%,$get(info_box_size),$trim($cut(%title%,$sub($get(info_box_size),3)))...,%title%)),
$if(%_isplaying%,
$get(is_playing_color)$iflonger(%_filename_ext%,$get(info_box_size),$cut(%_filename_ext%,$sub($get(info_box_size),3))...,%_filename_ext%),
$iflonger(%_filename_ext%,$get(info_box_size),$trim($cut(%_filename_ext%,$sub($get(info_box_size),3)))...,%_filename_ext%)))

$char(10)$get(default_color) 

$if(%artist%,
$iflonger(%artist%,$get(info_box_size),$cut(%artist%,$sub($get(info_box_size),3))...,%artist%),
$get(tag_missing_color)no artist info)

$char(10)$get(default_color) 

$if(%album%,
$iflonger(%album%,$get(info_box_size),$cut(%album%,$sub($get(info_box_size),3))...,%album%),
$get(tag_missing_color)no album info)

$char(10)$get(default_color) 

$if($or(%publisher%.%label%,%date%),$if($or(%publisher%,%label%),© ,)%date%$if($or(%publisher%,%label%),'. ',)[%publisher% ][%label%],
$get(tag_missing_color)no date or copyright info)

$char(10)$get(default_color) 

$if(%rating%,
$repeat($get(rating_color_1)$get(rating_symbol) ,%rating%)$repeat($get(rating_color_2)$get(rating_symbol) ,$sub(5,%rating%)) ,)
$get(default_color)$if(%genre%,%genre%,$get(tag_missing_color)no genre info)

$char(10)$char(10)

////////////////////////////////
///////Statistics
////////////////////////////////

$transition(----- Statistics  $repeat(-,$add($get(info_box_size),4)),$get(heading_color_l),$get(heading_color_r))

$char(10)$get(default_color) 

$if(%play_date%,
$puts(month,$left(%play_date%,2))
$puts(day,$substr(%play_date%,4,5))
$if($strcmp($left($get(day),1),0),$puts(day,$right($get(day),1)))
$puts(year,$right(%play_date%,2))
$puts(month_name,$select($get(month),
Jan,Feb,March,April,May,June,July,Aug,Sept,Oct,Nov,Dec))
$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)))))
$puts(time_of_year,$get(month_name) $get(day)$get(xx) 20$get(year))

$if(%play_counter%,Played $if($strcmp(%play_counter%,1),
once$if(%play_date%,',')$if(%play_date%, on $get(time_of_year)),
%play_counter% times$if(%play_date%,
$char(10)  Last played on $get(time_of_year))),This song has not played before)

$ifgreater(%play_counter%,1,,$char(10))

$char(10)$char(10)

////////////////////////////////
///////Tech Info
////////////////////////////////

$transition(----- Tech Info  $repeat(-,$add($get(info_box_size),4)),$get(heading_color_l),$get(heading_color_r))

$char(10)$get(default_color) 

%__codec%
$if(%__bitrate_dynamic%,%__bitrate_dynamic%,%__bitrate%)kbps
$if($stricmp(%__codec%,mp3),$if($stricmp(%__extrainfo%,vbr),VBR,CBR))
$if($stricmp($codec(),MP3),%__mp3_stereo_mode%,$channels())

$char(10)$get(default_color) 

[%_time_elapsed%/][%_length%][  -%_time_remaining%]
$if(%_isplaying%, 
$muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%)'%',) 
$div(%_filesize%,1048576).
$left($num($muldiv($mod(%_filesize%,1048576),1000,1048576),3),2)' MB'

$char(10)$get(default_color) 

$if($or(%__replaygain_track_gain%,%__replaygain_album_gain%),
['['Tg']' %__replaygain_track_gain% ]['['Ag']' %__replaygain_album_gain%],
$get(tag_missing_color)there is no gain)



Edited for bugz.
[a href=\"index.php?act=findpost&pid=269971\"][{POST_SNAPBACK}][/a]

Excellent config overall!!
Really like you own..

How are this panels at the top made? with multiple tabs? i only can make panels with tabs at the left.

Can you share your configs?

Thanks
Title: foo_uie_trackinfo
Post by: gob on 2005-02-06 06:56:52
Quote
Excellent config overall!!
Really like you own..

How are this panels at the top made? with multiple tabs? i only can make panels with tabs at the left.

Can you share your configs?

Thanks
[{POST_SNAPBACK}][/a] (http://index.php?act=findpost&pid=271177")



thanks man. i want to tweak out the columns ui formatting soon, but first i want to check out the sdk. i might want to make a buttons toolbar.

heres my plugins folder and config file.

[a href="http://home.cogeco.ca/~korsairr/foo2k.rar]http://home.cogeco.ca/~korsairr/foo2k.rar[/url]
Title: foo_uie_trackinfo
Post by: lyte on 2005-02-06 17:13:36
Quote
Quote
Excellent config overall!!
Really like you own..

How are this panels at the top made? with multiple tabs? i only can make panels with tabs at the left.

Can you share your configs?

Thanks
[{POST_SNAPBACK}][/a] (http://index.php?act=findpost&pid=271177")



thanks man. i want to tweak out the columns ui formatting soon, but first i want to check out the sdk. i might want to make a buttons toolbar.

heres my plugins folder and config file.

[a href="http://home.cogeco.ca/~korsairr/foo2k.rar]http://home.cogeco.ca/~korsairr/foo2k.rar[/url]
[a href="index.php?act=findpost&pid=271278"][{POST_SNAPBACK}][/a]




your rar seems to be incomplete ;(
Title: foo_uie_trackinfo
Post by: gob on 2005-02-06 22:41:24
Quote
your rar seems to be incomplete ;(
[a href="index.php?act=findpost&pid=271361"][{POST_SNAPBACK}][/a]



i wonder how that happened... try it now.
Title: foo_uie_trackinfo
Post by: .zolder on 2005-02-08 02:48:41
Hi, thanks a lot for this beautiful plugin!

Despite my mediocre tagz-skills (and thanks previously posted configs), I managed to create a nice minimal trackinfo panel which suits my exact needs:



Code: [Select]
> $iflonger(%artist%,26,$cut(%artist%,23)...,%artist%)
$char(10)> $iflonger(%album%,26,$cut(%album%,23)$if(%album artist%,<va>,)...,%album% $if(%album artist%,<va>, ))
$char(10)> # $num(%tracknumber%,2)   $if(%_time_elapsed%,%_time_elapsed% / %_length%,%_length%)
$char(10)> $iflonger(%title%,26,$cut(%title%,23)...,%title%)
$char(10)-----------------------------
$char(10)on ipod: $if(%ipod%,%ipod%,no)    $if(%play_counter%,%play_counter%X,0X)   $if(%__lame_profile%,--%__lame_profile%,%__bitrate%kbps)
$char(10)-----------------------------
$char(10)[$meta(comment)]

edit: updated code
Title: foo_uie_trackinfo
Post by: Olive on 2005-02-08 04:38:09
Not bad but multiline comments would be fully displayed if you used [$meta(comment)] instead of $if(%comment%,%comment%, )
Title: foo_uie_trackinfo
Post by: topdownjimmy on 2005-02-08 14:36:10
Can trackinfo be made to support %_system_day%, etc?  This could make for some interesting formatting...for instance, if something was played less than a week ago, it could say "Last Played Thursday" instead of "Last Played February 3, 2005."  Or "Last played 2 weeks, 3 days ago."
Title: foo_uie_trackinfo
Post by: .zolder on 2005-02-08 17:40:42
Quote
Not bad but multiline comments would be fully displayed if you used [$meta(comment)] instead of $if(%comment%,%comment%, )
[a href="index.php?act=findpost&pid=271729"][{POST_SNAPBACK}][/a]

thanks for the tip, changed that now 
Title: foo_uie_trackinfo
Post by: Phi on 2005-02-09 13:36:19
Quote
Can trackinfo be made to support %_system_day%, etc?  This could make for some interesting formatting...for instance, if something was played less than a week ago, it could say "Last Played Thursday" instead of "Last Played February 3, 2005."  Or "Last played 2 weeks, 3 days ago."

Sure. So thats:

%_system_year%
%_system_day%
%_system_month%
%_system_day_of_week%
%_system_hour%

...? any others I'm missing or people would like? In the upcoming version there will also be a couple of %_volume_*% tags as well.
Title: foo_uie_trackinfo
Post by: upNorth on 2005-02-09 13:56:03
Quote
%_system_year%
%_system_day%
%_system_month%
%_system_day_of_week%
%_system_hour%

...? any others I'm missing or people would like? In the upcoming version there will also be a couple of %_volume_*% tags as well.[a href="index.php?act=findpost&pid=272067"][{POST_SNAPBACK}][/a]
Julian Date as seen in foo_playcount, could be useful. Both with and without fraction. I use the one without myself (%j in foo_playcount).

Do you know if something like this would be possible to add to the core (or something)? Adding this "globally" seems like a better approach than every developer adding his own version.
Title: foo_uie_trackinfo
Post by: Phi on 2005-02-09 16:06:49
Alright, I'll check that one out as well.

Quote
Do you know if something like this would be possible to add to the core (or something)? Adding this "globally" seems like a better approach than every developer adding his own version.

Yeah, it would be nicer to have these all defined in one place. Adding them to the core would be no problem, but we'd have to wait for v0.9 for that. Some kind of service that allowed components to define their own global variables (and others to use them) could be useful I guess, although I can't really think of enough globally useful variables to make that worth implementing.
Title: foo_uie_trackinfo
Post by: topdownjimmy on 2005-02-13 17:29:12
I don't know if this has been suggested yet, but it would also be nice if trackinfo changed its "follow cursor / now playing" behavior based on whether or not anything is playing at all (like albumart).  If "follow cursor" is enabled and playback stops, trackinfo remains frozen on the last track played.
Title: foo_uie_trackinfo
Post by: Phi on 2005-02-14 01:17:32
Something similar was requested a long time ago. The new version doesn't work the same as the current one, but it should be possible to do what you want.
Title: foo_uie_trackinfo
Post by: ThoSchu on 2005-02-20 12:35:44
I'm new to foobar and use the navigator suite. Wanted to extend the code for my track info with a line i found in another file.
The code looks like this:

Code: [Select]
// LAME (needs modified "foo_input_std.dll")
$if($or(%__lame_profile%,%__lame_version%),
D7B997LAME: F3EAE0
$if(%__lame_profile%,$replace(%__lame_profile%,aps,P.Standard,apfs,P.Fast Standard,ape,P.Extreme,apfe,P.Fast Extreme,api,P.Insane)
$if(%__lame_version%,' ('%__lame_version%')')
)$char(10)


This line gives me a syntax error: $if($or(%__lame_profile%,%__lame_version%),
When i remove it it's working but the line with the "Lame:" is still visible in the track info field even if it's not lame encoded.   
Anyone got an idea?
Title: foo_uie_trackinfo
Post by: upNorth on 2005-02-20 12:53:15
@ThoSchu:
Code: [Select]
// LAME (needs modified "foo_input_std.dll")
$if($or(%__lame_profile%,%__lame_version%),
D7B997LAME: F3EAE0
$if(%__lame_profile%,$replace(%__lame_profile%,aps,P.Standard,apfs,P.Fast Standard,ape,P.Extreme,apfe,P.Fast Extreme,api,P.Insane))
$if(%__lame_version%,' ('%__lame_version%')')
)$char(10)
There was a missing parenthesis after the lame profile line.

Btw: In case you have this code on it's own line, and don't want it to leave a blank line if it's not LAME encoded, just put the $char(10) inside the last parenthesis.
Title: foo_uie_trackinfo
Post by: ThoSchu on 2005-02-20 13:12:01
Quote
Btw: In case you have this code on it's own line, and don't want it to leave a blank line if it's not LAME encoded, just put the $char(10) inside the last parenthesis.
[a href="index.php?act=findpost&pid=275301"][{POST_SNAPBACK}][/a]


Thanks upNorth! It's working now and i can go on to configure my status bar. 
Title: foo_uie_trackinfo
Post by: Biscuits on 2005-02-21 00:18:20
Sorry if this is the wrong place to be posting this, but is there a way to make a line in the trackinfo panel that will show the total time of the selected songs like you can have in the status bar? Also, is there a way to display the volume like in the status bar? (I'd like to get rid of the status bar and those are two things that I still want)

Thanks,
-Tristan
Title: foo_uie_trackinfo
Post by: Phi on 2005-02-21 02:04:15
Not yet.
Title: foo_uie_trackinfo
Post by: HawkMan on 2005-02-23 00:19:23
Quote
Quote
Excellent config overall!!
Really like you own..

How are this panels at the top made? with multiple tabs? i only can make panels with tabs at the left.

Can you share your configs?

Thanks
[{POST_SNAPBACK}][/a] (http://index.php?act=findpost&pid=271177")



thanks man. i want to tweak out the columns ui formatting soon, but first i want to check out the sdk. i might want to make a buttons toolbar.

heres my plugins folder and config file.

[a href="http://home.cogeco.ca/~korsairr/foo2k.rar]http://home.cogeco.ca/~korsairr/foo2k.rar[/url]
[a href="index.php?act=findpost&pid=271278"][{POST_SNAPBACK}][/a]



With you config, I have done whatever I can but I can't get it to load playlists and play them throught he playlists panel, it will seemingly load them in the, or rather switch to the chosen playlist, but when I hit play or whatever, it'll just restart playign on the one loaded form the database, even if I load the playlist by clickign the playlist tab,it'll just play the one last loaded fomr the database again.

what setting do I change to make it actually listen to the playlist I choose ?
Title: foo_uie_trackinfo
Post by: arty on 2005-03-01 17:18:46
Hiya. I'm having some stability problems running foo_uie_trackinfo within a tab created by foo_uie_tabs; the only consistent behaviour is that my foobar freezes up every time I try to close it when I've added trackinfo as a tab to my tabbed panel stack. I'm also getting some random crashes but can't quite seem to pin down the behaviour that is causing them. The random crashes give me failure.txt crash logs but the freeze doesn't.

Sorry if that's not very helpful

arty
Title: foo_uie_trackinfo
Post by: Phi on 2005-03-02 00:20:13
I haven't seen this happen before. Are you using the latest versions of trackinfo and uie_tabs? Can you link to (or [codebox ]) one of those failure.txts?
Title: foo_uie_trackinfo
Post by: arty on 2005-03-02 18:37:06
Quote
I haven't seen this happen before. Are you using the latest versions of trackinfo and uie_tabs? Can you link to (or [codebox ]) one of those failure.txts?
[a href=\"index.php?act=findpost&pid=278412\"][{POST_SNAPBACK}][/a]

I think I am using the latest versions of both; foobar reports 0.1.8 for uie_tabs and 0.1 for trackinfo - is that an old version? It's one I downloaded just the other day from the first post in this thread.

Here's one of the failure.txt files. The others are similar but not identical:

Code: [Select]
Illegal operation:
Code: C0000005h, flags: 00000000h, address: 0042144Fh
Access violation, operation: read, address: 00750071h
Call path:
WinMain=>app_mainloop
This is the first crash logged by this instance.
Code bytes (0042144Fh):
0042140Fh:  5E C9 C2 04 00 55 8B EC 51 B8 F8 58 44 00 56 50
0042141Fh:  89 45 FC FF 15 18 90 43 00 8B 45 08 FF 05 10 59
0042142Fh:  44 00 85 C0 7C 1E 8B 0D 1C 59 44 00 C1 E9 03 3B
0042143Fh:  C1 73 11 8B 0D 14 59 44 00 8B 34 C1 8B CE 8B 06
0042144Fh:  FF 10 EB 02 33 F6 8D 4D FC E8 C7 4B FE FF 8B C6
0042145Fh:  5E C9 C2 04 00 55 8B EC 83 EC 10 E8 E2 00 00 00
0042146Fh:  84 C0 74 6F 57 8B 7D 08 85 FF 7C 5F A1 1C 59 44
0042147Fh:  00 C1 E8 03 3B F8 73 53 53 B8 F8 58 44 00 56 50
Stack (0012F8E4h):
0012F8C4h:  0125EEB8 7C9C76F0 77F643DD 7C9C76F0
0012F8D4h:  00000004 00000000 0125E3C4 00000000
0012F8E4h:  01628E02 004458F8 77C47CE5 00DD3D48
0012F8F4h:  00000D2C 00000111 003A032E 0012F9DC
0012F904h:  00000000 000027FB 00000D2C 0089B530
0012F914h:  00DD52ED 010C2738 00DD2242 010C2738
0012F924h:  00000111 003A032E 00000000 77D4B250
0012F934h:  00000502 00000000 00DD7260 010C2738
0012F944h:  0000001F 0000001F 00000000 0000000E
0012F954h:  0012FA38 00DD6748 00000000 00DD1E4C
0012F964h:  003A032E 77D4C9E0 003A032E 00000133
0012F974h:  01010056 00DD30BA 003A032E 00000111
0012F984h:  030003EA 00200346 0012FA18 00DD2F70
0012F994h:  00000000 0012FA3C 77D54CFA 00000000
0012F9A4h:  00000000 0000011C 77D484BC 77D48564
0012F9B4h:  77D48709 003A032E 00000111 030003EA
0012F9C4h:  00200346 00DD2F70 DCBAABCD 00000000
0012F9D4h:  0012FA18 00DD2F70 0012FA48 77D54CA6
0012F9E4h:  00DD2F70 003A032E 00000111 030003EA
0012F9F4h:  00200346 00000111 003A032E 00612820
Registers:
EAX: 00750071, EBX: 00000D2C, ECX: 01284264, EDX: 004458F8
ESI: 01284264, EDI: 0089B530, EBP: 0012F8EC, ESP: 0012F8E4
Crash location: "foobar2000", loaded at 00400000h - 00452000h

Loaded modules:
foobar2000                      loaded at 00400000h - 00452000h
ntdll                            loaded at 7C900000h - 7C9B0000h
kernel32                        loaded at 7C800000h - 7C8F4000h
USER32                          loaded at 77D40000h - 77DD0000h
GDI32                            loaded at 77F10000h - 77F56000h
ole32                            loaded at 774E0000h - 7761C000h
msvcrt                          loaded at 77C10000h - 77C68000h
ADVAPI32                        loaded at 77DD0000h - 77E6B000h
RPCRT4                          loaded at 77E70000h - 77F01000h
COMCTL32                        loaded at 773D0000h - 774D2000h
SHLWAPI                          loaded at 77F60000h - 77FD6000h
utf8api                          loaded at 10000000h - 1000D000h
comdlg32                        loaded at 763B0000h - 763F9000h
SHELL32                          loaded at 7C9C0000h - 7D1D4000h
foo_ac3                          loaded at 008D0000h - 008E3000h
foo_amipwrapper                  loaded at 008F0000h - 00912000h
foo_ape                          loaded at 00930000h - 0094F000h
foo_audioscrobbler              loaded at 00950000h - 00970000h
LIBCURL                          loaded at 00970000h - 00989000h
WS2_32                          loaded at 71AB0000h - 71AC7000h
WS2HELP                          loaded at 71AA0000h - 71AA8000h
WINMM                            loaded at 76B40000h - 76B6D000h
foo_cdda                        loaded at 00A60000h - 00A6E000h
foo_clienc                      loaded at 00A70000h - 00A7B000h
foo_console                      loaded at 00A80000h - 00A87000h
foo_diskwriter                  loaded at 00A90000h - 00AA2000h
foo_dsp_extra                    loaded at 00AB0000h - 00AC5000h
foo_flac                        loaded at 00AD0000h - 00AEC000h
foo_id3v2                        loaded at 00AF0000h - 00B20000h
MSVCP60                          loaded at 76080000h - 760E5000h
foo_info_samurize                loaded at 00B20000h - 00B3A000h
foo_input_std                    loaded at 00C60000h - 00D02000h
MSACM32                          loaded at 77BE0000h - 77BF5000h
uxtheme                          loaded at 5AD70000h - 5ADA8000h
foo_lock                        loaded at 00D10000h - 00D16000h
foo_masstag                      loaded at 00D70000h - 00D84000h
foo_output_std                  loaded at 00D90000h - 00D99000h
foo_out_dsound_ex                loaded at 00DA0000h - 00DA9000h
DSOUND                          loaded at 73F10000h - 73F6C000h
VERSION                          loaded at 77C00000h - 77C08000h
foo_playcount                    loaded at 00DC0000h - 00DCA000h
foo_playlistfind                loaded at 00DD0000h - 00DDB000h
foo_pod                          loaded at 00DE0000h - 00E33000h
OLEAUT32                        loaded at 77120000h - 771AC000h
SETUPAPI                        loaded at 77920000h - 77A13000h
foo_podclienc                    loaded at 00E40000h - 00E4E000h
foo_podtranscoder                loaded at 00E50000h - 00E5A000h
foo_pphsresample                loaded at 00E60000h - 00E70000h
foo_read_http                    loaded at 00E70000h - 00E79000h
foo_stfu                        loaded at 00E80000h - 00E87000h
foo_uie_albumart                loaded at 00E90000h - 00E9C000h
gdiplus                          loaded at 4EC50000h - 4EDF3000h
MSVCR71                          loaded at 7C340000h - 7C396000h
foo_uie_tabs                    loaded at 00EC0000h - 00ECA000h
foo_uie_trackinfo                loaded at 00ED0000h - 00EDB000h
foo_ui_columns                  loaded at 00EE0000h - 00F17000h
foo_ui_std                      loaded at 00F20000h - 00F37000h
foo_vis_manager                  loaded at 00F40000h - 00F48000h
foo_vis_samurize2                loaded at 00F50000h - 00F77000h
CLBCATQ                          loaded at 76FD0000h - 7704F000h
COMRes                          loaded at 77050000h - 77115000h
xpsp2res                        loaded at 20000000h - 202C5000h
amip                            loaded at 09E30000h - 09F26000h
mswsock                          loaded at 71A50000h - 71A8F000h
DNSAPI                          loaded at 76F20000h - 76F47000h
winrnr                          loaded at 76FB0000h - 76FB8000h
WLDAP32                          loaded at 76F60000h - 76F8C000h
wshbth                          loaded at 751D0000h - 751EE000h
rasadhlp                        loaded at 76FC0000h - 76FC6000h
hnetcfg                          loaded at 662B0000h - 66308000h
wshtcpip                        loaded at 71A90000h - 71A98000h
wtsapi32                        loaded at 76F50000h - 76F58000h
WINSTA                          loaded at 76360000h - 76370000h
NETAPI32                        loaded at 5B860000h - 5B8B4000h
dciman32                        loaded at 73BC0000h - 73BC6000h
imagehlp                        loaded at 76C90000h - 76CB8000h
DBGHELP                          loaded at 59A60000h - 59B01000h

Stack dump analysis:
Address: 004458F8h, location: "foobar2000", loaded at 00400000h - 00452000h
Address: 77C47CE5h, location: "msvcrt", loaded at 77C10000h - 77C68000h
Symbol: "strtok" (+00000000h)
Address: 00DD3D48h, location: "foo_playlistfind", loaded at 00DD0000h - 00DDB000h
Address: 00DD52EDh, location: "foo_playlistfind", loaded at 00DD0000h - 00DDB000h
Address: 00DD2242h, location: "foo_playlistfind", loaded at 00DD0000h - 00DDB000h
Address: 77D4B250h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "DefWindowProcW" (+0000006Bh)
Address: 00DD7260h, location: "foo_playlistfind", loaded at 00DD0000h - 00DDB000h
Address: 00DD6748h, location: "foo_playlistfind", loaded at 00DD0000h - 00DDB000h
Address: 00DD1E4Ch, location: "foo_playlistfind", loaded at 00DD0000h - 00DDB000h
Address: 77D4C9E0h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "ReleaseCapture" (+0000003Ch)
Address: 00DD30BAh, location: "foo_playlistfind", loaded at 00DD0000h - 00DDB000h
Address: 00DD2F70h, location: "foo_playlistfind", loaded at 00DD0000h - 00DDB000h
Address: 77D54CFAh, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 77D484BCh, location: "USER32", loaded at 77D40000h - 77DD0000h
Address: 77D48564h, location: "USER32", loaded at 77D40000h - 77DD0000h
Address: 77D48709h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetDC" (+00000072h)
Address: 00DD2F70h, location: "foo_playlistfind", loaded at 00DD0000h - 00DDB000h
Address: 00DD2F70h, location: "foo_playlistfind", loaded at 00DD0000h - 00DDB000h
Address: 77D54CA6h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "CreateIconFromResourceEx" (+000002C2h)
Address: 00DD2F70h, location: "foo_playlistfind", loaded at 00DD0000h - 00DDB000h
Address: 77D70494h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetClipboardFormatNameA" (+0000014Fh)
Address: 77D54CC8h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "CreateIconFromResourceEx" (+000002E4h)
Address: 77D54AF2h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "CreateIconFromResourceEx" (+0000010Eh)
Address: 00DD2F70h, location: "foo_playlistfind", loaded at 00DD0000h - 00DDB000h
Address: 77D54CFAh, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 77D484BCh, location: "USER32", loaded at 77D40000h - 77DD0000h
Address: 77D48564h, location: "USER32", loaded at 77D40000h - 77DD0000h
Address: 77D54D1Ch, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "DefDlgProcW" (+00000022h)
Address: 77D48709h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetDC" (+00000072h)
Address: 77D54CFAh, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 77D54CFAh, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 77D487EBh, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetDC" (+00000154h)
Address: 77D54CFAh, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 77D70494h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetClipboardFormatNameA" (+0000014Fh)
Address: 77D48808h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetDC" (+00000171h)
Address: 77D4B743h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetParent" (+0000016Ch)
Address: 77D54CFAh, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 00400000h, location: "foobar2000", loaded at 00400000h - 00452000h
Address: 77D4B7ABh, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "SendMessageW" (+00000049h)
Address: 773F25F5h, location: "COMCTL32", loaded at 773D0000h - 774D2000h
Symbol: "Ordinal384" (+000067CBh)
Address: 7742F93Dh, location: "COMCTL32", loaded at 773D0000h - 774D2000h
Symbol: "FlatSB_SetScrollProp" (+0001C5CCh)
Address: 77430853h, location: "COMCTL32", loaded at 773D0000h - 774D2000h
Symbol: "FlatSB_SetScrollProp" (+0001D4E2h)
Address: 77D4887Eh, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetWindowLongW" (+00000000h)
Address: 7743093Ah, location: "COMCTL32", loaded at 773D0000h - 774D2000h
Symbol: "FlatSB_SetScrollProp" (+0001D5C9h)
Address: 77D484BCh, location: "USER32", loaded at 77D40000h - 77DD0000h
Address: 77D48564h, location: "USER32", loaded at 77D40000h - 77DD0000h
Address: 77D4887Eh, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetWindowLongW" (+00000000h)
Address: 773F3B41h, location: "COMCTL32", loaded at 773D0000h - 774D2000h
Symbol: "Ordinal384" (+00007D17h)
Address: 77D488A9h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetWindowLongW" (+0000002Bh)
Address: 77D488B2h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetWindowLongW" (+00000034h)
Address: 77D4887Eh, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetWindowLongW" (+00000000h)
Address: 773F3B41h, location: "COMCTL32", loaded at 773D0000h - 774D2000h
Symbol: "Ordinal384" (+00007D17h)
Address: 773F4712h, location: "COMCTL32", loaded at 773D0000h - 774D2000h
Symbol: "Ordinal384" (+000088E8h)
Address: 773F3B41h, location: "COMCTL32", loaded at 773D0000h - 774D2000h
Symbol: "Ordinal384" (+00007D17h)
Address: 773F3B41h, location: "COMCTL32", loaded at 773D0000h - 774D2000h
Symbol: "Ordinal384" (+00007D17h)
Address: 09E31920h, location: "amip", loaded at 09E30000h - 09F26000h
Address: 77D48709h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetDC" (+00000072h)
Address: 773F3B41h, location: "COMCTL32", loaded at 773D0000h - 774D2000h
Symbol: "Ordinal384" (+00007D17h)
Address: 773F3B41h, location: "COMCTL32", loaded at 773D0000h - 774D2000h
Symbol: "Ordinal384" (+00007D17h)
Address: 77D487EBh, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetDC" (+00000154h)
Address: 773F3B41h, location: "COMCTL32", loaded at 773D0000h - 774D2000h
Symbol: "Ordinal384" (+00007D17h)
Address: 773F3B41h, location: "COMCTL32", loaded at 773D0000h - 774D2000h
Symbol: "Ordinal384" (+00007D17h)

Version info:
foobar2000 v0.8.3
UNICODE

If I have the component loaded but not in a tab it appears stable, at least so far.

arty
Title: foo_uie_trackinfo
Post by: synth7 on 2005-03-05 06:03:14
What would be the best way to have the normal part of the song title one color, and the part in parentheses (if present) a different color? The Azrael and oLiGhT columnsUI strings do it, but I dunno how and don't really want to dig through the code...

Code: [Select]
The Blah Blah Song (The DJ Blah Blah Mix)
--- color one ---  | ------- color two ------
Title: foo_uie_trackinfo
Post by: Silverbolt on 2005-03-05 07:03:42
Quote
What would be the best way to have the normal part of the song title one color, and the part in parentheses (if present) a different color?[a href="index.php?act=findpost&pid=279382"][{POST_SNAPBACK}][/a]

There's a few ways, but here's how I do it:

Code: [Select]
$replace(%title%,'(',808080'(',')',')','[',808080'[',']',']')

Change the '808080' with the desired color for your text in parenthesis (above also works on brackets).
Title: foo_uie_trackinfo
Post by: synth7 on 2005-03-05 07:10:22
Thanks a lot, Silverbolt
Title: foo_uie_trackinfo
Post by: war59312 on 2005-03-06 07:45:13
Quote
My  fstring
screenshot
http://img103.exs.cx/my.php?loc=img103&ima...ooooooooooo.png (http://img103.exs.cx/my.php?loc=img103&image=foooooooooooooo.png)

Code: [Select]
DCAE8DMode: %_trackinfo_mode%$char(10)$if(%_trackinfo_notrack%,No track,
$char(1)C0CEBA4Song Info$char(10)
D7B997Title: ffffff%title%$char(10)
D7B997Artist: F3EAE0%artist%$char(10)
D7B997Album: F3EAE0%album%$char(10)
D7B997Date: F3EAE0%date%)$char(10)
D7B997Genre: F3EAE0%genre%$char(10)
$char(1)C0CEBA4Tech Info$char(10)
D7B997Codec: F3EAE0%__codec% $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)
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)

[a href="index.php?act=findpost&pid=253650"][{POST_SNAPBACK}][/a]

Trying to get the progress bar working but it looks really strange for some reason. I used your code.

I think its because I deleted some fonts. Anyone know which one it uses?

See:

[a href="http://img123.exs.cx/my.php?loc=img123&image=foobarerror7dr.png" target="_blank"]
Title: foo_uie_trackinfo
Post by: arty on 2005-03-06 20:50:56
Any news on that problem I posted about? I've attempted to fix it by chucking out all of my 'extra' components e.g. audioscrobbler, playcounter, pause on lock etc. but foo_uie_trackinfo still crashing a lot for me

arty
Title: foo_uie_trackinfo
Post by: Phi on 2005-03-07 02:13:52
Not sure, I still can't reproduce it. I don't have any time to investigate it at the moment.
Title: foo_uie_trackinfo
Post by: arty on 2005-03-07 16:13:28
Quote
Not sure, I still can't reproduce it. I don't have any time to investigate it at the moment.
[a href="index.php?act=findpost&pid=279933"][{POST_SNAPBACK}][/a]


OK - sorry if it sounded like I was moaning, I'll be a bit more patient and try not to hassle devs any more

arty
Title: foo_uie_trackinfo
Post by: jayzer on 2005-03-10 03:50:04
I'm not sure if this is the right place to ask, but I've been searching around everywhere and can't seem to find an answer.

Is there a tag that I can use to display that an album was ripped in aps/ape/api rather than just xxx VBR? I'd like to be able to separate my -aps files from old files just ripped in plain ol' VBR.

Am I just going to need to run oidua to see what the albums are ripped in and then manually add a tag to those albums that denotes that they were ripped in -aps? Or is there an easier way?

There doesn't seem to be any -aps info in the Tech Info panel.
Title: foo_uie_trackinfo
Post by: jkwarras on 2005-03-10 10:24:21
Quote
Is there a tag that I can use to display that an album was ripped in aps/ape/api rather than just xxx VBR? I'd like to be able to separate my -aps files from old files just ripped in plain ol' VBR.
[{POST_SNAPBACK}][/a] (http://index.php?act=findpost&pid=280852")

You need this component:
[a href="http://www.hydrogenaudio.org/forums/index.php?showtopic=30059]http://www.hydrogenaudio.org/forums/index....showtopic=30059[/url]
and you could get the info you want
Title: foo_uie_trackinfo
Post by: jayzer on 2005-03-10 15:07:18
Quote
You need this component:
http://www.hydrogenaudio.org/forums/index....showtopic=30059 (http://www.hydrogenaudio.org/forums/index.php?showtopic=30059)
and you could get the info you want
[a href="index.php?act=findpost&pid=280933"][{POST_SNAPBACK}][/a]


Thanks! 
Title: foo_uie_trackinfo
Post by: arty on 2005-03-14 13:15:55
Phi, FYI I think I've managed to stop foo_uie_trackinfo crashing for me. I:

1. Updated foo_pod to the latest version
2. Removed AMIP 2.50 from my installation
3. Removed PPHS resample (probably nothing to do with this!) and 'foo_vis_samurize2.dll' which Samurize installed automatically

I'll try to pin down the crashing behaviour to one of either AMIP or the Samurize plugin in case it is of interest.

arty
Title: foo_uie_trackinfo
Post by: Phi on 2005-03-15 07:53:28
Hrmm.. ok. I don't think the crashes are caused by trackinfo. The freezes are probably my fault, though.
Title: foo_uie_trackinfo
Post by: jkwarras on 2005-03-15 09:41:57
Quote
Hrmm.. ok. I don't think the crashes are caused by trackinfo. The freezes are probably my fault, though.
[a href="index.php?act=findpost&pid=282342"][{POST_SNAPBACK}][/a]

Phi, do you have any plans of releasing a new version and what could be the changelog?

No preassure of course, current version is more than enough, just curious to know if there's something to wait for
Title: foo_uie_trackinfo
Post by: Phi on 2005-03-16 05:36:10
Not for a while now that uni has started again.

Current development source has stuff like:
Still needs a lot of work to be release-able though.
Title: foo_uie_trackinfo
Post by: jkwarras on 2005-03-16 09:07:47
Thnaks for the info Phi
Title: foo_uie_trackinfo
Post by: Mr_Rabid_Teddybear on 2005-03-18 16:35:06
Here's the formatting string I'm using. Thanks to all those I borrowed snippets of code from. I use the following settings with this:
Font: Lucida Sans Unicode 8pt regular. Default text: white. Background: black. Update every second checked.

Code: [Select]

D7B997Mode: ffffff%_trackinfo_mode%$char(10)D7B997---------------------------------------$char(10)$char(10)
$if(%_trackinfo_notrack%,D7B997No track,

$if($or(%_isplaying%,%_ispaused%),$if(%_ispaused%, 0CEBA4'▮▮'  D7B997Pausedffffff[' ('%_time_elapsed%['/'%_time_total%]')'],
$if($stricmp($left(%_path_raw%,7),'http://'), 0CEBA4'▶'  D7B997Streamingffffff[' ('%_time_elapsed%['/'%_time_total%]')'],
 0CEBA4'▶'  D7B997Playingffffff[' ('%_time_elapsed%['/'%_time_total%]')'])), 0CEBA4'■'  D7B997Not playing)
D7B997:$char(10)$char(10)

$char(1)C0CEBA4Song info$char(10)
[D7B997Artist: ffffff%artist%$char(10)]
$if(%title%,D7B997Title: ffffff%title%$char(10),$if($stricmp($left(%_path_raw%,7),'http://'),
D7B997Stream[: ffffff%_filename%]$char(10),D7B997Sorry. Can''t show. No tag. Path is:$char(10)ffffff%_path_raw%$char(10)))
[D7B997Album: ffffff%album%$char(10)]
[D7B997Albumartist: ffffff%albumartist%$char(10)]
[D7B997Album artist: ffffff%album artist%$char(10)]
[D7B997Date: ffffff%date%$char(10)]
[D7B997Genre: ffffff%genre%$char(10)]
[D7B997Tracknumber: ffffff%tracknumber%$char(10)]
[D7B997Disk: ffffff%disc%$char(10)]
[D7B997Comment: $iflonger($replace($meta(comment),$char(13),),297,
$cut(ffffff$replace($meta(comment),$char(13),),292)D7B997'(...)',ffffff$replace($meta(comment),$char(13),))$char(10)]
$char(10)

$char(1)C0CEBA4Tech info$char(10)
$if($stricmp($left(%_path_raw%,7),'http://'),,$if($or(%__replaygain_track_gain%,%__replaygain_album_gain%),
[D7B997Track Gain: ffffff%__replaygain_track_gain%$char(10)][D7B997Album Gain: ffffff%__replaygain_album_gain%$char(10)],
0000DFShhh... No ReplayGain!$char(10)))

[D7B997Codec: ffffff$codec()]

[ffffff$if(%__bitrate_dynamic%,' ('$num(%__bitrate_dynamic%,3) kbps')',' ('%__bitrate% kbps')')]
[ffffff$if($stricmp($codec(),MP3),$if(%__extrainfo%,[ %__extrainfo%], CBR),)[ %__mp3_stereo_mode%]
[ D7B997Profile: ffffff%__mpc_profile%][ '('%__mpc_encoder%')'][ sv%__mpc_streamversion%]
[ D7B997Nominal: ffffff%__bitrate_nominal% kbps][ '('%__vorbis_vendor%')'][ D7B997Profile: ffffff%__aac_profile%]
[ ffffff%__file_format%][ %__format%][ D7B997Version: ffffff%__version%][ D7B997Compression: ffffff%__compression%]
[ D7B997Mode: ffffff%__mode%][ D7B997Seektable: ffffff%__seektable%][ %__FLAC_vendor%][ %__encoder_version%]
[ %__speex_mode%][ %__aac_header_type%][ D7B997Tool: ffffff%__tool%]]

$puts(ratio,$muldiv(%__bitrate%,1000,$div($mul(%__samplerate%,%__bitspersample%,%__channels%),1000)))
$if($and(%__bitrate%,%__bitspersample%),$if($or($strstr(%__compression%,Lossy),$stricmp($codec(),DualStream)),,
$ifgreater(1,$get(ratio),,$ifgreater(10,$get(ratio),
[ D7B997Ratio: ffffff0.$right($get(ratio),1)'%'],$ifgreater(100,$get(ratio),
[ D7B997Ratio: ffffff$left($get(ratio),1).$right($get(ratio),1)'%'],$ifgreater(1000,$get(ratio),
[ D7B997Ratio: ffffff$left($get(ratio),2).$right($get(ratio),1)'%'],))))),)

$char(10)
[D7B997Tech:ffffff[ $div(%__samplerate%,1000) kHz][ %__bitspersample% bit][ $channels()]$char(10)]
[D7B997Time: ffffff%_length%$char(10)]

$if($stricmp($left(%_path_raw%,7),'http://'),[D7B997URL: ffffff%_path_raw%],
$if($stricmp($left(%_path_raw%,7),'cdda://'),[D7B997Track: ffffff%_filename_ext%],[D7B997File: ffffff%_filename_ext%]
D7B997$if($stricmp($ext(%_path%),CUE), Cuesheet,
$if($stricmp($div(%_filesize%,1048576).$num($muldiv($mod(%_filesize%,1048576),100,1048576),2),0.00),,
[ $puts(ModSize,$muldiv($mod(%_filesize%,1048576),100,1048576))
$div(%_filesize%,1048576).$ifgreater($get(ModSize),99,99,$num($get(ModSize),2)) MB]))))

)


[EDIT]
Adding screenshot:

(http://img228.imageshack.us/img228/5185/138635465jc.th.png) (http://img228.imageshack.us/my.php?image=138635465jc.png)

Screenshot direct link (http://img228.imageshack.us/img228/5185/138635465jc.png)

Updated code.

[/EDIT]
Title: foo_uie_trackinfo
Post by: dewey1973 on 2005-03-18 20:41:56
Quote
Here's the formatting string I'm using. Thanks to all those I borrowed snippets of code from. I use the following settings with this:
Font: Lucida Sans Unicode 8pt regular. Default text: white. Background: black. Update every second checked.


[a href="index.php?act=findpost&pid=283308"][{POST_SNAPBACK}][/a]

Screenshot?
Title: foo_uie_trackinfo
Post by: Mr_Rabid_Teddybear on 2005-03-18 21:27:01
Quote
Quote
Here's the formatting string I'm using. Thanks to all those I borrowed snippets of code from. I use the following settings with this:
Font: Lucida Sans Unicode 8pt regular. Default text: white. Background: black. Update every second checked.


[a href="index.php?act=findpost&pid=283308"][{POST_SNAPBACK}][/a]

Screenshot?
[a href="index.php?act=findpost&pid=283400"][{POST_SNAPBACK}][/a]

Eh. I've tried to take many different considerations into account. It doesn't look all that exciting... (Actually the layout are pretty much stolen from another formatting in this thread.) But I'll try to accommodate if I can find some free image hosting. Any suggestion?
Title: foo_uie_trackinfo
Post by: MrEnergizer on 2005-03-19 01:47:17
Quote
Quote
Quote
Here's the formatting string I'm using. Thanks to all those I borrowed snippets of code from. I use the following settings with this:
Font: Lucida Sans Unicode 8pt regular. Default text: white. Background: black. Update every second checked.


[{POST_SNAPBACK}][/a] (http://index.php?act=findpost&pid=283308")

Screenshot?
[a href="index.php?act=findpost&pid=283400"][{POST_SNAPBACK}][/a]

Eh. I've tried to take many different considerations into account. It doesn't look all that exciting... (Actually the layout are pretty much stolen from another formatting in this thread.) But I'll try to accommodate if I can find some free image hosting. Any suggestion?
[a href="index.php?act=findpost&pid=283411"][{POST_SNAPBACK}][/a]

try this  [a href="http://imageshack.us/]http://imageshack.us/[/url]
Title: foo_uie_trackinfo
Post by: Mr_Rabid_Teddybear on 2005-03-19 09:01:32
Quote
try this  http://imageshack.us/ (http://imageshack.us/)
[{POST_SNAPBACK}][/a] (http://index.php?act=findpost&pid=283450")

Thanks! Added screenshot to my [a href="http://www.hydrogenaudio.org/forums/index.php?showtopic=29363&view=findpost&p=283308]original post[/url].
Title: foo_uie_trackinfo
Post by: dansherman on 2005-03-22 16:08:25
Here's my first shot at a string for release:

(http://i132.exs.cx/img132/2999/foobar22mar0yv.th.png) (http://img132.exs.cx/my.php?loc=img132&image=foobar22mar0yv.png)


Code: [Select]
//"Global" config

// verify tag-format (we check the pos. of the first dash and ":")
$if($and($strcmp($strstr(%last_played%,-),5),$strcmp($strstr(%last_played%,:),14)),$puts(last_played_is_valid,1))

// disassemble the timestamp for later reformatting or calcuations
$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))

//define "popularity"  --  still in development,  similar to "hotness" by topdownjimmy
$puts(popularity,$sub(100,$add($div(50,%play_counter%),$mul(25,$sub(3,%rating%)))))



//color/char
$puts(headline,000000)
$puts(line,6c9b8f)
$puts(info,000000)
$puts(text,000080)
$puts(grayed,ffffff)
$puts(popularity_color,$blend($rgb(0,0,0),$rgb(255,128,0),$get(popularity),100))

$puts(rating_char_plus,█)
$puts(rating_char_minus,▒)

//////////////////////////
//Start actual config
$get(info)Now Playing: {$get(text)$if(%_trackinfo_nowplaying%,*,-)$get(info)}$char(10)
$get(info)Follow Cursor: {$get(text)$if(%_trackinfo_followcursor%,*,-)$get(info)}$char(10)

$char(1)C$get(line)═══════════════About════════════════$char(10)

$get(info)Artist: $get(text)%artist%$char(10)
$get(info)Title: $get(text)%title%  $char(10)
$get(info)Album: $get(text)$if3(%album%,still unknown)$char(10)
$get(info)Release date: $get(text)$if3(%date%,not available yet)$char(10)
$get(info)Time: $get(text)$if(%_isplaying%,%_time_elapsed%/%_length%,%_length%)$char(10)
$char(1)C$get(line)═══════════════TechInfo════════════════$char(10)


$get(info)Codec: $get(text)%__codec% '['$if(%__extrainfo%,VBR,CBR)']'  $char(10)
$get(info)Bitrate: $get(text)$if(%__extrainfo%,$if(%_isplaying%,%__bitrate_dynamic%,%__bitrate%),%__bitrate%) kbps $char(10)
$get(info)Filesize: $get(text)$div(%_filesize%,1048576).$left($num($muldiv($mod(%_filesize%,1048576),1000,1048576),3),2)' MB'$char(10)

$char(1)C$get(line)═══════════════Statistics════════════════$char(10)

$get(info)Played $get(text)%play_counter%$get(info) times. $char(10)

$if($get(last_played_is_valid),
$get(info)Last played: $get(text)$get(last_played_month)/$get(last_played_day) $get(info)at $get(text)$get(last_played_hour):$get(last_played_min),
$get(info)No usage information yet
) $char(10)

$puts(_rating,$repeat($get(rating_char_plus),%rating%))
$puts(_empty_rating,$repeat($get(rating_char_minus),$sub(5,%rating%)))
$if(%rating%,$get(info)Rating: '◄'$get(popularity_color)$get(_rating)$get(grayed)$get(_empty_rating)$get(info)'►' $get(text)%rating%/5$char(10))
$get(line)══════════════════════════════════════════════$char(10)

//Credit for inspiration/code
//
//hotness from topdownjimmy
//general layout from stroke
//VBR/CBR code from Olive/A Man Eating Duck (modified)
//filesize from upNorth
//various bits and pieces from Lycox
//
//End of Track Info Formatting
//////////////////

I tried to credit everybody, hopefully I didn't miss anyone.

It's not as big as some strings, but it does have useful info.  The rating bar changes color depending on
Code: [Select]
popularity=75-(50/playcount)-25(3-rating)


Let me know what you think!

Enjoy!
--
dan

added popularity
Title: foo_uie_trackinfo
Post by: necropimp on 2005-03-28 22:04:21
mine is all about simplicity... since i just started messing around with this crap today...

(http://necropimp.home.insightbb.com/trackinfo.png)

Code: [Select]
$if(%_trackinfo_notrack%,$char(1)CNo track playing,
$if(%date%,Date: %date%$char(10),)
Length: $if(%_isplaying%,%_time_elapsed%/%_length%,%_length%)$char(10)
Codec: %__codec%$char(10)
Bitrate: %__bitrate%Kbps ffffff$muldiv(%__bitrate%,100,1411)'%'$char(10)
Channels: $ifgreater(%__channels%,1,Stereo,Mono)$char(10)
$if(%__bitspersample%,Bitdepth: %__bitspersample%$char(10),)
Samplerate: %__samplerate% Hz$char(10)
Filesize: $div(%_filesize%,1048576).$left($num($muldiv($mod(%_filesize%,1048576),100,1048576),2),2)'MB'$char(10)
$char(10)$char(1)CTrack Progress$char(10)
$progress(%_time_elapsed_seconds%, %_time_total_seconds%, 53,'XXXXXX|','|')
)
Title: foo_uie_trackinfo
Post by: Smitty Jones on 2005-03-29 04:09:07
  the path is only shown on the bottom if there are no lyrics and no comment...

thanks to the folks who i stole this stuff from (the scrolling thing in particular)
Title: foo_uie_trackinfo
Post by: synth7 on 2005-03-29 06:01:43
(http://img161.exs.cx/img161/2631/trackinfo2em.jpg)

Thanks to everyone I've stolen bits and peices from. He's my source. It gets a bit sloppy near the end.

Code: [Select]
////////////////////////////////
//Colors, etc.
////////////////////////////////

$puts(info_box_size,34)
$puts(default_color,dbdbdb)
$puts(leading_color,918377)
$puts(heading_color_l,949494)
$puts(heading_color_r,524b3c)
$puts(is_playing_color,97cddd)
$puts(len,43)
$puts(music,♪)

////////////////////////////////
///////Song Info
////////////////////////////////
$transition(› ---- Song Info $repeat(-,$add($get(info_box_size),4)),$get(heading_color_l),$get(heading_color_r))

$char(10)$char(10)

$get(leading_color)TITLE: $get(is_playing_color)$replace(%title%,'(',6c8e93'(',')',')'$get(is_playing_color),'[',6c8e93'[',']',']'$get(is_playing_color))$char(10)
$get(leading_color)ARTIST: $get(default_color)%artist%$char(10)
$get(leading_color)ALBUM: $get(default_color)$iflonger(%album%,33,$cut(%album%,29)...,%album%) $if(%disc%,949494CD%disc%,)$char(10)
$get(leading_color)DATE: $get(default_color)%date%  $get(leading_color)GENRE: $get(default_color)%genre%$char(10)


$char(10)

////////////////////////////////
///////Tech Info
////////////////////////////////

$transition(› ---- Tech Info $repeat(-,$add($get(info_box_size),4)),$get(heading_color_l),$get(heading_color_r))

$char(10)$char(10)

$get(leading_color)CODEC: $get(default_color)%__codec%  $get(leading_color)BITRATE: $get(default_color)$if(%__lame_profile%,97cddd--%__lame_profile%,%__bitrate% 949494kbps)$char(10)
$get(leading_color)FILESIZE: $get(default_color)$div(%_filesize%,1048576).$left($num($muldiv($mod(%_filesize%,1048576),100,1048576),2),2)' 949494MB'$char(10)
// $get(leading_color)FILENAME: $get(default_color)$ifgreater($len(%_filename_ext%),$sub($get(len),14),…$right(%_filename_ext%,$sub($get(len),14)),%_filename_ext%)$char(10)
// $get(leading_color)CHANNELS: $get(default_color)$caps($if($stricmp($codec(),MP3),%__mp3_stereo_mode%,$channels())) $get(heading_color_l)$if(%__samplerate%,%__samplerate% Hz,)$char(10)
$get(leading_color)LENGTH: $get(default_color)[%_time_elapsed% / ][%_length%]   [949494'('%_time_remaining%')']$char(10)

$char(10)

$get(default_color)$progress(%_time_elapsed_seconds%, %_time_total_seconds%, 53,$get(leading_color)'|','|')
Title: foo_uie_trackinfo
Post by: Mr_Rabid_Teddybear on 2005-03-29 12:57:48
Quote
Quote
I guess I should credit musicmusic too, the first code I posted was his with $left(,2) added to it...

Edit:
I guess this one is a little more accurate (last digit):
Code: [Select]
$div(%_filesize%,1048576).$left($num($muldiv($mod(%_filesize%,1048576),1000,1048576),3),2)' MB'

[a href="index.php?act=findpost&pid=260385"][{POST_SNAPBACK}][/a]

$muldiv rounds to nearest integer. Yours would cut e.g. 4.678 to 4.67 (whilst mine would round it to 4.68). Though, its not like Windows explorer rounds properly anyway..
[a href="index.php?act=findpost&pid=260559"][{POST_SNAPBACK}][/a]

I've got a file that triggers a bug in the code
$div(%_filesize%,1048576).$num($muldiv($mod(%_filesize%,1048576),100,1048576),2) MB
It reports back 2.100 MB.

Windows properties reports back
Size: 2,99 NB (3 142 362 bytes)
Size on disk: 3,00 MB (3 145 728 bytes)
%_filesize% reports 3142362
UpNorth's version reports back 2.10 MB, which is even worse. 2.100 MB should probably be 3.00 MB. For any other file I've checked this code produces very accurate results, BTW.

I'm really not too good at maths. This is not something I can figure out how to fix. A very minor issue anyways, just reporting my findings....
Title: foo_uie_trackinfo
Post by: waileongyeo on 2005-03-29 13:28:22
Quote
I've got a file that triggers a bug in the code
$div(%_filesize%,1048576).$num($muldiv($mod(%_filesize%,1048576),100,1048576),2) MB
It reports back 2.100 MB.

Windows properties reports back
Size: 2,99 NB (3 142 362 bytes)
Size on disk: 3,00 MB (3 145 728 bytes)
%_filesize% reports 3142362
UpNorth's version reports back 2.10 MB, which is even worse. 2.100 MB should probably be 3.00 MB. For any other file I've checked this code produces very accurate results, BTW.

I'm really not too good at maths. This is not something I can figure out how to fix. A very minor issue anyways, just reporting my findings....
[a href="index.php?act=findpost&pid=286623"][{POST_SNAPBACK}][/a]

haa.. Guess what? Try out the code below:
$div($mul($mod(3142362,1048576),100),1048576)    => 99
$muldiv($mod(3142362,1048576),100,1048576)        => 100

So, probably your this bug is solved by getting your file size as follow:
$div(%_filesize%,1048576).$num($div($mul($mod(%_filesize%,1048576),100),1048576),2) MB
OR
$div(%_filesize%,1048576).$div($mul($mod(%_filesize%,1048576),100),1048576) MB since this number should not greater than 100.
Title: foo_uie_trackinfo
Post by: Mr_Rabid_Teddybear on 2005-03-29 13:44:12
Quote
So, probably your this bug is solved by getting your file size as follow:
$div(%_filesize%,1048576).$num($div($mul($mod(%_filesize%,1048576),100),1048576),2) MB
OR
$div(%_filesize%,1048576).$div($mul($mod(%_filesize%,1048576),100),1048576) MB since this number should not greater than 100.
[a href="index.php?act=findpost&pid=286630"][{POST_SNAPBACK}][/a]

Yes, this seems to produce accurate results. However, the $num(X,2) are necessary  to display the result with 2 decimals, which is what we want... Do you think theres other scenarios which can trigger errors in rounding to 2 decimals?
Title: foo_uie_trackinfo
Post by: waileongyeo on 2005-03-30 06:43:18
Quote
Yes, this seems to produce accurate results. However, the $num(X,2) are necessary  to display the result with 2 decimals, which is what we want... Do you think theres other scenarios which can trigger errors in rounding to 2 decimals?
[a href="index.php?act=findpost&pid=286632"][{POST_SNAPBACK}][/a]


ic. True, it's necessary to get the result in 2 decimal points else a file size of 6.03MB will be display as 6.3MB.

The correct one should be as follow:
$div(%_filesize%,1048576).$num($div($mul($mod(%_filesize%,1048576),100),1048576),2) MB

Thanks. 
Title: foo_uie_trackinfo
Post by: necropimp on 2005-03-30 08:29:04
how do i get the percentage for track progress?
Title: foo_uie_trackinfo
Post by: Smitty Jones on 2005-03-30 21:18:17
$muldiv(%_time_remaining_seconds%,%_time_total_seconds%,100)

that should do the trick...  i think.  or this should too...

$mul($div(%_time_remaining_seconds%,%_time_total_seconds%),100)
Title: foo_uie_trackinfo
Post by: gfngfgf on 2005-03-30 22:02:12
That should be:

$muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%)

To show percentage elapsed rather than remaining, plus $muldiv multiplies by the second argument, then divides by the third.
Title: foo_uie_trackinfo
Post by: Smitty Jones on 2005-03-30 23:55:34
eh, i was close  i use the second one, but yeah, time_elapsed, i don't know why i wrote remaining...
Title: foo_uie_trackinfo
Post by: necropimp on 2005-03-31 02:56:13
thanks that worked out just fine
Title: foo_uie_trackinfo
Post by: gob on 2005-03-31 11:54:00
Updated my track info strings. thought the updates were worth a new post. well, here it is:

Code: [Select]
// Basik Track Info 1.01
// Written by korsairr
// April 18th 2005

// Basik Track Info works best with:
// Arial bold 8pt
// Vertical padding  3
// Horizontal padding  5
// Line spacing  -1
// Background color  Black

// Adjust the following to suit your tastes

$puts(info_box_width,34)
$puts(default_color,d4d4d4)
$puts(rating_color_1,5357EF)
$puts(rating_color_2,042573)
$puts(rating_symbol,♫)
$puts(is_playing_color,5357EF)
$puts(tag_missing_color,575757)
$puts(heading_color_l,ffb00d)
$puts(heading_color_r,000000)
$puts(is_playing_color,5357EF)



////////////////////////////////
/////// Song Info Code
////////////////////////////////


$transition(----- Song Info $repeat(-,$sub($get(info_box_width),5)),$get(heading_color_l),$get(heading_color_r))

$char(10)$get(default_color)

$if(%_filename_ext%,
$if(%title%,$if(%_isplaying%,
$get(is_playing_color)$iflonger(%title%,$get(info_box_width),$cut(%title%,$sub($get(info_box_width),2))...,%title%),
$iflonger(%title%,$get(info_box_width),$trim($cut(%title%,$sub($get(info_box_width),3)))...,%title%)),
$if(%_isplaying%,
$get(is_playing_color)$iflonger(%_filename_ext%,$get(info_box_width),$cut(%_filename_ext%,$sub($get(info_box_width),3))...,%_filename_ext%),
$iflonger(%_filename_ext%,$get(info_box_width),$trim($cut(%_filename_ext%,$sub($get(info_box_width),2)))...,%_filename_ext%))),
$get(tag_missing_color) no track selected)

$char(10)$get(default_color)

$if(%_filename_ext%,
$if(%artist%,
$iflonger(%artist%,$get(info_box_width),$cut(%artist%,$sub($get(info_box_width),2))...,%artist%),
$get(tag_missing_color)no artist info)
)

$char(10)$get(default_color)

$if(%_filename_ext%,
$if(%album%,
$iflonger(%album%,$get(info_box_width),$cut(%album%,$sub($get(info_box_width),2))...,%album%),
$get(tag_missing_color)no album info)
)

$char(10)$get(default_color)

$if(%_filename_ext%,
$if($or(%publisher%.%label%,%date%),$if($or(%publisher%,%label%),© ,)%date%$if($or(%publisher%,%label%),'. ',)[%publisher% ][%label%],
$get(tag_missing_color)no date or copyright info)
)

$char(10)$get(default_color)

$if(%_filename_ext%,
$if(%rating%,$get(rating_color_1)
$repeat($get(rating_symbol) ,%rating%)
$get(rating_color_2)$repeat($get(rating_symbol) ,$sub(5,%rating%)) ,$get(tag_missing_color)$repeat($get(rating_symbol) ,5) )
 $get(default_color)$if(%genre%,%genre%,$get(tag_missing_color)no genre)
)

$char(10)$char(10)



////////////////////////////////
/////// Statistics Code
////////////////////////////////


$transition(----- Statistics $repeat(-,$sub($get(info_box_width),5)),$get(heading_color_l),$get(heading_color_r))

$char(10)$get(default_color)

$if(%_filename_ext%,

$if(%last_played%,$puts(lastplayed,%last_played%),
$if(%play_date%,$puts(lastplayed,%play_date%),))

$if($get(lastplayed),
$puts(month,$left($get(lastplayed),2))
$puts(day,$substr($get(lastplayed),4,5))
$if($strcmp($left($get(day),1),0),$puts(day,$right($get(day),1)))
$puts(year,$right($get(lastplayed),2))
$puts(month_name,$select($get(month),
Jan,Feb,March,April,May,June,July,Aug,Sept,Oct,Nov,Dec))
$if($or($strcmp($get(day),11),$strcmp($get(day),12),$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))))))
$puts(time_of_year,$get(month_name) $get(day)$get(xx) 20$get(year))

$if(%play_counter%,Played $if($strcmp(%play_counter%,1),
once$if($get(lastplayed),',')$if($get(lastplayed), on $get(time_of_year)),
%play_counter% times$if($get(lastplayed),
$char(10)$get(default_color) Last played on $get(time_of_year))),This song has not played before)

$ifgreater(%play_counter%,1,,$char(10))

,$char(10))

$char(10)$char(10)



////////////////////////////////
/////// Tech Info Code
////////////////////////////////


$transition(----- Tech Info $repeat(-,$sub($get(info_box_width),5)),$get(heading_color_l),$get(heading_color_r))

$char(10)$get(default_color)

$if(%_filename_ext%,
%__codec%
$if(%__bitrate_dynamic%,%__bitrate_dynamic%,%__bitrate%)kbps
$if($or($stricmp(%__extrainfo%,vbr),$stricmp($codec(),musepack),$stricmp($codec(),vorbis)),VBR,CBR)
$caps($if($stricmp($codec(),MP3),%__mp3_stereo_mode%,$channels()))

$char(10)$get(default_color)

$if($or(%__replaygain_track_gain%,%__replaygain_album_gain%),
['['Tg']' %__replaygain_track_gain%][    '['Ag']' %__replaygain_album_gain%],
$get(tag_missing_color)there is no gain)

$char(10)$get(default_color)

[%_time_elapsed%/][%_length%][  -%_time_remaining%  ]
$if(%_isplaying%,
$muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%)'%',) 
$div(%_filesize%,1048576).
$left($num($muldiv($mod(%_filesize%,1048576),1000,1048576),3),2)' MB',
)

(http://home.cogeco.ca/~korsairr/basiksmall.jpg) (http://home.cogeco.ca/~korsairr/foo2k.png)
Click for full Foobar2000 (http://home.cogeco.ca/~korsairr/foo2k.png)
Title: foo_uie_trackinfo
Post by: Mr_Rabid_Teddybear on 2005-03-31 13:10:51
Quote
ic. True, it's necessary to get the result in 2 decimal points else a file size of 6.03MB will be display as 6.3MB.

The correct one should be as follow:
$div(%_filesize%,1048576).$num($div($mul($mod(%_filesize%,1048576),100),1048576),2) MB

Thanks. 
[a href="index.php?act=findpost&pid=286839"][{POST_SNAPBACK}][/a]

Yes. That was exactly what I was thinking about... Well, I tested a bit, and this code seems to produce very accurate results, no errors so far, so thanks a lot!
Title: foo_uie_trackinfo
Post by: upNorth on 2005-03-31 16:13:25
Quote
Quote
Yes, this seems to produce accurate results. However, the $num(X,2) are necessary  to display the result with 2 decimals, which is what we want... Do you think theres other scenarios which can trigger errors in rounding to 2 decimals?
[a href="index.php?act=findpost&pid=286632"][{POST_SNAPBACK}][/a]


ic. True, it's necessary to get the result in 2 decimal points else a file size of 6.03MB will be display as 6.3MB.

The correct one should be as follow:
$div(%_filesize%,1048576).$num($div($mul($mod(%_filesize%,1048576),100),1048576),2) MB

Thanks.  [a href="index.php?act=findpost&pid=286839"][{POST_SNAPBACK}][/a]

For some reason I always fiddle with this file size issue when I'm really tired. Not always a good idea...

Anyway, the $muldiv() version is still a little more accurate in general, but introduces the the 99 vs 100 problem Mr_Rabid_Teddybear noted above.
Code: [Select]
$div(%_filesize%,1048576).$num($muldiv($mod(%_filesize%,1048576),100,1048576),2) MB
ensures that a 4673211 bytes file is displayed as 4.46MB, not 4.45MB
as 4673211 bytes / (1024^2) = 4.456 MB

This affects a lot of files, but the 99 vs 100 problem is rarer. IIRC, the latter was the reason I started changing this code the last time, but I was fooled by the size reported in Windows, and did a lot of strange things.

I don't really know why I even bother with this, as I rarely look at the file size anyway.
Title: foo_uie_trackinfo
Post by: .zolder on 2005-03-31 17:29:06
Hi, I accidentally pasted a review in the comment tags of an album which was completely bloated and it caused foobar to get really slow / unresponsive (freeze). after some trial and error i found that the trackinfopanel plugin caused the problem, cause with the panel disabled, foobar kept running fine after pasting the text into the tags.
removing dynamic info from the strings (%_time_elapsed% in my case) didnt help, disabling "Update every second" didnt fix it either. Foobar kept freezing.
For some reason the plugin has a problem with how it reads metadata.

here is the review i pasted:

Code: [Select]
On Highways, Lanterna offered more of the instrumental rock sounds for which they'd become known: shimmering, reverberant, oft-overlapping guitar lines by Henry Frayne that set some of the more pleasing moods to be had in early-21st century ambient music. The band Scenic is an inevitable point of comparison, and in fact Scenic's Bruce Licher did Highways' package design. Lanterna, though, are mellower and less edgy than Scenic, though hardly bland. While Frayne's compositions (on which he's supported by Eric Gebow's drums and Mike Brosco's tape effects) are soothing, they avoid the facile slickness of new age music, with more of a rock rhythm on some songs than any new age recording would allow. And though they (like Scenic) are apt to bring to mind a drive through the Southwest desert without the visuals, the guitar sustain and reverb don't seem as gratuitously geared toward evoking the desert landscape as they do when used by numerous more pop-oriented artists. Don't, incidentally, hit the "eject" button when the music fades away to apparent silence at the end of the eighth track; after four minutes of eerie vague sonic murmurings that are often only subliminally audible, the volume cranks up again to go into a "real" song, "Highways." After four minutes, that too fades away, this time into nothingness, only for some guitar passages to suddenly reappear after a five-minute gap; the 17-minute "Highways" continues to waver between false endings and snippets of music and sound before the CD really stops spinning. — Richie Unterberger\Media Jukebox: Tool Name: Media Center\Media Jukebox: Tool Version: 10.0.122\Media Jukebox: Styles: Instrumental Rock; Alternative Pop/Rock; Experimental Rock; United States of America\Media Jukebox: Replay Gain: -10.70423\Media Jukebox: Artist Labels: Badman (3)\Media Jukebox: Artist Genres: Rock\Media Jukebox: Born / Formed: in Champaign, IL\Media Jukebox: Peak Level: 0.97986\Media Jukebox: Artist Styles: Instrumental Rock; Alternative Pop/Rock; Experimental Rock; United States of America\Media Jukebox: Artist Albums: 1995 Lanterna;2001 Elm Street;2002 Sands;2004 Highways\Media Jukebox: Songs: 1. Clear Blue (Frayne) - 5:06;2. Brightness (Frayne) - 6:17;3. Last Practice (Frayne) - 8:54;4. Canyons (Frayne) - 4:38;5. Seasons (Frayne) - 7:12;6. Brooklyn (Frayne) - 4:37;7. Adriatic (Frayne) - 6:40;8. Half-Light (Frayne) - 8:24;9. Highways  performed by Henry Frayne - 17:07\Media Jukebox: Review: On Highways, Lanterna offered more of the instrumental rock sounds for which they'd become known: shimmering, reverberant, oft-overlapping guitar lines by Henry Frayne that set some of the more pleasing moods to be had in early-21st century ambient music. The band Scenic is an inevitable point of comparison, and in fact Scenic's Bruce Licher did Highways' package design. Lanterna, though, are mellower and less edgy than Scenic, though hardly bland. While Frayne's compositions (on which he's supported by Eric Gebow's drums and Mike Brosco's tape effects) are soothing, they avoid the facile slickness of new age music, with more of a rock rhythm on some songs than any new age recording would allow. And though they (like Scenic) are apt to bring to mind a drive through the Southwest desert without the visuals, the guitar sustain and reverb don't seem as gratuitously geared toward evoking the desert landscape as they do when used by numerous more pop-oriented artists. Don't, incidentally, hit the "eject" button when the music fades away to apparent silence at the end of the eighth track; after four minutes of eerie vague sonic murmurings that are often only subliminally audible, the volume cranks up again to go into a "real" song, "Highways." After four minutes, that too fades away, this time into nothingness, only for some guitar passages to suddenly reappear after a five-minute gap; the 17-minute "Highways" continues to waver between false endings and snippets of music and sound before the CD really stops spinning.  --  Richie Unterberger\Media Jukebox: Credits: Henry Frayne - Guitar, Vocals, Voices, Producer, Engineer, Mastering, Mixing;Mike Brosco - Producer, Engineer, Mastering, Mixing, Tape Effects;Bruce Licher - Design;Eric Gebow - Drums;Dylan Magierek - A&R;Kevin Salemme - Photography\Media Jukebox: Tones: Earthy; Hypnotic; Somber; Autumnal; Ominous; Ethereal; Eerie; Rousing\MusicMatch_Bio: by Andy Kellman - Henry Frayne's Lanterna is the Midwest counterpart to Scenic's Southwest-inspired soundtracks for a lonely journey through open lands. Combining his background in post-punk and dark dream pop with atmospherics drawing from spaghetti western soundtracks and ambient isolationism, Lanterna's mostly instrumental output generates a variety of moods, ranging from becalmed to unsettling to fiery.Although it wasn't until 1998's self-titled release through Rykodisc that Lanterna received widespread distribution, guitarist Frayne began the project as an alternate outlet outside of his duties in the Moon Seven Times in the early '90s. (Frayne also spent the latter half of the '80s in the 4AD-inspired Area.)With help from bandmates Brendan Gamble on drums and Lynn Canfield on vocals, Frayne recorded a 23-track cassette and released it himself in 1992. Later that year, the limited-edition Of Shapes That Haunt Thought's Wilderness was released through Greece's Elfish label on vinyl only, selecting most of its tracks from the original cassette; Parasol issued 17 songs from the same recording in 1995 on CD, and Rykodisc reissued the Parasol release in 1998. A year prior to the Rykodisc reissue, Lanterna and the like-minded Scenic shared a live split EP released on Independent Project, the label run by Scenic's Bruce Licher. New material didn't surface from Lanterna until 2001's Elm Street, issued by Badman during September of 2001.
Title: foo_uie_trackinfo
Post by: Mr_Rabid_Teddybear on 2005-03-31 18:09:26
Quote
Hi, I accidentally pasted a review in the comment tags of an album which was completely bloated and it caused foobar to get really slow / unresponsive (freeze). after some trial and error i found that the trackinfopanel plugin caused the problem, cause with the panel disabled, foobar kept running fine after pasting the text into the tags.
removing dynamic info from the strings (%_time_elapsed% in my case) didnt help, disabling "Update every second" didnt fix it either. Foobar kept freezing.
For some reason the plugin has a problem with how it reads metadata.
[{POST_SNAPBACK}][/a] (http://index.php?act=findpost&pid=287264")

I don't think this plugin enjoys displaying to much text at the time, and there's no limit to what some will put in the comment field. This is the code I use in my [a href="http://www.hydrogenaudio.org/forums/index.php?showtopic=29363&view=findpost&p=283308]formatting string[/url] to truncate the comment field if it's longer than 297 characters (just an arbitrary number I chose):

Code: [Select]
[Comment: $iflonger($replace($meta(comment),$char(13),),297,
$cut($replace($meta(comment),$char(13),),292)'(...)',
$replace($meta(comment),$char(13),))$char(10)]
Title: foo_uie_trackinfo
Post by: .zolder on 2005-03-31 18:48:27
Hey, with your code everything is fine when i insert the bloated review..

i simply used:

Code: [Select]
[$meta(comment)]
Title: foo_uie_trackinfo
Post by: Mr_Rabid_Teddybear on 2005-03-31 20:36:09
I have a small issue with foo_uie_trackinfo:
If displayed text on a track makes it necessary to scroll down and I thereafter change track, display stays scrolled down, maybe hiding text. It would have been nice if the display simply scrolled back to top automatically on track change.
Title: foo_uie_trackinfo
Post by: jkwarras on 2005-04-01 09:13:24
Quote
Hi, I accidentally pasted a review in the comment tags of an album which was completely bloated and it caused foobar to get really slow / unresponsive (freeze). after some trial and error i found that the trackinfopanel plugin caused the problem, cause with the panel disabled, foobar kept running fine after pasting the text into the tags.
removing dynamic info from the strings (%_time_elapsed% in my case) didnt help, disabling "Update every second" didnt fix it either. Foobar kept freezing.
For some reason the plugin has a problem with how it reads metadata.

I've also noticed that (I stored AMG review in %comment% tag) as reported here (http://www.hydrogenaudio.org/forums/index.php?showtopic=29363&view=findpost&p=254634). I don't know if there's some plan to improve this behaviour in future releases 
Title: foo_uie_trackinfo
Post by: necropimp on 2005-04-02 09:23:17
few updates to mine...

lossless
(http://jim7.home.insightbb.com/trackinfo/flac.png)

musepack
(http://jim7.home.insightbb.com/trackinfo/musepack.png)

mp3s encoded using lame preset
(http://jim7.home.insightbb.com/trackinfo/lame.png)

everything else (non mp3 doesn't have CBR or VBR next to bitrate)
(http://jim7.home.insightbb.com/trackinfo/mp3.png)

Code: [Select]
$if(%_trackinfo_notrack%,$char(10)$char(10)$char(10)$char(10)$char(10)$char(1)CNo track playing,
$if(%date%,Date: a3a3a3%date%$char(10),)
$if(%genre%,Genre: a3a3a3%genre%$char(10),)
Length: a3a3a3$if(%_isplaying%,%_time_elapsed%/%_length%,%_length%)$char(10)
Codec: a3a3a3%__codec%$char(10)
Bitrate: a3a3a3
%__bitrate%Kbps $if($stricmp(%__codec%,mp3),$if($stricmp(%__extrainfo%,vbr),VBR,CBR))$char(10)
$if(%__lame_profile%,Preset: a3a3a3%__lame_version% %__lame_profile% $char(10),)
$if(%__mpc_profile%,Profile: a3a3a3%__mpc_profile%$char(10),)
Compression: a3a3a3$muldiv(%__bitrate%,100,1411)'%'$char(10)
Channels: a3a3a3$if($stricmp($codec(),MP3),%__mp3_stereo_mode%,$ifgreater(%__channels%,1,Stereo,Mono))$char(10)
$if(%__bitspersample%,Bitdepth:a3a3a3 %__bitspersample%$char(10),)
Samplerate: a3a3a3%__samplerate% Hz$char(10)
Filesize: a3a3a3$div(%_filesize%,1048576).$left($num($muldiv($mod(%_filesize%,1048576),100,1048576),2),2)'MB'$char(10)
$char(1)C-------------------------------$char(10)
$char(1)CTrack Progress a3a3a3$muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%)'%'$char(10)
$progress(%_time_elapsed_seconds%, %_time_total_seconds%, 53,a3a3a3'|','|')
)
Title: foo_uie_trackinfo
Post by: Lycox on 2005-04-02 11:55:27
Hey guys,

Just a little question.

I want to show the samplerate in a short form, like 44.1 kHz, so I tried to make a little code. But I'm not really happy with it.

Code: [Select]
$div(%__samplerate%,1000).$div($num($div($mul($mod(%__samplerate%,1000),2),2),2),100) kHz


Has anyone a better solution?
Title: foo_uie_trackinfo
Post by: AstreaEdge on 2005-04-02 16:24:47
@necropimp

I like your config but I needed a bit easier color configuration so I modified it a little. Colors are now easily configurable. It also allows for optional display of track title, album and artist. Progress bar also changes to "streaming..." when playing Internet streams. Hope you don't mind if I post it here. I give you credit at the top of the code. Feel free to use it in future development if you want. The config below should have the exact same color schemes as the images you posted above.

Code: [Select]
// original code by necropimp


// show artist? (1 = show, 0 = don't show)
$puts(arts,0)

// show album?
$puts(albs,0)

// show title?
$puts(tils,0)

// info heading color
$puts(head,$rgb(239,239,239))

// info color
$puts(info,$rgb(163,163,163))

// info annotation color (e.g. kbps is the annotation)
$puts(anno,$rgb(163,163,163))

// progress bar divider color
$puts(div,$rgb(239,239,239))

// progress bar divider width (0 yeilds no divider)
$puts(divw,30)

// progress bar divider character (blank yeilds no divider)
$puts(divc,-)

// progress bar played portion color
$puts(prog1,$rgb(239,239,239))

// progress bar unplayed portion color
$puts(prog2,$rgb(163,163,163))

// progress bar width
$puts(progw,53)

// progress bar character
$puts(progc,|)



$if(%_trackinfo_notrack%,$char(10)$char(10)$char(10)$char(10)$char(10)$char(1)CNo track playing,
$if($strcmp(1,$get(arts)),$if(%artist%,$get(head)Artist: $get(info)%artist%$char(10),),)
$if($strcmp(1,$get(albs)),$if(%album%,$get(head)Album: $get(info)%album%$char(10),),)
$if($strcmp(1,$get(tils)),$if(%title%,$get(head)Title: $get(info)%title%$char(10),),)
$if(%date%,$get(head)Date: $get(info)%date%$char(10),)
$if(%genre%,$get(head)Genre: $get(info)%genre%$char(10),)
$get(head)Length: $get(info)$if(%_isplaying%,%_time_elapsed%$get(anno)$if(%_length%,/%_length%,),%_length%)$char(10)
$if(%__codec%,$get(head)Codec: $get(info)%__codec%$char(10),)
$get(head)Bitrate: $get(info)
$if2(%__bitrate_dynamic%,%__bitrate%) $get(anno)Kbps $if($stricmp(%__codec%,mp3),$if($stricmp(%__extrainfo%,vbr),VBR,CBR))$char(10)
$if(%__lame_profile%,$get(head)Preset: $get(info)%__lame_version% %__lame_profile% $char(10),)
$if(%__mpc_profile%,$get(head)MPC Profile: $get(info)%__mpc_profile%$char(10),)
$get(head)Compression: $get(info)$muldiv(%__bitrate%,100,1411)$get(anno)'%'$char(10)
$get(head)Channels: $get(info)$if($stricmp($codec(),MP3),%__mp3_stereo_mode%,
$if(%__channels%,$ifgreater(%__channels%,1,Stereo,Mono),'?'))$char(10)
$if(%__bitspersample%,$get(head)Bitdepth: $get(info)%__bitspersample%$char(10),)
$if(%__samplerate%,$get(head)Samplerate: $get(info)%__samplerate% $get(anno)Hz$char(10),)
$if(%_filesize%,$get(head)Filesize: $get(info)
$div(%_filesize%,1048576).$left($num($muldiv($mod(%_filesize%,1048576),100,1048576),2),2) $get(anno)'MB'$char(10),)
$char(1)C$get(div)$repeat($get(divc),$get(divw))$char(10)
$if(%_length_seconds%,$char(1)C$get(head)Track Progress $get(info)$muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%)$get(anno)'%'$char(10)
$char(1)C$progress2(%_time_elapsed_seconds%, %_time_total_seconds%,$get(progw),$get(prog1)$get(progc),$get(prog2)$get(progc)),
$char(1)C$get(head)streaming...)
)

here is what mine looks like currently:
(http://www.metalwings.org/assets/images/trk_ifo_00.png)
Title: foo_uie_trackinfo
Post by: waileongyeo on 2005-04-05 08:09:50
Quote
For some reason I always fiddle with this file size issue when I'm really tired. Not always a good idea...

Anyway, the $muldiv() version is still a little more accurate in general, but introduces the the 99 vs 100 problem Mr_Rabid_Teddybear noted above.
Code: [Select]
$div(%_filesize%,1048576).$num($muldiv($mod(%_filesize%,1048576),100,1048576),2) MB
ensures that a 4673211 bytes file is displayed as 4.46MB, not 4.45MB
as 4673211 bytes / (1024^2) = 4.456 MB

This affects a lot of files, but the 99 vs 100 problem is rarer. IIRC, the latter was the reason I started changing this code the last time, but I was fooled by the size reported in Windows, and did a lot of strange things.

I don't really know why I even bother with this, as I rarely look at the file size anyway.
[a href="index.php?act=findpost&pid=287249"][{POST_SNAPBACK}][/a]


If this is the case to get a more accurate filesize, I think we can code to deal with the special case when 100 is returned using $muldiv as below:
Code: [Select]
$div(%_filesize%,1048576).
$ifgreater($muldiv($mod(%_filesize%,1048576),100,1048576),99
,99,
$num($muldiv($mod(%_filesize%,1048576),100,1048576),2)
) MB


OR

If additional variable used.
Code: [Select]
$puts(ModSize,$muldiv($mod(%_filesize%,1048576),100,1048576))
$div(%_filesize%,1048576).$ifgreater($get(ModSize),99,99,$num($get(ModSize),2)) MB
Title: foo_uie_trackinfo
Post by: shevchenic on 2005-04-05 15:58:27
If it can let me choose my own font type, it's more wondfull...........
Title: foo_uie_trackinfo
Post by: Mr_Rabid_Teddybear on 2005-04-06 02:55:26
Quote
If it can let me choose my own font type, it's more wondfull...........
[a href="index.php?act=findpost&pid=288461"][{POST_SNAPBACK}][/a]

Preferences > Components >Track info panel > font
  ?
Title: foo_uie_trackinfo
Post by: shevchenic on 2005-04-08 09:33:43
Quote
Quote
If it can let me choose my own font type, it's more wondfull...........
[a href="index.php?act=findpost&pid=288461"][{POST_SNAPBACK}][/a]

Preferences > Components >Track info panel > font
  ?
[a href="index.php?act=findpost&pid=288583"][{POST_SNAPBACK}][/a]


oh, the effect i want is that : for example, the 1st line i can use a font type,
and in the 2nd line i can use a different font type...so as it...
Title: foo_uie_trackinfo
Post by: sPeziFisH on 2005-04-08 10:09:15
maybe there is a free project, Phi can get some code-snippet (or some librarys) from to give HTML-interpretation (like it was requested here in post 42 (http://www.hydrogenaudio.org/forums/index.php?showtopic=29363&view=findpost&p=254003)) - limited interpretation (no images etc.) would be fine enough.
Maybe the author of this winamp-plugin could give some support.
Sure, Phi gave already an answer, but I hope it could finally be less work than guessed...
Title: foo_uie_trackinfo
Post by: Zurman on 2005-04-10 23:19:26
I have a few requests

Would it be possible to have multiple info panels with multiple configurations?
For example, one panel for the infos about the track, another for displaying the lyrics, another for the review of the CD...

And how about reading content from external files? (for those who use evillyrics for example)

anyway thanks for the plugin cool.gif
Title: foo_uie_trackinfo
Post by: Insolent on 2005-04-11 12:27:55
Quote
Hey guys,

Just a little question.

I want to show the samplerate in a short form, like 44.1 kHz, so I tried to make a little code. But I'm not really happy with it.

Code: [Select]
$div(%__samplerate%,1000).$div($num($div($mul($mod(%__samplerate%,1000),2),2),2),100) kHz


Has anyone a better solution?
[a href="index.php?act=findpost&pid=287762"][{POST_SNAPBACK}][/a]

Code: [Select]
$div(%__samplerate%,1000).$substr(%__samplerate%,3,3)KHz

...maybe?
Title: foo_uie_trackinfo
Post by: Strictly4me on 2005-04-11 23:12:31
Hi, i have a small problem with my trackinfo-codes!

Here you can see the statistic-part of my trackinfo.
)
THX

((((( Strictly4me )))))
Title: foo_uie_trackinfo
Post by: anza on 2005-04-11 23:57:12
In the code, change this
Code: [Select]
$puts(month,$left(%play_date%,2))

$puts(day,$substr(%play_date%,4,5))

to this
Code: [Select]
$puts(month,$substr(%play_date%,4,5))

$puts(day,$left(%play_date%,2))


and it should work.
Title: foo_uie_trackinfo
Post by: Strictly4me on 2005-04-12 08:54:54
Quote
In the code, change this and it should work.

It works!
Many thanks!

((((( Strictly4me )))))
Title: foo_uie_trackinfo
Post by: synth7 on 2005-04-14 20:30:37
(http://img29.echo.cx/img29/6898/trackinfo9yn.jpg)

Much longer config this version...

Code: [Select]
// the default (white) color
$puts(white,dbdbdb)

// text color for headings
$puts(head,918377)

// text color for info annotations (Kbit/s, MB, etc)
$puts(anno,b1b1b1)

// text color for special stuff (now playing, LAME profiles)
$puts(bright,97cddd)

// text color for extra song info (in parentheses/brackets)
$puts(extra,6c8e93)

// background color, for redundancy
$puts(background,524B3C)

// character used for progress bar
$puts(progchar,█)

// color used for foreground progress bar
$puts(progfore,ffffff)

// color used for background progress bar
$puts(progback,9d9d9d)

// progress bar length
$puts(proglength,40)

// transition color for fading out
$puts(trans_back,524B3C)

// transition color for foreground
$puts(trans_frnt,ffffff)

// song title output
$puts(title,[$replace(%title%,'(',$get(extra)'(',')',')'$get(bright),'[',$get(extra)'(',']',')'$get(bright))]$char(10))

// artist name output
$puts(artist,[%artist%]$char(10))

// album title output
$puts(album,[$iflonger(%album%,40,$cut(%album%,40)...,%album%)]$char(10))

// track and disc output 1
$puts(track,[CD$if(%disc%,%disc%', ',)]$num(%tracknumber%,2)$char(10))

// genre output
$puts(genre,[%genre%]$char(10))

// date/year output
$puts(date,[%date%]$char(10))

// codec name output
$puts(codec,[%__codec%]$char(10))

// bitrate/LAME output
$puts(bitr,$if(%__lame_profile%,$get(bright)--%__lame_profile%$get(anno) '('%__bitrate_dynamic% Kbit/s')',[%__bitrate%] $get(anno)Kbit/s)$char(10))

// compression precent outout
$puts(compr,$get(white)$muldiv(%__bitrate%,100,1411)$get(anno_color)$get(anno)'%'$char(10))

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

// audio channels output
$puts(chan,$caps($if($stricmp($codec(),MP3),%__mp3_stereo_mode%,$channels()))$char(10))

// samplerate output
$puts(samp,$if(%__samplerate%,%__samplerate% $get(anno)Hz,)$char(10))

// time played / total (remaining) output
$puts(leng,[%_time_elapsed% / ][%_length%] [$get(anno)'('%_time_remaining%')']$char(10))

// used to get filename
$puts(filename,$filename(%_path%).$ext(%_path%))

// filename output (used with above)
$puts(file,[$iflonger($get(filename),55,$cut($get(filename),55)...,$get(filename))$char(10)])

//////////////////////////////////////////
/////////// FINAL OUTPUT ///////////
/////////////////////////////////////////

$char(1)C$transition(---------,$get(trans_back),$get(trans_frnt))  $get(white)S O N G  I N F O R M A T I O N  $transition(---------,$get(trans_frnt),$get(trans_back))$char(10)$char(10)
$get(head)Title:  $get(bright)$get(title)
$get(head)Artist:  $get(white)$get(artist)
$get(head)Album:  $get(white)$get(album)
$get(head)Track:  $get(white)$get(track)
$get(head)Genre:  $get(white)$get(genre)
$get(head)Date:  $get(white)$get(date)
$get(head)Codec:  $get(white)$get(codec)
$get(head)Bitrate:  $get(white)$get(bitr)
$get(head)Compression:  $get(white)$get(compr)
$get(head)Filesize:  $get(white)$get(fsize)
$get(head)Channels:  $get(white)$get(chan)
$get(head)Samplerate:  $get(white)$get(samp)
$get(head)Time:  $get(white)$get(leng)
$char(10)
$get(head)$get(file)
$progress2(%_time_elapsed_seconds%,%_time_total_seconds%,$get(proglength),$get(progfore)$get(progchar),$get(progback)$get(progchar))$get(bright)  $muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%)'%'
Title: foo_uie_trackinfo
Post by: kalen3285 on 2005-04-14 22:14:40
synth7,

I like your track info, but when I copy and pasted your config, the progress meter doesn't display.  Am I doing something wrong?

(http://img59.echo.cx/img59/5927/trackinfo9mq.th.png) (http://img59.echo.cx/my.php?image=trackinfo9mq.png)
Title: foo_uie_trackinfo
Post by: Storm on 2005-04-14 22:22:01
Something wrong with this?

Code: [Select]
// character used for progress bar
$puts(progchar,█)
Title: foo_uie_trackinfo
Post by: Mr_Rabid_Teddybear on 2005-04-14 22:27:35
Quote
Something wrong with this?

Code: [Select]
// character used for progress bar
$puts(progchar,█)

[{POST_SNAPBACK}][/a] (http://index.php?act=findpost&pid=290604")

The font you use?
Look [a href="http://www.hydrogenaudio.org/forums/index.php?showtopic=30988&view=findpost&p=289560]here[/url].
Maybe that helps?
Title: foo_uie_trackinfo
Post by: synth7 on 2005-04-14 22:43:37
Yea, I used to use Tahoma as my font, but it has no Unicode support, so I switched to Arial.

I also updated the end, removes the filename and puts the percent in a better place. Replace the last 2 lines...

Code: [Select]
$char(1)C$get(head)Track Progress $get(bright)$muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%)'%'$char(10)
$char(1)C$progress2(%_time_elapsed_seconds%,%_time_total_seconds%,$get(proglength),$get(progfore)$get(progchar),$get(progback)$get(progchar))
Title: foo_uie_trackinfo
Post by: Storm on 2005-04-14 22:52:13
I've done this to kinda emulate it showing me when it sends the song data to Audioscrobbler:

Code: [Select]
$if(%_isplaying%,$char(10)$char(10)$ifgreater(
$muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%),50,
c2b1a3Audioscrobblered.,666666Non-audioscrobblered.)


But I'd want it to sense if I have been seeking through the current song. Would that be possible without someone modding foo_audioscrobbler?
Title: foo_uie_trackinfo
Post by: kalen3285 on 2005-04-15 03:41:24
Thanks for the replies.  In the end, Mr. Rabid Teddybear and synth7 were right.  Switching to Arial fixed the problem.  Thanks!
Title: foo_uie_trackinfo
Post by: Strictly4me on 2005-04-15 16:07:06
Hello, can anybody help me by this trackinfo code?

If i start Foobar i have nothing in my playlist, till i select a song in playlist-tree. - Thats ok, but i have some stuff in my trackinfo.
You can see in this screenshot:

(http://www.samurize.org/upload/Strictly4me/TrIn1.jpg)

I dont want to see this existing "A" near "Song Info" and "0.00MB" near "Tech Info".
Know someone whats wrong in my trackinfo-code?

Here the whole code:

Code: [Select]
//////////////////////////////////////////////////////////////////////////////////////////////

////  A simple formatting script for foo_uie_trackinfo.

////  It will work with the following tags:

////  %RATING%, %PLAY_COUNTER%, %PLAY_TIME%,

////  %LABEL% and/or %PUBLISHER%.

////  Best viewed in Arial 8pt Bold

////  Created by: korsairr@cogeco.ca

////  Date: Jan 31, 2005

/////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////

//Colors, etc.

////////////////////////////////

$puts(default_color,dee8e5)

$puts(rating_color_1,dee8e5)

$puts(rating_color_2,938881)

$puts(rating_symbol,♫)

$puts(is_playing_color,5357EF)

$puts(tag_missing_color,5357EF)

$puts(heading_color_l,ffb00d)

$puts(heading_color_r,dee8e5)

$puts(is_playing_color,5357EF)

////////////////////////////////

//Code

////////////////////////////////

////////////////////////////////

///////Song Info

////////////////////////////////

$transition(  ----- Song Info ------------------------------------------------------,$get(heading_color_l),$get(heading_color_r))

$char(10)$get(default_color)
 
$if(%title%,$if(%_isplaying%,

$get(is_playing_color)$iflonger(%title%,36,$cut(%title%,33)...,%title%),

$iflonger(%title%,36,$trim($cut(%title%,33))...,%title%)),

A$if(%_isplaying%,

$get(is_playing_color)$iflonger(%_filename_ext%,36,$cut(%_filename_ext%,33)...,%_filename_ext%),

$iflonger(%_filename_ext%,36,$trim($cut(%_filename_ext%,33))...,%_filename_ext%)))

$char(10)$get(default_color) 

$if(%artist%,

$iflonger(%artist%,36,$cut(%artist%,33)...,%artist%),

$get(tag_missing_color)Keine Artist Informationen)

$char(10)$get(default_color) 

$if(%album%,

$iflonger(%album%,36,$cut(%album%,33)...,%album%),

$get(tag_missing_color)Keine Album Informationen)

$char(10)$get(default_color) 

$if($or(%publisher%.%label%,%date%),$if($or(%publisher%,%label%),© ,)%date%$if($or(%publisher%,%label%),'. ',)[%publisher% ][label],

$get(tag_missing_color)Keine Datum oder Copyright Informationen)

$char(10)$get(default_color) 

$if(%rating%,

$repeat($get(rating_color_1)$get(rating_symbol) ,%rating%)$repeat($get(rating_color_2)$get(rating_symbol) ,$sub(3,%rating%)) ,)

$get(default_color)$if(%genre%,%genre%,$get(tag_missing_color)Keine Genre Informationen)

$char(10)$char(10)

////////////////////////////////

///////Statistics

////////////////////////////////

$transition(  ----- Statistics -------------------------------------------------------,$get(heading_color_l),$get(heading_color_r))

$char(10)$get(default_color) 

$if(%play_date%,

$puts(month,$substr(%play_date%,4,5))

$puts(day,$left(%play_date%,2))

$if($strcmp($left($get(day)1),0),$puts(day,$right($get(day),1)))

$puts(year,$right(%play_date%,2))

$puts(month_name,$select($get(month),

Jän,Feb,März,April,Mai,Juni,Juli,Aug,Sept,Okt,Nov,Dez))

$if($strcmp($right($get(day),1),1),$puts(xx,),

$if($strcmp($right($get(day),1),2),$puts(xx,),

$if($strcmp($right($get(day),1),3),$puts(xx,),

$puts(xx,)))))

$puts(time_of_year,$get(day)$get(xx). $get(month_name) 20$get(year))

$if(%play_counter%,Abgespielt $if($strcmp(%play_counter%,1),

einmal','$if(%play_date%, am $get(time_of_year) um %play_time%),

%play_counter% mal$if(%play_date%,

$char(10)  dee8e5Zuletzt gespielt am $get(time_of_year)) um %play_time%),Dieser Song wurde noch nicht gespielt)

$ifgreater(%play_counter%,1,,$char(10))

$char(10)$char(10)

////////////////////////////////

///////Tech Info

////////////////////////////////

$transition(  ----- Tech Info -------------------------------------------------------,$get(heading_color_l),$get(heading_color_r))

$char(10)$get(default_color) 

[%__codec%]

$if(%__bitrate_dynamic%,%__bitrate_dynamic%,[%__bitrate% kbps])

$if($stricmp(%__codec%,mp3),$if($stricmp(%__extrainfo%,vbr),VBR,CBR))

$if($stricmp($codec(),MP3),%__mp3_stereo_mode%,$channels())

$char(10)$get(default_color) 

[%_time_elapsed%/][%_length%][  -%_time_remaining%]

$if(%_isplaying%, 

$muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%)'%',) 

$div(%_filesize%,1048576).

$left($num($muldiv($mod(%_filesize%,1048576),1000,1048576),3),2)' MB'

$char(10)$get(default_color) 

$if($or(%__replaygain_track_gain%,%__replaygain_album_gain%),

['['Tg']' %__replaygain_track_gain% ]['['Ag']' %__replaygain_album_gain%],

$get(tag_missing_color)Keine Replaygain Informationen)

Here trackinfo in action:

(http://www.samurize.org/upload/Strictly4me/TrIn2.jpg)

Thanks in advance.
((((( Strictly4me )))))
Title: foo_uie_trackinfo
Post by: Storm on 2005-04-15 16:54:15
Code: [Select]
A$if(%_isplaying%,


Maybe that's what's wrong?

Remove the A from the beginning of the line.

And substitute

Code: [Select]
$left($num($muldiv($mod(%_filesize%,1048576),1000,1048576),3),2)' MB'


for

Code: [Select]
$if(%_filesize%,$left($num($muldiv($mod(%_filesize%,1048576),1000,1048576),3),2)' MB')


and then try it out.
Title: foo_uie_trackinfo
Post by: Strictly4me on 2005-04-15 18:06:42
Thanks "Storm"

I dont have "A" now, but with the other code is still something wrong:

(http://www.samurize.org/upload/Strictly4me/TrIn3.jpg)

One more idea?

((((( Strictly4me )))))
Title: foo_uie_trackinfo
Post by: Storm on 2005-04-15 19:58:23
Did you write all this code yourself or have you copied it from someone else?

Anyways, of course it should be

Code: [Select]
$if(%_filesize%,$div(%_filesize%,1048576).
$left($num($muldiv($mod(%_filesize%,1048576),1000,1048576),3),2)' MB')$char(10)


instead of

Code: [Select]
$div(%_filesize%,1048576).

$left($num($muldiv($mod(%_filesize%,1048576),1000,1048576),3),2)' MB'

$char(10)


And also you can remove a $char(10) up there just before the artist information, to get rid of that empty line.
Title: foo_uie_trackinfo
Post by: Strictly4me on 2005-04-15 21:37:24
Quote
Did you write all this code yourself or have you copied it from someone else?

No, i found this code.
Anyway, it works correct now.
Many thanks to you! 
Great.

((((( Strictly4me )))))
Title: foo_uie_trackinfo
Post by: MrEnergizer on 2005-04-17 01:46:38
Iv been following this forum but I may have missed the answer b4...if so please provide a link...Im too tired to trudge through 12 pages to find the answer. 
My problem is that when a title eg ALBUM : The Miseducation Of Lauryn Hill
is too long for my track info box, it goes on to another line (so pushing down the other info)
I want it on the same line so it would be ALBUM : The Miseducation Of Lau....
This works on my playlist.  Any one know the string to make this work in Track Info??
TIA
Title: foo_uie_trackinfo
Post by: Storm on 2005-04-17 01:50:50
I also have a bug report. When you use color codes to... um, color your text, and a line break occurs; it continues on the next line but with the standard color. You should be able to color code an entire sentence or whatever without "risking" anything looking out of place if the metadata is too long.
Title: foo_uie_trackinfo
Post by: acedriver on 2005-04-17 03:42:40
Quote
Iv been following this forum but I may have missed the answer b4...if so please provide a link...Im too tired to trudge through 12 pages to find the answer. 
My problem is that when a title eg ALBUM : The Miseducation Of Lauryn Hill
is too long for my track info box, it goes on to another line (so pushing down the other info)
I want it on the same line so it would be ALBUM : The Miseducation Of Lau....
This works on my playlist.  Any one know the string to make this work in Track Info??
TIA
[a href="index.php?act=findpost&pid=291183"][{POST_SNAPBACK}][/a]

use this
Code: [Select]
$puts(info_box_width,60)

$iflonger(%album%,$get(info_box_width),$trim($cut(%album%,$sub($get(info_box_width),3)))...,%album%)

code found somewhere in this thread.. change info_box_width value to adjust length
Title: foo_uie_trackinfo
Post by: MrEnergizer on 2005-04-17 16:24:30
Thx once again empeethree 
I havent got my head into these strings yet....that has made my info box look neat now...sad I know but its the little things that annoy me 
Thanks 
Title: foo_uie_trackinfo
Post by: Storm on 2005-04-17 16:37:12
Is there any way to get the current date and time, to be able to do comparisons; if I want my info box to show:

Last played 2 months ago, February 17th.

for example?
Title: foo_uie_trackinfo
Post by: gob on 2005-04-18 07:18:49
Quote
Thanks "Storm"

I dont have "A" now, but with the other code is still something wrong:

(http://www.samurize.org/upload/Strictly4me/TrIn3.jpg)

One more idea?

((((( Strictly4me )))))
[a href="index.php?act=findpost&pid=290814"][{POST_SNAPBACK}][/a]


hey, it looks like your usinng my track info panel as a base for your own. try using the newest version, there were a lot of little bugs i overlooked.
Title: foo_uie_trackinfo
Post by: Strictly4me on 2005-04-18 09:02:19
Quote
hey, it looks like your usinng my track info panel as a base for your own. try using the newest version, there were a lot of little bugs i overlooked.

Thats great "gob"!
But the problem is, i cann't remember where i can take it from?
You have a link to your new version? - Thanks. 

((((( Strictly4me )))))
Title: foo_uie_trackinfo
Post by: morph on 2005-04-19 23:39:01
Hey, I got a minor problem with the "Last Played" code in my track info.

Example: "Last played: 19.04.2020 05:14:24"

As you can see, the year is messed up. Also, I never played this track 5am in the morning. So.. could someone point out to me where the code fails?

Code: [Select]
$if($and(%play_date%,%play_time%),$substr(%play_date%,1,2).$substr(%play_date%,3,4).20$substr(%play_date%,5,6) $substr(%play_time%,1,2):$substr(%play_time%,3,4):$substr(%play_time%,5,6),$rgb(128,128,128)No date found)$char(10)

The code was written by Shadikka and posted here, so I just copied it.
Also, is there a way to change the date format to "April 19th 2005"?...
Title: foo_uie_trackinfo
Post by: Storm on 2005-04-20 01:14:20
Maybe this can be useful. Could be improved upon and it is really simple, but I can't sit all day configuring my Foobar TAGZ... sadly. Hmm, I should write also that the code for printing the playcount is originally gob's but I modified it somewhat.

Meant to be used with black/dark gray background and white text.

Anyone who knows their shit, please do give comments on how to optimize it...

Here goes.

Code: [Select]
$if($strstr(%_trackinfo_mode%,playing),
20bcff$if(%_isplaying%,,)Now playing,
ffffffSelected track)
9a9a9amode.$char(10)$char(10)

$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 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%)),,
$if($or(%play_counter%,%rating%),$char(10)$char(10))

//// If rating exists, print it
$if(%rating%,069bffRated %rating%. )

//// If playcount exists, print in appropriate form
$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(%play_date%),$char(10)$char(10)666666Never played ))
$if($or(%play_counter%,$not(%play_date%)),since Dec 2004$if($get(p1),',',.))

////  Play date needs to be in DDMMYY format)
$if(%play_date%,$char(10)
$if($get(p1),9a9a9aon,$char(10)9a9a9aLast played)

//// Make day 01 -> 1
$puts(pday,$left(%play_date%,2))
$if($strcmp($left($get(pday),1),0),$puts(pday,$right($get(pday),1)))

//// Make 12th, 23rd, 74th, 1st, 42nd etc
$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)))))

//// Name the months
$puts(pmonth,$select($substr(%play_date%,3,4),
Jan,Feb,March,April,May,June,July,Aug,Sept,Oct,Nov,Dec))

//// Fix year to tell millennium as well ()
$puts(pyear,$right(%play_date%,2))
$puts(pyear,$if($greater($get(pyear),80),19,20)$get(pyear))

$puts(ptime,$left(%play_time%,2):$substr(%play_time%,3,4))

//// Print date
$get(pmonth) $get(pday)$get(xx) $get(pyear)
$if(%play_time%, 9a9a9aat $get(ptime))9a9a9a.
)))

//// Playing a song? then print audioscrobbler status
$if(%_isplaying%,$char(10)$char(10)Playing. $ifgreater(
$muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%),50,
c2b1a3Audioscrobblered.,9a9a9aNon-audioscrobblered.))
Title: foo_uie_trackinfo
Post by: rapsodie on 2005-04-20 04:46:31
Is there a string that would keep the track info panel on Now Playing mode while a song is playing, but in Cursor Mode while nothing is playing?  What I've tried so far hasn't worked. 
Title: foo_uie_trackinfo
Post by: mj-barton on 2005-04-20 05:20:30
I second this request.
Title: foo_uie_trackinfo
Post by: morph on 2005-04-20 08:24:37
@Storm:
Wow, great trackinfo config. Really simple and neat. Liked it alot. Just added some stuff to fit my need, it works perfectly, thanks.
Title: foo_uie_trackinfo
Post by: Storm on 2005-04-20 10:42:11
I concur with rapsodie and mj-barton.

morph: Oh, wow, thanks. I started learning this stuff like some week ago, so that's really flattering.

Here's v2:

Code: [Select]
//// Three star song or 3 star song?
$puts(ratingwords,0)

$if(%_trackinfo_nowplaying%,20bcffNow playing,
ffffffSelected track) 9a9a9amode.$char(10)$char(10)

$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 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%)),,$char(10)$char(10)

//// If rating exists, print it
$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. $char(10)$char(10))

//// If playcount exists, print in appropriate form
$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(%play_date%),$if(%rating%,$char(10)$char(10))666666Never played))
$if($or(%play_counter%,$not(%play_date%)),$if($get(p1),',', since added.)))

$if($and(%play_counter%,$get(p1)),$char(10)$char(10))$get(countstring)

////  Play date needs to be in DDMMYY format
$if(%play_date%,
$if($get(p1), 9a9a9aon,$char(10)$char(10)9a9a9aLast played)

//// Make day 01 -> 1
$puts(pday,$left(%play_date%,2))
$if($strcmp($left($get(pday),1),0),$puts(pday,$right($get(pday),1)))

//// Make 12th, 23rd, 74th, 1st, 42nd etc
$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)))))

//// Name the months
$puts(pmonth,$select($substr(%play_date%,3,4),
January,February,March,April,May,June,July,
August,September,October,November,December))

//// Fix year to tell millennium as well
$puts(pyear,$right(%play_date%,2))
$puts(pyear,$if($greater($get(pyear),80),19,20)$get(pyear))

$puts(ptime,$left(%play_time%,2):$substr(%play_time%,3,4))

//// Print date
' '$get(pmonth) $get(pday)$get(xx) $get(pyear)
$if(%play_time%, 9a9a9aat $get(ptime))9a9a9a.)))

//// Playing a song? then print audioscrobbler status
$if(%_isplaying%,$char(10)$char(10)$if(%_ispaused%,Paused,Playing). $ifgreater(
$muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%),50,
c2b1a3Audioscrobblered.,9a9a9aNon-audioscrobblered.))


Edit: morph: I also replaced the "since Dec 2004" (that's when I filled up my music library for the first time ) with "since added", and removed it for "once" playcounts so that it could go on the same line as the playdate. I can't remember now but I think I did something else as well. :>

Edit #2: Oh yeah, full name months too, and I think I shortened the code on some spots. Well, as for the rating field you've already mentioned, I also added "You haven't rated this song yet" but maybe you saw that.

Edit #3: I've made updates to the code during the day, so you should copy it again in a few minutes after I've fixed a bug caused by this forum (it won't print out spaces in the beginning or end of a line)... Edit #4: There, all done.
Title: foo_uie_trackinfo
Post by: morph on 2005-04-20 12:22:01
@Storm:
Good update on the rating field. Did you update anything else?

EDIT: I've noticed a bug though, don't know what's causing it. On some tracks the "You havn't rated this song." text doesn't jump down two rows from the track info. So it's attached on the track info right after the Year field.
Title: foo_uie_trackinfo
Post by: Storm on 2005-04-20 13:39:23
Now it should be totally bug-free and also tell when playback's paused.

Edit: Err, wrong.  Linebreak bug when you select a track with no rating that's played once... hold on.
Title: foo_uie_trackinfo
Post by: morph on 2005-04-20 13:50:39
I noticed
Your last update works great. Big thanks! 

EDIT: Now.. all that's left is to figure out how to implant a rating-bar into a colum in the playlist 
Title: foo_uie_trackinfo
Post by: Storm on 2005-04-20 14:12:57
Kind of like this?

http://branstrom.nu/shots/program/foobar/050420.png (http://branstrom.nu/shots/program/foobar/050420.png)

Code: [Select]
$puts(r_cl,93612F)
$if(%rating%,
$select(%rating%,
●$get(r_cl)●●●●,
●●$get(r_cl)●●●,
●●●$get(r_cl)●●,
●●●●$get(r_cl)●,
●●●●●)
)


Edit: Another screenshot to show off the playing mode:
http://branstrom.nu/shots/program/foobar/050420-2.png (http://branstrom.nu/shots/program/foobar/050420-2.png)
Title: foo_uie_trackinfo
Post by: morph on 2005-04-20 14:17:50
Oh yeh! 
Many swede's around here, including myself 
Title: foo_uie_trackinfo
Post by: Storm on 2005-04-20 14:26:58
Ah, I didn't know you were a swede! Tjenamoss.

They should print out the location field next to each post, like in http://www.extensionsmirror.nl/index.php?s...240&#entry12708 (http://www.extensionsmirror.nl/index.php?showtopic=2294&pid=12708&st=240&#entry12708) for example.
Title: foo_uie_trackinfo
Post by: morph on 2005-04-20 14:28:43
Yeah

However, the rating isn't working for me, I only get a empty colum 
Title: foo_uie_trackinfo
Post by: Storm on 2005-04-20 14:30:36
You have to use certain fonts like Tahoma or Verdana for example in the playlist for that to work, or you'll have to exchange the ● character for something else.
Title: foo_uie_trackinfo
Post by: morph on 2005-04-20 14:34:02
ohh nevermind, i noticed the script didn't return anything on a not-rated track..
for the font side, i understood that far

EDIT: You should evolve the script a bit, first of all put in something to return if the track isn't rated and somehow return negative rated tracks. For this the dots could change color to red to indicate negative.
Title: foo_uie_trackinfo
Post by: Storm on 2005-04-20 15:13:40
I don't think anyone's rating tracks on the other side of zero - take a look at QuickTag and you'll see that at least that plugin is only meant to be used with positive ratings. Maybe it's a good idea though... But as for the rest, you're right, it could show a faint line of dots for the ones that aren't rated, and the rest of my playlist can also be improved upon, maybe I'll even remove a few columns as I get a lot of info through the trackinfo panel anyway.

(http://branstrom.nu/shots/program/foobar/quicktag-rating.png)
Title: foo_uie_trackinfo
Post by: morph on 2005-04-20 16:07:47
Perhaps your rigth, negative rating isn't meant to be used. Then
1 star  = hate
5 stars = love

Yes, a faint line of dots would be excellent.
And yes, I had the same problem, having info repeating itself on different places. Now I'm just trying to have a clean as possible config.

(http://ed.sitsdn.com/foo/foo-screensmall.png) (http://ed.sitsdn.com/foo/foo-screen.png)
Title: foo_uie_trackinfo
Post by: Storm on 2005-04-20 16:36:07
Yep. One wonders why one would keep songs in one's music library if they were so bad you'd give them five negative stars. Songs like that are just easier dealt with by the delete button.

I have a problem with Columns UI colors - it seems I can't control the _selected_ color for a _part_ of a column, like if I wanted to make

Code: [Select]
$puts(r_cl,93612F)
$if(%rating%,
$select(%rating%,
●$get(r_cl)●●●●,
●●$get(r_cl)●●●,
●●●$get(r_cl)●●,
●●●●$get(r_cl)●,
●●●●●),644737●●●●●)


but have another selected color than the default inverted color, how would I go about? I don't get it. I should sleep perhaps.

This is my color code for the rating column at the moment:

Code: [Select]
||432C15|$if(%_isplaying%,0068D0,34281C)


Hmm, another problem, when I try to copy the code from the pref window (talking about the Display code that I pasted first...) to this form, it doesn't copy the color control characters for the second color, just the first one.
Title: foo_uie_trackinfo
Post by: morph on 2005-04-20 16:53:47
@Storm:
I found another line break error 
On some songs there's 3 empty lines between the rating and last played date.
Title: foo_uie_trackinfo
Post by: Storm on 2005-04-20 17:26:35
That's the one I mentioned earlier I think, haven't fixed it yet... Show me a screenshot so I can be sure we're talking about the same thing.

Edit: To minimize the number of posts on such a trivial matter, I'm writing here, confirming that it is the same bug that I mentioned on the previous page... Working on it now. Believe it or not, linebreaks can be vicious...
Title: foo_uie_trackinfo
Post by: morph on 2005-04-20 17:39:42
Sure.

Screenshot (http://ed.sitsdn.com/foo/foo-screen_trackinfobug.png)
Title: foo_uie_trackinfo
Post by: Storm on 2005-04-20 18:38:49
[span style='font-size:14pt;line-height:100%']Bug report![/span]

If you look at my code you'll see that I've encased practically everything that is separated by spaces in its own color code. That's because if I don't, this will happen:

Here it is:

Code: [Select]
//// Three star song or 3 star song? Audioscrobbler or not?
$puts(ratingwords,0)$puts(audioscrobbler,1)

$if(%_trackinfo_nowplaying%,20bcffNow playing,
ffffffSelected track) 9a9a9amode.$char(10)$char(10)

$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 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%)),,$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(%play_date%),$if(%rating%,$char(10)$char(10))666666Never played))
$if($or(%play_counter%,$not(%play_date%)),$if($get(p1),',', since added.)))

$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)

////  Play date needs to be in DDMMYY format
$if(%play_date%,
$if($get(p1), 9a9a9aon,$char(10)$char(10)9a9a9aLast played on)

$puts(pday,$left(%play_date%,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(%play_date%,3,4),
January,February,March,April,May,June,July,
August,September,October,November,December))

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

$puts(ptime,$left(%play_time%,2):$substr(%play_time%,3,4))

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

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


Edit #2: Another update.
Title: foo_uie_trackinfo
Post by: morph on 2005-04-20 23:50:33
Great, thanks again.
Title: foo_uie_trackinfo
Post by: topdownjimmy on 2005-04-21 12:11:34
Quote
Hey, I got a minor problem with the "Last Played" code in my track info.

Example: "Last played: 19.04.2020 05:14:24"

As you can see, the year is messed up. Also, I never played this track 5am in the morning. So.. could someone point out to me where the code fails?

Code: [Select]
$if($and(%play_date%,%play_time%),$substr(%play_date%,1,2).$substr(%play_date%,3,4).20$substr(%play_date%,5,6) $substr(%play_time%,1,2):$substr(%play_time%,3,4):$substr(%play_time%,5,6),$rgb(128,128,128)No date found)$char(10)

The code was written by Shadikka and posted here, so I just copied it.
Also, is there a way to change the date format to "April 19th 2005"?...
[a href="index.php?act=findpost&pid=291997"][{POST_SNAPBACK}][/a]

Change
Code: [Select]
$substr(%play_date%,5,6)
to
Code: [Select]
$substr(%play_date%,7,8)


Change
Code: [Select]
$substr(%play_date%,3,4)
to
Code: [Select]
$select($substr(%play_date%,3,4),January,February,March,April,May,June,July,August,September,October,November,December)


Play with that. 
Title: foo_uie_trackinfo
Post by: Storm on 2005-04-21 14:50:22
Quote
Play with that. 
[a href="index.php?act=findpost&pid=292389"][{POST_SNAPBACK}][/a]


Thanks for your help, but he's already using my code.
Title: foo_uie_trackinfo
Post by: kockroach on 2005-04-26 23:41:48
This is my first post in here.  So far I have been able to get fb2k up and running pretty well with what I have been able to find on the forum.  I am having a problem with a foo_uie_trackinfo script though.  I have added a couple of lines to the script originally from necropimp and edited by AstreaEdge, which was posted previously in this thread.  (Awesome script!!)  I didn't want to post the whole script over again.

I have added the following lines:
Code: [Select]
$if(%play_counter%,$get(head)Number of times played: $get(info)%play_counter%$char(10),)
$if(%play_date%,$get(head)Last played on: $get(info)%play_date% at $get(info)%play_time%$char(10),)


This gives me text as follows:
Number of times played: X
Last played on MMDDYYYY at h:MM:SS (the colons are there since that is how I set up Play Count)

I have tried a number of ways to get the date to show as Month DD, YYYY (e.g. April 26, 2004) but I cannot get a working script.  Does anyone have any suggestions?

Thanks!
Title: foo_uie_trackinfo
Post by: necropimp on 2005-04-28 10:08:11
well figured out how to get compression ratio

Code: [Select]
$div(1411,%__bitrate%).$substr($muldiv(1411,100,%__bitrate%),2,3):1


http://necropimp.home.insightbb.com/foobar2.png (http://necropimp.home.insightbb.com/foobar2.png)
Title: foo_uie_trackinfo
Post by: AxaliaN on 2005-04-28 19:24:35
I'm making an animation for the trackinfo panel, and now I need a counter, just a simple variable which increases.

I've tried everything, and I can;t get it to work! How do I make a variable, update it with 1 and display it? Anyone?

Thanks in advance and I'll be sure to share my string =)
Title: foo_uie_trackinfo
Post by: gfngfgf on 2005-04-28 19:29:43
Axalian: You can't make variables which survive from second to second.  Each screen refresh is independent of the past screen refreshs.  I think a common practice, though, is to use %time_elapsed_seconds% as a counter.  You can combine it with $mod() and other foobar math functions to get any count you need.  For instance, the following code counts from 0 to 9:

Code: [Select]
$mod(%time_elapsed_seconds%,10)
Title: foo_uie_trackinfo
Post by: AxaliaN on 2005-04-28 19:39:47
Quote
Axalian: You can't make variables which survive from second to second.  Each screen refresh is independent of the past screen refreshs.  I think a common practice, though, is to use %time_elapsed_seconds% as a counter.  You can combine it with $mod() and other foobar math functions to get any count you need.  For instance, the following code counts from 0 to 9:

Code: [Select]
$mod(%time_elapsed_seconds%,10)

[a href="index.php?act=findpost&pid=293954"][{POST_SNAPBACK}][/a]


Thanks, but i need something that loops indefinetly (well, till the next track, because it'll reset the trackinfo) and it's already in such a method (the %time_elapsed_seconds method)... Any ideas?
Title: foo_uie_trackinfo
Post by: hunted on 2005-04-28 20:16:03
Quote
Quote
Axalian: You can't make variables which survive from second to second.  Each screen refresh is independent of the past screen refreshs.  I think a common practice, though, is to use %time_elapsed_seconds% as a counter.  You can combine it with $mod() and other foobar math functions to get any count you need.  For instance, the following code counts from 0 to 9:

Code: [Select]
$mod(%time_elapsed_seconds%,10)

[a href="index.php?act=findpost&pid=293954"][{POST_SNAPBACK}][/a]


Thanks, but i need something that loops indefinetly (well, till the next track, because it'll reset the trackinfo) and it's already in such a method (the %time_elapsed_seconds method)... Any ideas?
[a href="index.php?act=findpost&pid=293956"][{POST_SNAPBACK}][/a]

there is no way to do loops independant, like the poster above said.  Why don't you tell us what youre trying to do, and maybe we can come up with ideas on how to do it.
Title: foo_uie_trackinfo
Post by: AxaliaN on 2005-04-28 20:21:16
I'm trying to make a Pong animation, with a score board that updates. The animation is done, but the counting is seemingly impossible
Title: foo_uie_trackinfo
Post by: AxaliaN on 2005-04-30 10:31:47
Quote
I'm trying to make a Pong animation, with a score board that updates. The animation is done, but the counting is seemingly impossible
[{POST_SNAPBACK}][/a] (http://index.php?act=findpost&pid=293965")


I decided to just drop the idea of a scoreboard and make it loop.

[a href="http://www.axalian.com/store/pong.txt]Pong code[/url]

You need to use courier new as your trackinfo font or the spacing will be killed.
Title: foo_uie_trackinfo
Post by: Zurman on 2005-04-30 13:44:02
Quote
Quote
I'm trying to make a Pong animation, with a score board that updates. The animation is done, but the counting is seemingly impossible
[{POST_SNAPBACK}][/a] (http://index.php?act=findpost&pid=293965")


I decided to just drop the idea of a scoreboard and make it loop.

[a href="http://www.axalian.com/store/pong.txt]Pong code[/url]

You need to use courier new as your trackinfo font or the spacing will be killed.
[a href="index.php?act=findpost&pid=294326"][{POST_SNAPBACK}][/a]

Interseting idea, though a little buggy (the '|' sometimes disappear)
You could maybe introduce some sort of randomness to change the diretion of the ball and also the score
Title: foo_uie_trackinfo
Post by: AxaliaN on 2005-04-30 15:19:14
Quote
Interseting idea, though a little buggy (the '|' sometimes disappear)
You could maybe introduce some sort of randomness to change the diretion of the ball and also the score
[a href="index.php?act=findpost&pid=294357"][{POST_SNAPBACK}][/a]


The | changes to white when it's 'hit'. Maybe that's the problem =) And I'm just learning foobar coding so those suggestions are great, but beyond my scope of knowledge
Title: foo_uie_trackinfo
Post by: purgalm on 2005-05-06 13:39:50
Is there any command to display file path?
Title: foo_uie_trackinfo
Post by: Silverbolt on 2005-05-06 16:05:10
Quote
Is there any command to display file path?[a href="index.php?act=findpost&pid=295646"][{POST_SNAPBACK}][/a]

%_path% or %_path_raw% should work. You could find this info in your titleformatting help (c:/Program Files/foobar2000/titleformat_help.html).
Title: foo_uie_trackinfo
Post by: Cr4wford on 2005-05-11 00:35:18
I have it set to display the filename and lyrics:

Code: [Select]
%_filename%$char(10)$char(10)

[$iflonger($replace($meta(lyrics),$char(13),),2000,
$cut($replace($meta(lyrics),$char(13),),500)'(...)',
$replace($meta(lyrics),$char(13),))$char(10)]


and it works beautifully. But is there a way to make it so that the lyrics/text can be selected (and then copied)?
Title: foo_uie_trackinfo
Post by: Squeller on 2005-05-11 07:42:41
Quote
and it works beautifully. But is there a way to make it so that the lyrics/text can be selected (and then copied)?

No. FEATURE REQUEST! This would be useful. Also if you could force the panel for doing line breaks.
Title: foo_uie_trackinfo
Post by: gfngfgf on 2005-05-11 17:17:43
Quote
No. FEATURE REQUEST! This would be useful. Also if you could force the panel for doing line breaks.
[a href="index.php?act=findpost&pid=296759"][{POST_SNAPBACK}][/a]

Not sure if this is what you mean, but putting "$char(10)" in your string will give you a line break.
Title: foo_uie_trackinfo
Post by: Storm on 2005-05-11 20:26:17
Quote
Quote
and it works beautifully. But is there a way to make it so that the lyrics/text can be selected (and then copied)?

No. FEATURE REQUEST! This would be useful. Also if you could force the panel for doing line breaks.
[a href="index.php?act=findpost&pid=296759"][{POST_SNAPBACK}][/a]


Or if word wrap is what you mean, that's already in there.
Title: foo_uie_trackinfo
Post by: Birk on 2005-05-14 17:38:29
Is somebody interrested in this code to show the current Lyrics in track info (those wich are created with lyricmake) ?
i think it's nice: (and hope you understand the german settings ;-)
Code: [Select]
//______________\\
//LyRiC cOdE v.0.2\\
//---------------------\\

//_____________________________________
//Einstellungen:
//--------------------------------------------------------
$puts(Modus,1)
$puts(TextFarbe,$rgb(100,255,0))
$puts(RestFarbe,$rgb(180,220,0))
$puts(RestZeichen,~)
$puts(Text2Farbe,$rgb(255,200,0))
$puts(Lyrictag,$if2($meta(Lyric),$meta(Lyrics)))


//_____________________________________
//Programm:
//-------------------------------------------------------
//Lade Zeiten in Sekunden
$puts(vor0sec,%_time_elapsed_seconds%)
$puts(vor1sec,$sub(%_time_elapsed_seconds%,1))
$puts(vor2sec,$sub(%_time_elapsed_seconds%,2))
$puts(vor3sec,$sub(%_time_elapsed_seconds%,3))
$puts(vor4sec,$sub(%_time_elapsed_seconds%,4))
$puts(vor5sec,$sub(%_time_elapsed_seconds%,5))
$puts(vor6sec,$sub(%_time_elapsed_seconds%,6))
$puts(in1sec,$add(%_time_elapsed_seconds%,1))
$puts(in2sec,$add(%_time_elapsed_seconds%,2))
$puts(in3sec,$add(%_time_elapsed_seconds%,3))
$puts(in4sec,$add(%_time_elapsed_seconds%,4))
$puts(in5sec,$add(%_time_elapsed_seconds%,5))
$puts(in6sec,$add(%_time_elapsed_seconds%,6))

//Lade Zeiten
$puts(vor0,'['$num($div($get(vor0sec),60),2):$num($mod($get(vor0sec),60),2))
$puts(vor1,'['$num($div($get(vor1sec),60),2):$num($mod($get(vor1sec),60),2))
$puts(vor2,'['$num($div($get(vor2sec),60),2):$num($mod($get(vor2sec),60),2))
$puts(vor3,'['$num($div($get(vor3sec),60),2):$num($mod($get(vor3sec),60),2))
$puts(vor4,'['$num($div($get(vor4sec),60),2):$num($mod($get(vor4sec),60),2))
$puts(vor5,'['$num($div($get(vor5sec),60),2):$num($mod($get(vor5sec),60),2))
$puts(vor6,'['$num($div($get(vor6sec),60),2):$num($mod($get(vor6sec),60),2))
$puts(in1,'['$num($div($get(in1sec),60),2):$num($mod($get(in1sec),60),2))
$puts(in2,'['$num($div($get(in2sec),60),2):$num($mod($get(in2sec),60),2))
$puts(in3,'['$num($div($get(in3sec),60),2):$num($mod($get(in3sec),60),2))
$puts(in4,'['$num($div($get(in4sec),60),2):$num($mod($get(in4sec),60),2))
$puts(in5,'['$num($div($get(in5sec),60),2):$num($mod($get(in5sec),60),2))
$puts(in6,'['$num($div($get(in6sec),60),2):$num($mod($get(in6sec),60),2))

//Suche und wähle Anfang des Textes
$puts(TextAnfang,$if3(
$strstr($get(Lyrictag),$get(vor0)),
$strstr($get(Lyrictag),$get(vor1)),
$strstr($get(Lyrictag),$get(vor2)),
$strstr($get(Lyrictag),$get(vor3)),
$strstr($get(Lyrictag),$get(vor4)),
$strstr($get(Lyrictag),$get(vor5)),
$strstr($get(Lyrictag),$get(vor6)),
kein Text))
$puts(Text2Anfang,$if3(
$strstr($get(Lyrictag),$get(in1)),
$strstr($get(Lyrictag),$get(in2)),
$strstr($get(Lyrictag),$get(in3)),
$strstr($get(Lyrictag),$get(in4)),
$strstr($get(Lyrictag),$get(in5)),
$strstr($get(Lyrictag),$get(in6)),
kein Text))

//Berechne verbleibende Sekunden
$puts(nochsec,
$if($strcmp($get(Text2Anfang),$strstr($get(Lyrictag),$get(in1))),1)
$if($strcmp($get(Text2Anfang),$strstr($get(Lyrictag),$get(in2))),2)
$if($strcmp($get(Text2Anfang),$strstr($get(Lyrictag),$get(in3))),3)
$if($strcmp($get(Text2Anfang),$strstr($get(Lyrictag),$get(in4))),4)
$if($strcmp($get(Text2Anfang),$strstr($get(Lyrictag),$get(in5))),5)
$if($strcmp($get(Text2Anfang),$strstr($get(Lyrictag),$get(in6))),6))

//Erstelle Rest
$puts(Rest,
$repeat($get(RestZeichen),$get(nochsec)))

//Berechne verstrichene Spielzeit
$puts(schonsec,
$if($strcmp($get(TextAnfang),$strstr($get(Lyrictag),$get(vor1))),1)
$if($strcmp($get(TextAnfang),$strstr($get(Lyrictag),$get(vor2))),2)
$if($strcmp($get(TextAnfang),$strstr($get(Lyrictag),$get(vor3))),3)
$if($strcmp($get(TextAnfang),$strstr($get(Lyrictag),$get(vor4))),4)
$if($strcmp($get(TextAnfang),$strstr($get(Lyrictag),$get(vor5))),5)
$if($strcmp($get(TextAnfang),$strstr($get(Lyrictag),$get(vor6))),6))

//Berechne gesamtsec
$puts(gesamtsec,$add($get(schonsec),$get(nochsec)))

//Erstelle Text
$puts(Textbeta,
$insert($get(Lyrictag),,$add($get(TextAnfang),8)))
$puts(Text2beta,
$insert($get(Lyrictag),,$add($get(Text2Anfang),8)))

//Suche Ende
$puts(Text,$left($get(Textbeta),$sub($strstr($get(Textbeta),$char(10)),1)))
$puts(Text2,$left($get(Text2beta),$sub($strstr($get(Text2beta),$char(10)),1)))

//Inhalt Prüfen
$if($strcmp($get(TextAnfang),kein Text),
$puts(Text,))
$if($strcmp($get(Text2Anfang),kein Text),
$puts(Text2,))

//Berechne Schnitt
$puts(Schnitt,$mul($div($len($get(text)),$get(gesamtsec)),$get(schonsec)))

//Erstelle SchnittText
$puts(SchnittText,$insert($get(Text),,$get(Schnitt)))

//Inhalt prüfen
$puts(SchnittText,
$ifgreater($get(schonsec),0,
$insert($get(SchnittText),,$strstr($get(SchnittText), )),
$get(SchnittText)))

//Ausgabe
$select($get(Modus),
$get(TextFarbe)$get(Text)$char(10)
$get(RestFarbe)$get(Rest)$char(10)
$get(Text2Farbe)$get(Text2)
,
$if($strcmp($get(SchnittText),),$get(RestFarbe)$get(Rest),
$get(TextFarbe)$get(SchnittText))
' '$get(Text2Farbe)$get(Text2)
)
Want more Features?
Title: foo_uie_trackinfo
Post by: wojtek on 2005-05-14 22:00:16
Quote
Not sure if this is what you mean, but putting "$char(10)" in your string will give you a line break.
[{POST_SNAPBACK}][/a] (http://index.php?act=findpost&pid=296869")


And what number do I need to use to get tab char? I've tried $char(09) [info from [a href="http://www.neurophys.wisc.edu/www/comp/docs/ascii.html]http://www.neurophys.wisc.edu/www/comp/docs/ascii.html[/url]] but it doesn't work
Title: foo_uie_trackinfo
Post by: karpath on 2005-05-15 16:23:31
Quote
Is somebody interrested in this code to show the current Lyrics in track info (those wich are created with lyricmake) ?
i think it's nice: (and hope you understand the german settings ;-)
Code: [Select]
//______________\\
//LyRiC cOdE v.0.2\\
//---------------------\\

//_____________________________________
//Einstellungen:
//--------------------------------------------------------
$puts(Modus,1)
$puts(TextFarbe,$rgb(100,255,0))
$puts(RestFarbe,$rgb(180,220,0))
$puts(RestZeichen,~)
$puts(Text2Farbe,$rgb(255,200,0))
$puts(Lyrictag,$if2($meta(Lyric),$meta(Lyrics)))


//_____________________________________
//Programm:
//-------------------------------------------------------
//Lade Zeiten in Sekunden
$puts(vor0sec,%_time_elapsed_seconds%)
$puts(vor1sec,$sub(%_time_elapsed_seconds%,1))
$puts(vor2sec,$sub(%_time_elapsed_seconds%,2))
$puts(vor3sec,$sub(%_time_elapsed_seconds%,3))
$puts(vor4sec,$sub(%_time_elapsed_seconds%,4))
$puts(vor5sec,$sub(%_time_elapsed_seconds%,5))
$puts(vor6sec,$sub(%_time_elapsed_seconds%,6))
$puts(in1sec,$add(%_time_elapsed_seconds%,1))
$puts(in2sec,$add(%_time_elapsed_seconds%,2))
$puts(in3sec,$add(%_time_elapsed_seconds%,3))
$puts(in4sec,$add(%_time_elapsed_seconds%,4))
$puts(in5sec,$add(%_time_elapsed_seconds%,5))
$puts(in6sec,$add(%_time_elapsed_seconds%,6))

//Lade Zeiten
$puts(vor0,'['$num($div($get(vor0sec),60),2):$num($mod($get(vor0sec),60),2))
$puts(vor1,'['$num($div($get(vor1sec),60),2):$num($mod($get(vor1sec),60),2))
$puts(vor2,'['$num($div($get(vor2sec),60),2):$num($mod($get(vor2sec),60),2))
$puts(vor3,'['$num($div($get(vor3sec),60),2):$num($mod($get(vor3sec),60),2))
$puts(vor4,'['$num($div($get(vor4sec),60),2):$num($mod($get(vor4sec),60),2))
$puts(vor5,'['$num($div($get(vor5sec),60),2):$num($mod($get(vor5sec),60),2))
$puts(vor6,'['$num($div($get(vor6sec),60),2):$num($mod($get(vor6sec),60),2))
$puts(in1,'['$num($div($get(in1sec),60),2):$num($mod($get(in1sec),60),2))
$puts(in2,'['$num($div($get(in2sec),60),2):$num($mod($get(in2sec),60),2))
$puts(in3,'['$num($div($get(in3sec),60),2):$num($mod($get(in3sec),60),2))
$puts(in4,'['$num($div($get(in4sec),60),2):$num($mod($get(in4sec),60),2))
$puts(in5,'['$num($div($get(in5sec),60),2):$num($mod($get(in5sec),60),2))
$puts(in6,'['$num($div($get(in6sec),60),2):$num($mod($get(in6sec),60),2))

//Suche und wähle Anfang des Textes
$puts(TextAnfang,$if3(
$strstr($get(Lyrictag),$get(vor0)),
$strstr($get(Lyrictag),$get(vor1)),
$strstr($get(Lyrictag),$get(vor2)),
$strstr($get(Lyrictag),$get(vor3)),
$strstr($get(Lyrictag),$get(vor4)),
$strstr($get(Lyrictag),$get(vor5)),
$strstr($get(Lyrictag),$get(vor6)),
kein Text))
$puts(Text2Anfang,$if3(
$strstr($get(Lyrictag),$get(in1)),
$strstr($get(Lyrictag),$get(in2)),
$strstr($get(Lyrictag),$get(in3)),
$strstr($get(Lyrictag),$get(in4)),
$strstr($get(Lyrictag),$get(in5)),
$strstr($get(Lyrictag),$get(in6)),
kein Text))

//Berechne verbleibende Sekunden
$puts(nochsec,
$if($strcmp($get(Text2Anfang),$strstr($get(Lyrictag),$get(in1))),1)
$if($strcmp($get(Text2Anfang),$strstr($get(Lyrictag),$get(in2))),2)
$if($strcmp($get(Text2Anfang),$strstr($get(Lyrictag),$get(in3))),3)
$if($strcmp($get(Text2Anfang),$strstr($get(Lyrictag),$get(in4))),4)
$if($strcmp($get(Text2Anfang),$strstr($get(Lyrictag),$get(in5))),5)
$if($strcmp($get(Text2Anfang),$strstr($get(Lyrictag),$get(in6))),6))

//Erstelle Rest
$puts(Rest,
$repeat($get(RestZeichen),$get(nochsec)))

//Berechne verstrichene Spielzeit
$puts(schonsec,
$if($strcmp($get(TextAnfang),$strstr($get(Lyrictag),$get(vor1))),1)
$if($strcmp($get(TextAnfang),$strstr($get(Lyrictag),$get(vor2))),2)
$if($strcmp($get(TextAnfang),$strstr($get(Lyrictag),$get(vor3))),3)
$if($strcmp($get(TextAnfang),$strstr($get(Lyrictag),$get(vor4))),4)
$if($strcmp($get(TextAnfang),$strstr($get(Lyrictag),$get(vor5))),5)
$if($strcmp($get(TextAnfang),$strstr($get(Lyrictag),$get(vor6))),6))

//Berechne gesamtsec
$puts(gesamtsec,$add($get(schonsec),$get(nochsec)))

//Erstelle Text
$puts(Textbeta,
$insert($get(Lyrictag),,$add($get(TextAnfang),8)))
$puts(Text2beta,
$insert($get(Lyrictag),,$add($get(Text2Anfang),8)))

//Suche Ende
$puts(Text,$left($get(Textbeta),$sub($strstr($get(Textbeta),$char(10)),1)))
$puts(Text2,$left($get(Text2beta),$sub($strstr($get(Text2beta),$char(10)),1)))

//Inhalt Prüfen
$if($strcmp($get(TextAnfang),kein Text),
$puts(Text,))
$if($strcmp($get(Text2Anfang),kein Text),
$puts(Text2,))

//Berechne Schnitt
$puts(Schnitt,$mul($div($len($get(text)),$get(gesamtsec)),$get(schonsec)))

//Erstelle SchnittText
$puts(SchnittText,$insert($get(Text),,$get(Schnitt)))

//Inhalt prüfen
$puts(SchnittText,
$ifgreater($get(schonsec),0,
$insert($get(SchnittText),,$strstr($get(SchnittText), )),
$get(SchnittText)))

//Ausgabe
$select($get(Modus),
$get(TextFarbe)$get(Text)$char(10)
$get(RestFarbe)$get(Rest)$char(10)
$get(Text2Farbe)$get(Text2)
,
$if($strcmp($get(SchnittText),),$get(RestFarbe)$get(Rest),
$get(TextFarbe)$get(SchnittText))
' '$get(Text2Farbe)$get(Text2)
)
Want more Features?
[a href=\"index.php?act=findpost&pid=297512\"][{POST_SNAPBACK}][/a]

don't know, perhaps english settings will help a little bit
Title: foo_uie_trackinfo
Post by: gfngfgf on 2005-05-17 23:52:12
Quote
And what number do I need to use to get tab char? I've tried $char(09) [info from http://www.neurophys.wisc.edu/www/comp/docs/ascii.html (http://www.neurophys.wisc.edu/www/comp/docs/ascii.html)] but it doesn't work
[a href="index.php?act=findpost&pid=297603"][{POST_SNAPBACK}][/a]


$char(9) will work in other places, but it doesn't work in the trackinfo panel, I think.  I remember $char(9) being mentioned as a feature request or something that's being worked on, but yeah, I don't think it's working in the current version.
Title: foo_uie_trackinfo
Post by: veryevilmike on 2005-05-19 18:18:59
I'm just starting to play with foo_pod and so far am rather impressed - well done Aero, Otto &co.

One question regarding the treatment of multidisc albums.  iTunes has a box for Disc 1 of 6, but when you save such info it doesn't appear in any tags, suggesting it is instead stored somewhere in a db on the disc.  The godfather tagging program has a tag called "partinset" and i've seen other people suggest a pair of tags DiscNumber and Disccount. 

I'd like foo_pod to transfer this information when it populates my ipod - is there a default tag that it looks for with this information in it?

Mike
Title: foo_uie_trackinfo
Post by: hunted on 2005-05-19 19:11:29
Quote
I'm just starting to play with foo_pod and so far am rather impressed - well done Aero, Otto &co.

One question regarding the treatment of multidisc albums.  iTunes has a box for Disc 1 of 6, but when you save such info it doesn't appear in any tags, suggesting it is instead stored somewhere in a db on the disc.  The godfather tagging program has a tag called "partinset" and i've seen other people suggest a pair of tags DiscNumber and Disccount. 

I'd like foo_pod to transfer this information when it populates my ipod - is there a default tag that it looks for with this information in it?

Mike
[{POST_SNAPBACK}][/a] (http://index.php?act=findpost&pid=298824")

I'm thinking you meant to post in the foo_pod [ [a href="http://www.hydrogenaudio.org/forums/index.php?showtopic=19156]http://www.hydrogenaudio.org/forums/index....showtopic=19156[/url] ] thread, not the foo_uie_trackinfo thread
Title: foo_uie_trackinfo
Post by: veryevilmike on 2005-05-20 09:20:53
Quote
I'm thinking you meant to post in the foo_pod [ http://www.hydrogenaudio.org/forums/index....showtopic=19156 (http://www.hydrogenaudio.org/forums/index.php?showtopic=19156) ] thread, not the foo_uie_trackinfo thread
[a href="index.php?act=findpost&pid=298841"][{POST_SNAPBACK}][/a]


you are quite correct...it was about 2AM perth time and the brain wasn't quite up to its usual standards.
Title: foo_uie_trackinfo
Post by: Neil K on 2005-05-21 14:31:07
My very simple, mostly original info. I got the progressbar from somewhere in this thread, forget where.

Code: [Select]
$if(%_trackinfo_notrack%,No track playing,
$if(%_trackinfo_nowplaying%,
$char(1)C$transition(-S O N G,000000,00AA00)     $transition(I N F O-,00AA00,000000)
,$char(1)C$transition(-S O N G,000000,0000AA)     $transition(I N F O-,0000AA,000000))
$char(10)Artist:$char(10)$char(1)C%artist%$char(10)$char(10)
Title:$char(10)$char(1)C$rgb(150,150,150)$if(%_isplaying%,$if(%_ispaused%,■   , ► ),)$rgb(0,0,0)%title%$char(10)$char(10)
Album:$char(10)$char(1)C%album% $rgb(150,150,150)'['%date%']'$char(10)
)

// BAR
$if(%_trackinfo_nowplaying%,
$char(10)
$char(1)C$puts(len,$muldiv(%_time_elapsed_seconds%,18,%_time_total_seconds%))
$transition($repeat(█,$get(len)),$rgb(150,150,150),$rgb(115,150,175))
$repeat(█,$sub(18,$get(len)))
$char(10),)
//TIME
$char(1)R$rgb(115,150,175)[%_time_elapsed% / ][%_length%]
//ENCODING
$char(10)$char(1)R$rgb(115,150,175)%__codec% @ %__bitrate% kb/s


(http://www.3dmm.net/image/foobar_trackinfo.png)
- Play sign changes when song is paused
- 'Song info' changes color for different modes
Title: foo_uie_trackinfo
Post by: Squeller on 2005-05-21 17:08:56
Quote
Quote
No. FEATURE REQUEST! This would be useful. Also if you could force the panel for doing line breaks.
[a href="index.php?act=findpost&pid=296759"][{POST_SNAPBACK}][/a]

Not sure if this is what you mean, but putting "$char(10)" in your string will give you a line break.
[a href="index.php?act=findpost&pid=296869"][{POST_SNAPBACK}][/a]

Well there'll probably be some string cutting trouble if you have (like me) long file names without spaces. This would screw up my code more, and it is quite messy anyway...
Title: foo_uie_trackinfo
Post by: fabiospark on 2005-05-22 21:28:01
I just found out that after reaching the end of the last track of a playlist the trackinfo panel still shows that track as if it's playing. Is it like that just for me or else?
Title: foo_uie_trackinfo
Post by: Neil K on 2005-05-22 21:33:04
Very bored today so been adding more stuff to my trackinfo, one day I'll make the coding nicer with color codes etc. Anyway it now uses the play counter plugin and displays the last time played and total plays in a very minamilist way. There's lots of stuff I have taken from this thread, it is by no means original.

(http://www.3dmm.net/image/foobar_trackinfo2.png)

Code: [Select]
$if(%_trackinfo_notrack%,No track playing,
$if(%_trackinfo_nowplaying%,
$char(1)C$transition(-S O N G,000000,00AA00)    $transition(I N F O-,00AA00,000000)
,$char(1)C$transition(-S O N G,000000,0000AA)    $transition(I N F O-,0000AA,000000))
$char(10)Artist:$char(10)$char(1)C%artist%$char(10)$char(10)
Title:$char(10)$char(1)C$rgb(150,150,150)$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% $rgb(150,150,150)[ '['%date%']']$char(10),)
$if($or(%origartist%,%origalbum%,%origyear%),
$rgb(116,175,170)Original:$char(10)
$rgb(155,180,197)$if(%origartist%,%origartist$char(10),)$rgb(155,180,197)
$if2(%origalbum%,)
$rgb(150,150,150)$if(,,)[ '['%origyear%']']$char(10),)

// BAR
$if(%_trackinfo_nowplaying%,
$char(10)
$char(1)C$puts(len,$muldiv(%_time_elapsed_seconds%,25,%_time_total_seconds%))
$transition($repeat(█,$get(len)),$rgb(150,150,150),$rgb(115,150,175))
$repeat(█,$sub(25,$get(len)))
$char(10),)

//TIME
$char(1)R$rgb(115,150,175)[%_time_elapsed% / ][%_length%]

//PLAY COUNTER
$char(10)
$if(%play_counter%,$char(1)R$rgb(115,150,175)♫: $rgb(0,0,0)%play_counter%,)

////  Play date needs to be in DDMMYY format
$if(%last_played%,
$if($get(p1), 9a9a9aon,$char(10)$char(1)R$rgb(115,150,175)◙)

$puts(pday,$left(%last_played%,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(%last_played%,3,4),
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$rgb(115,150,175)$get(fsize)

//ENCODING
$char(1)R $rgb(115,150,175)$if($stricmp(%__codec%,Windows Media Audio V7/V8),WMA,%__codec%) @ %__bitrate% kb/s

//SCROLLING PATH
$if(%_trackinfo_nowplaying%,
$char(10)$char(10)
$rgb(180,205,220)$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)
),))
Title: foo_uie_trackinfo
Post by: fabiospark on 2005-05-24 22:49:30
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................
Title: foo_uie_trackinfo
Post by: kockroach on 2005-05-31 00:40:15
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++.
Title: foo_uie_trackinfo
Post by: hunted on 2005-05-31 05:42:53
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] (http://index.php?act=findpost&pid=301954")

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.
Title: foo_uie_trackinfo
Post by: kockroach on 2005-05-31 06:01:45
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.
Title: foo_uie_trackinfo
Post by: necropimp on 2005-05-31 17:44:02
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

(http://jim7.home.insightbb.com/foobar/lame.png)

(http://jim7.home.insightbb.com/foobar/mpc.png)

(http://jim7.home.insightbb.com/foobar/wavpack.png)

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)
Title: foo_uie_trackinfo
Post by: Neil K on 2005-06-01 17:31:56
Cleared mine up, ready for public consumption if anyone wants it (which they probably don't).
Now playing mode:
(http://coldfire.fuglygitch.com/uploads/trackinfo1.jpg)
Follow cursor mode:
(http://coldfire.fuglygitch.com/uploads/trackinfo2.jpg)

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)
),))
Title: foo_uie_trackinfo
Post by: tgoose on 2005-06-05 15:28:09
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 
Title: foo_uie_trackinfo
Post by: Bachi-Bouzouk on 2005-06-05 22:06:56
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] (http://index.php?act=findpost&pid=303701")

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/ (http://eolindel.free.fr/foobar/)
Title: foo_uie_trackinfo
Post by: GURT on 2005-06-06 03:21:13
Quote
redid my trackinfo... not as much going on with it... no track progress or any dynamic info

which font is that?
Title: foo_uie_trackinfo
Post by: synth7 on 2005-06-06 03:28:39
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
Title: foo_uie_trackinfo
Post by: necropimp on 2005-06-06 07:34:05
arial unicode 7pt
Title: foo_uie_trackinfo
Post by: Lycox on 2005-06-06 08:36:16
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)))
))

(http://img118.echo.cx/img118/3070/foobarscreenshot8tg.jpg)
Title: foo_uie_trackinfo
Post by: giri_giri on 2005-06-06 11:01:41
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
Title: foo_uie_trackinfo
Post by: phineas on 2005-06-06 21:14:10
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

(http://img243.echo.cx/img243/191/trackinfo1gd.png)

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.)
Title: foo_uie_trackinfo
Post by: synth7 on 2005-06-06 23:30:18
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

(http://img243.echo.cx/img243/191/trackinfo1gd.png)

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?
Title: foo_uie_trackinfo
Post by: ssamadhi97 on 2005-06-06 23:54:34
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
Title: foo_uie_trackinfo
Post by: amonrei on 2005-06-07 08:25:50
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.
Title: foo_uie_trackinfo
Post by: Cosmo on 2005-06-07 08:37:00
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] (http://index.php?act=findpost&pid=304227")
[a href="http://pelit.koillismaa.fi/plugins/]http://pelit.koillismaa.fi/plugins/[/url]
Title: foo_uie_trackinfo
Post by: amonrei on 2005-06-07 08:39:47
Thanks.
Title: foo_uie_trackinfo
Post by: giri_giri on 2005-06-08 10:42:04
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
Title: foo_uie_trackinfo
Post by: Neil K on 2005-06-08 13:24:23
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.. 
Title: foo_uie_trackinfo
Post by: synth7 on 2005-06-08 22:30:53
I rewrote my whole code, and added compatibility for streams

(http://img122.echo.cx/img122/6978/trackinfo1uq.th.png) (http://img122.echo.cx/my.php?image=trackinfo1uq.png)
Title: foo_uie_trackinfo
Post by: Neil K on 2005-06-08 22:35:39
Wow, how do you do the stream info, that looks coool
Title: foo_uie_trackinfo
Post by: Storm on 2005-06-09 01:54:45
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.
Title: foo_uie_trackinfo
Post by: synth7 on 2005-06-09 02:04:49
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.
Title: foo_uie_trackinfo
Post by: Neil K on 2005-06-09 18:25:37
Thats a clever idea, I might try that out, thanks.
Title: foo_uie_trackinfo
Post by: Eisprinz on 2005-06-11 22:51:39
Just found this plugin today, great work! And thanks to all you folks who posted their format strings for this. I wouldn't have had the patience to figure it all out on my own

And as synth7 asked: Is the plugin still developed? If so, there's one feature I'm missing: Double-clicking the Track Info panel should result in some, preferably configurable, action. I was thinking of the File Info box popping up. Imho this would make for intuitive usage, since the info shown is about a file, so a double-click should allow you to modify it, right?

Edit: Oops . The first post plainly states that doubleclicking actually does result in an action. It switches between "info on cursor" and "info on current playing". So I'll refine my request:
1. The double/middle-click should be configurable.
2. The info mode switch should be made available in the track info prefs, too.
Title: foo_uie_trackinfo
Post by: Richman789 on 2005-06-21 14:39:17
Hiya all,

iam new to foobar and would like to know how to get this bar to display, i have got ColumsUI installed and configured but i cant figure out how to work this plugin.

Rich
Title: foo_uie_trackinfo
Post by: gob on 2005-06-21 23:32:04
Quote
Hiya all,

iam new to foobar and would like to know how to get this bar to display, i have got ColumsUI installed and configured but i cant figure out how to work this plugin.

Rich
[a href="index.php?act=findpost&pid=307811"][{POST_SNAPBACK}][/a]


if you right click on the tool bars, or the panel, you should beable to select panels \ track info.
Title: foo_uie_trackinfo
Post by: arT2 on 2005-06-29 18:31:24
hello all,
this time i'm sure it's related to the topic 

i have in every album folder a "artistwebsite.url" file. it would be very nice if i can load this link into the track info panel.

example:
Artist: jack
Track: song
Link: http://artistwebsite.com (http://artistwebsite.com)

and if i could click this link it would be just perfect


greets
Title: foo_uie_trackinfo
Post by: Storm on 2005-06-30 02:10:31
Quote
hello all,
this time i'm sure it's related to the topic 

i have in every album folder a "artistwebsite.url" file. it would be very nice if i can load this link into the track info panel.

example:
Artist: jack
Track: song
Link: http://artistwebsite.com (http://artistwebsite.com)

and if i could click this link it would be just perfect


greets
[a href="index.php?act=findpost&pid=309838"][{POST_SNAPBACK}][/a]


You can access the website another way, use foo_run.

I'm using this to search for album art: "http://www.slothradio.com/covers/?adv=&artist=%artist%&album=%album%"

You could just put in "%url" or something, but you'd of course have to tag all your MP3s with the address in the corresponding artistwebsite.url file...

Anyways, I'd like to see this too, but I think it's being discussed in another thread.
Title: foo_uie_trackinfo
Post by: Apesbrain on 2005-07-03 15:07:56
Can someone tell me the format to display:

Track Number: X of Y

Where Y is the total # of tracks on the album?

Thanks.
Title: foo_uie_trackinfo
Post by: Smitty Jones on 2005-07-03 22:04:21
set up your tracknumbers as nn/NN (it's an option in the freedb component).  i just selected the library, and clicked "get tags (multiple albums)", then deselected all fields except the tracknumber, and clicked "tag files" as fast as i could.

then:
'Track Number: '$left(%tracknumber%,2)' of '$right(%tracknumber%,2)

you could include a few failsafes in there, like
$ifgreater($len(%tracknumber%),4,[that stuff above],%tracknumber%)
or whatever...

that's about the only way it's getting done.
Title: foo_uie_trackinfo
Post by: Apesbrain on 2005-07-04 15:01:22
Thanks for your reply.  I was hoping not to have to retag my library, but that may be the only way.

Since I typically play one album at a time, I had been trying to get it to work by counting and displaying the total number of tracks in the playlist.  Something like this:

Track: $num(%tracknumber%,) of $num(%_playlist_total%,)

Still haven't gotten it to work, but do you think this is a workable idea?
Title: foo_uie_trackinfo
Post by: Smitty Jones on 2005-07-05 07:04:01
i don't see why not, this seemed to work for me in a brief testing:
'Track: '$num(%tracknumber%,)' of '$num(%_playlist_total%,)

of course, it said things like 1 of 7928, but eh.  it would work if you used the "autosend to playlist" or whatever with the album list (i don't know how playlist tree works, but i assume the same type of thing...)
Title: foo_uie_trackinfo
Post by: MisterP on 2005-07-09 14:46:31
Quote
i don't see why not, this seemed to work for me in a brief testing:
'Track: '$num(%tracknumber%,)' of '$num(%_playlist_total%,)

of course, it said things like 1 of 7928, but eh.  it would work if you used the "autosend to playlist" or whatever with the album list (i don't know how playlist tree works, but i assume the same type of thing...)
[a href="index.php?act=findpost&pid=311048"][{POST_SNAPBACK}][/a]



I just tried this, and I got "0 of 0". Yes, I do have some entries in the playlist, and I've selected one, and the panel is in follow cursor mode.

I've got foo_uie_albumart v0.1.1, foo_ui_columns v0.1.2, and foobar2000 0.8.3. Any ideas why it doesn't work?
Title: foo_uie_trackinfo
Post by: Phi on 2005-07-10 01:26:42
%_playlist_total% isn't available in the track info panel.
Title: foo_uie_trackinfo
Post by: MisterP on 2005-07-10 01:51:33
Quote
%_playlist_total% isn't available in the track info panel.
That's what I thought.

Quote
i don't see why not, this seemed to work for me in a brief testing:
Smitty - send us your .dll file - you've got a special one there 
Title: foo_uie_trackinfo
Post by: Smitty Jones on 2005-07-10 07:08:02
ah, i see, i was actually using the beta, so i didn't have a trackinfo, and just tested in the playlist itself
Title: foo_uie_trackinfo
Post by: watwuldusay7 on 2005-07-10 23:15:54
i use this and have changed colors and all that for my foobar... i just have one last problem... how can i make it so that the track info always displays the info of the currently playing song and not the song that i may have selected. i thought that i could fix it by unchecking "follow cursor" mode but that didn't work, any advice???
Title: foo_uie_trackinfo
Post by: Duble0Syx on 2005-07-11 02:51:35
Quote
i use this and have changed colors and all that for my foobar... i just have one last problem... how can i make it so that the track info always displays the info of the currently playing song and not the song that i may have selected. i thought that i could fix it by unchecking "follow cursor" mode but that didn't work, any advice???
[a href="index.php?act=findpost&pid=312362"][{POST_SNAPBACK}][/a]

Middle-Click on the info window.  I believe that toggles follow cursor & just the current track.
Title: foo_uie_trackinfo
Post by: watwuldusay7 on 2005-07-11 02:57:53
Quote
Quote
i use this and have changed colors and all that for my foobar... i just have one last problem... how can i make it so that the track info always displays the info of the currently playing song and not the song that i may have selected. i thought that i could fix it by unchecking "follow cursor" mode but that didn't work, any advice???
[a href="index.php?act=findpost&pid=312362"][{POST_SNAPBACK}][/a]

Middle-Click on the info window.  I believe that toggles follow cursor & just the current track.
[a href="index.php?act=findpost&pid=312427"][{POST_SNAPBACK}][/a]


that did the trick... thanks a lot man... so simple 
Title: foo_uie_trackinfo
Post by: QguAr on 2005-07-22 00:35:36
Hello all.
This is my first post, in the forum and my first config to trackinfo.
Modification 7syntch code + partial code from members.
Sory my bad englisch.
Greetings from Poland.

[a href=\"http://img269.imageshack.us/my.php?image=trackinfopanel0ib.jpg\" target=\"_blank\"],14)),
$puts(last_played_is_valid,1))
$if($get(last_played_is_valid),
$if(%last_played%,
$get(white)
$get(last_played_year)-
$get(last_played_month)-
$get(last_played_day)),
$get(tag_missing)brak danych)
$char(10)

//last play time
$get(head)O godz:
$if($and($strcmp(
$strstr(%last_played%,-),5),
$strcmp(
$strstr(%last_played%,,14)),
$puts(last_played_is_valid,1))
$if($get(last_played_is_valid),
$if(%last_played%,
$get(white)
$get(last_played_hour):
$get(last_played_min):
$get(last_played_sec)),
$get(tag_missing)brak danych)
$char(10)

//Pasek ocena
$char(1)C
$transition(
---------
,
$get(trans_back),
$get(trans_frnt))
$get(white)Ocena
$transition(
---------,
$get(trans_frnt),
$get(trans_back))
$char(10)
//$char(10)

//statistic output
$if(%_filename_ext%,
$if(%rating%,$get(red)
$repeat($get(rating_symbol) ,%rating%)
$get(rating_color_2)
$repeat(
$get(rating_symbol) ,
$sub(5,%rating%)) ,
$get(tag_missing)
$repeat(
$get(rating_symbol) ,5) )
)$char(10)

//Pasek postep
$char(1)C
$transition(
---------
,
$get(trans_back),
$get(trans_frnt))
$get(white)
Postęp
$transition(
---------
,
$get(trans_frnt),
$get(trans_back))
$char(10)

//Licnik procentow
$get(head)Odegrano:
$get(bright)$muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%)'%'
$char(10)

//pasek postepu
$progress2(%_time_elapsed_seconds%,%_time_total_seconds%,
$get(proglength),$get(progfore)
$get(progchar),
$get(progback)
$get(progchar))
$char(10)

//czas
$get(head)Czas: $get(white)$get(leng)
Title: foo_uie_trackinfo
Post by: watwuldusay7 on 2005-08-01 23:46:39
alright... here goes nothing...

i download concerts off the internet and save them on my HDDs...
i decided one day to go through and tag all of the concerts that were FLAC encoded
i added things like
TAPER- who taped the show
SOURCE- microphone config when it was recorded
PERSONNEL- band members playing in the selected track
GUESTS- if there was a guest for the selected track

and i edited my track info panel to display this information and everything displays like i would expect

now i just want to format it a little bit and i cant seem to figure it out... i think i need to change the way i tagged the files but im not sure...

there are usually five band members... right now i have them in a list separated my commas in the PERSONNEL field.... how can i get them to display in my track info panel as a list, up and down, of the members... usuing one line per member and centering them

also... and this is very similar

i want to do the same for when there are more than one guest for the song... how should i set up the track info panel and how should i set up the files that are tagged to make this possible...

heres my current track info panel code...
any help would be appreciated!!!!
JAKE

Code: [Select]
8CB4D2Mode: %_trackinfo_mode%$char(10)$if(%_trackinfo_notrack%,No track,
$char(1)C2222B2Song Info$char(10)
8CB4D2Title: 2222B2%title%$char(10)
8CB4D2Artist: 0B86B8%artist%$char(10)
8CB4D2Album: 0B86B8%album%$char(10)
8CB4D2Date: 0B86B8%date%$char(10)
8CB4D2Venue: 0B86B8%venue%$char(10)
8CB4D2Personnel: 0B86B8%personnel%$char(10)
8CB4D2Guests: 0B86B8%guests%)$char(10)
$char(1)C2222B2Statistics$char(10)
8CB4D2This song has been played 0B86B8%play_counter% 8CB4D2times.$char(10)
8CB4D2Last played: 0B86B8%last_played% $char(10)
$char(1)C2222B2Tech Info$char(10)
8CB4D2Taper: 0B86B8%taper%$char(10)
8CB4D2Source: 0B86B8%source%$char(10)
8CB4D2Codec: 0B86B8%__codec% $char(10)
8CB4D2Bitrate: 0B86B8%__bitrate% Kbit/s$char(10)
8CB4D2Samplerate: 0B86B8%__samplerate% Hz$char(10)
8CB4D2Channels: 0B86B8$if(%__channels%,$ifgreater(%__channels%,2,%__channels%ch,$ifgreater(%__channels%,1,' 'Stereo,''Mono)),)$char(10)
8CB4D2Time: 0B86B8%_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(184,134,11))
$puts(progress_color2,$rgb(178,34,34))
)


// 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)
Title: foo_uie_trackinfo
Post by: watwuldusay7 on 2005-08-02 00:08:55
alright... i figured something out... the $meta(xxxx) function!!!! HOW WONDERFUL!!!
now i got it working... or so one would think! the problem is that that second line comes up a different color from the first!!! it changes from the color or the original line to the color of the followiong line which just so happens to be a different color... now would anyone be able to help me with this problem?
thanks again
JAKE

edit--- i realize now why it went to that color... it was the color i set as the default text color... is there any way to work around the default text color when it dsiplays multiple lines... also... at the end of each line a "" is displayed... how do i get rid of that?

[span style='font-size:8pt;line-height:100%']moderation: removed quote of directly preceding post[/span]
Title: foo_uie_trackinfo
Post by: metal_termite on 2005-09-06 18:26:13
Would the author of this plugin consider updating it to add the option of a vertical scroll bar?

I can use my mouse wheel to scroll up and down the track info but it's always quite choppy moving. and if the comment tag is quite large it really slows down the scrolling and wont even go all the way down.
Title: foo_uie_trackinfo
Post by: vir on 2005-09-07 17:07:37
I've wrote the following code for tracknumber today:

$if(%lasttrack%,$puts(ntracks,$num(%tracknumber%,)),
$if($strcmp($num(%tracknumber%,),$num(%_playlist_number%,)),$puts(ntracks,$num(%_playlist_total%,)),
$ifgreater($strstr(%tracknumber%,/),0,$puts(ntracks,$num($substr(%tracknumber%,$add($strstr(%tracknumber%,/),1),$len(%tracknumber%)),)),)
)
)

Tracknumber: $num(%tracknumber%,)[ of $get(ntracks)]$char(10)
Title: foo_uie_trackinfo
Post by: JunkieXL on 2005-09-11 17:39:30
Here's the track info I came up with after searching around and doing some minor mods to what others have posted in this thread.  Thanks to those that had a piece in helping me set this up.

Oh and if anyone could suggest a more neon like blue for my text I would really appreciate it.  I was messing around with the blue spectrum for a while and couldn't get it just how I wanted. Thx

Code: [Select]
// show artist? (1 = show, 0 = don't show)
$puts(arts,1)

// show album?
$puts(albs,1)

// show title?
$puts(tils,1)

// info heading color
$puts(head,$rgb(139,139,139))

// info color
$puts(info,$rgb(100,20,250))

// info annotation color (e.g. kbps is the annotation)
$puts(anno,$rgb(100,20,250))

// progress bar divider color
$puts(div,$rgb(139,139,139))

// progress bar divider width (0 yeilds no divider)
$puts(divw,50)

// progress bar divider character (blank yeilds no divider)
$puts(divc,-)

// progress bar played portion color
$puts(prog1,$rgb,(100,20,250))

// progress bar unplayed portion color
$puts(prog2,$rgb(163,163,163))

// progress bar width
$puts(progw,60)

// progress bar character
$puts(progc,|)

$if(%_trackinfo_mode%,$get(head)Mode: $get(info)%_trackinfo_mode%$char(10),)
$if(%_trackinfo_notrack%,$char(10)$char(10)$char(10)$char(10)$char(10),
$if($strcmp(1,$get(arts)),$if(%artist%,$get(head)Artist: $get(info)%artist%$char(10),),)
$if($strcmp(1,$get(tils)),$if(%title%,$get(head)Title: $get(info)%title%$char(10),),)
$if($strcmp(1,$get(albs)),$if(%album%,$get(head)Album: $get(info)%album%$char(10),),)
$if(%date%,$get(head)Year: $get(info)%date%$char(10),)
$if(%genre%,$get(head)Genre: $get(info)%genre%$char(10),)
$get(head)Length: $get(info)$if(%_isplaying%,%_time_elapsed%$get(anno)$if(%_length%,/%_length%,),%_length%)$char(10)
$if(%__codec%,$get(head)Codec: $get(info)%__codec%$char(10),)
$get(head)Bitrate: $get(info)
$if2(%__bitrate_dynamic%,%__bitrate%) $get(anno)Kbps $if($stricmp(%__codec%,mp3),$if($stricmp(%__extrainfo%,vbr),VBR,CBR))$char(10)
$if(%__lame_profile%,$get(head)Preset: $get(info)%__lame_version% %__lame_profile% $char(10),)
$if(%__mpc_profile%,$get(head)MPC Profile: $get(info)%__mpc_profile%$char(10),)
$get(head)Compression: $get(info)$muldiv(%__bitrate%,100,1411)$get(anno)'%'$char(10)
$get(head)Channels: $get(info)$caps($if($stricmp($codec(),MP3),%__mp3_stereo_mode%,
$if(%__channels%,$ifgreater(%__channels%,1,Stereo,Mono),'?')))$char(10)
$if(%__bitspersample%,$get(head)Bitdepth: $get(info)%__bitspersample%$char(10),)
$if(%__samplerate%,$get(head)Samplerate: $get(info)%__samplerate% $get(anno)Hz$char(10),)
$if(%_filesize%,$get(head)Filesize: $get(info)
$div(%_filesize%,1048576).$left($num($muldiv($mod(%_filesize%,1048576),100,1048576),2),2) $get(anno)'MB'$char(10),)
$char(1)C$get(div)$repeat($get(divc),$get(divw))$char(10)
$if(%_length_seconds%,$char(1)C$get(head)Track Progress $get(info)$muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%)$get(anno)'%'$char(10)
$char(1)C$progress2(%_time_elapsed_seconds%, %_time_total_seconds%,$get(progw),$get(prog1)$get(progc),$get(prog2)$get(progc)),
$char(1)C$get(head)streaming...))
Title: foo_uie_trackinfo
Post by: nakko on 2005-09-12 06:23:09
Quote
Oh and if anyone could suggest a more neon like blue for my text I would really appreciate it.  I was messing around with the blue spectrum for a while and couldn't get it just how I wanted. Thx


Getting the colours to have a more neon look requires playing with the other surounding values.  Try messing with the background to create more contrast between... You know high contrast combinations (black/white; yellow/blue; purple/orange; red/blue; etc..)  Also if you bold up the fonts that'll help.


here is my quick test...
(http://img400.imageshack.us/img400/6435/neontest4jl.th.jpg) (http://img400.imageshack.us/img400/6435/neontest4jl.jpg)

the string:
Quote
$char(1)C$if(%_trackinfo_notrack%,No track,
6800f4%title%$char(10)$char(1)C
abf400%artist%$char(10)$char(1)C
00ff80%album%$char(10)$char(1)C
00ffff%date%)$char(10)$char(1)C
f4009f%genre%$char(10)$char(1)C
0062e6%_time_elapsed% / %_time_total%$char(10)$char(1)C

$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)
Title: foo_uie_trackinfo
Post by: spikeh on 2005-10-10 20:27:23
Quote
Quote
Anyone have a cool format string to post?
[a href="index.php?act=findpost&pid=253611"][{POST_SNAPBACK}][/a]


I don't know if it's cool, but anyway here it is:
Code: [Select]
$char(1) Mode: %_trackinfo_mode%$char(10)$char(10)$if(%_trackinfo_notrack%,No track,
------------------------------------------------------------------------------------------$char(10)
$char(1)CAbout the song:$char(10)
Artist: %artist%$char(10)
Title: %title%  ->%_length%<-$char(10)
Album: $if3(%album%,still unknown))$char(10)
Release date: $if3(%date%,not available yet)$char(10)
Comments: $if3(%comment%, no comments available)$char(10)
------------------------------------------------------------------------------------------$char(10)
$char(1)CTechnical stuff:$char(10)
$char(1)CCodec: %__codec%                                Bitrate: %__bitrate% Kbit/s$char(10)
Track Gain: $if3(%__replaygain_track_gain%, RG not applied)$char(10)
Album Gain: $if3(%__replaygain_album_gain%, RG not applied)$char(10)
------------------------------------------------------------------------------------------$char(10)
$char(1)CStatistics:$char(10)
This song was played %play_counter% times so far. $char(10)
Last played: %play_date% at %play_time%$char(10)
My rating: $if3(%rating% stars, not rated)


screenshot:

(http://img7.exs.cx/img7/2868/foobar_track_info_conf.png)
[a href="index.php?act=findpost&pid=253639"][{POST_SNAPBACK}][/a]


What font are you using there? Thanks.
Title: foo_uie_trackinfo
Post by: SoulMan on 2005-10-14 14:31:17
Hello,

There is a way to get, into the track info panel, values calculated into the column ui global tab?
Title: foo_uie_trackinfo
Post by: gfngfgf on 2005-10-15 03:42:38
Quote
Hello,

There is a way to get, into the track info panel, values calculated into the column ui global tab?
[a href="index.php?act=findpost&pid=334333"][{POST_SNAPBACK}][/a]

Not currently, but it has been requested.
Title: foo_uie_trackinfo
Post by: SoulMan on 2005-10-15 11:47:01
Ok, thank you.
Title: foo_uie_trackinfo
Post by: jackassbikeco on 2005-10-27 08:45:37
I have the newest version of foobar, just installed it 2 days ago. I can't seem to get any of the toolbars or panels to work. I went to the links that were given in earlier ?'s on how to enable them. The tutorial shows stuff that I am not seeing in the newest version. I do have the newest column ui installed too. Is there some way i can get this to work? Is there compatability issues with the newest version of foobar?

THnanks,
Josh
Title: foo_uie_trackinfo
Post by: butmunch on 2005-10-27 14:24:18
Quote
I have the newest version of foobar, just installed it 2 days ago. I can't seem to get any of the toolbars or panels to work. I went to the links that were given in earlier ?'s on how to enable them. The tutorial shows stuff that I am not seeing in the newest version. I do have the newest column ui installed too. Is there some way i can get this to work? Is there compatability issues with the newest version of foobar?

THnanks,
Josh
[a href="index.php?act=findpost&pid=337565"][{POST_SNAPBACK}][/a]


Compatibility(ish) issue. panels for foobar 0.8 won't work on 0.9. Only panels made with the .9 sdk work in .9, with the sdk not currently available (unless I live under a rock) the num,ber of panels is limited, though there are some out there. Just make sure you have the right ones.
Title: foo_uie_trackinfo
Post by: jackassbikeco on 2005-10-27 15:04:55
ok, i figured out the compatability thing,  so it is working. my next question is how do i make the spectrum analyzer taller to match the heigh of the track info next to it.
Title: foo_uie_trackinfo
Post by: Storm on 2005-10-28 13:22:25
What, you made a 0.8 plugin work in 0.9?
Title: foo_uie_trackinfo
Post by: foosion on 2005-10-28 14:20:09
Quote
What, you made a 0.8 plugin work in 0.9?[a href="index.php?act=findpost&pid=337836"][{POST_SNAPBACK}][/a]

I'm not sure why you even consider the idea of this being possible.

Quote
Compatibility with previous versions

Components made for v0.8.3 and older will no longer load.[a href="index.php?act=findpost&pid=323318"][{POST_SNAPBACK}][/a]
Title: foo_uie_trackinfo
Post by: fabiospark on 2005-10-28 18:06:38
Isn't there a way to toggle from now playing to follow cursor with a shortcut or else?
Title: foo_uie_trackinfo
Post by: Phi on 2005-10-29 10:44:14
No.
Title: foo_uie_trackinfo
Post by: cwsiggy on 2005-10-29 19:17:49
How do I get the statistics to work? It shows up of course since I pasted the formatting string that someone shared here, but it just puts "?" into the fields. Do I need another extension. I am not using database yet or have loaded anything into it yet as I haven't finished ripping all my music and it is moving around alot still. I have a feeling this is the problem.

thanks.
Title: foo_uie_trackinfo
Post by: Phi on 2005-10-30 03:00:54
You need foo_playcount (http://pelit.koillismaa.fi/plugins/tagging.php#125) for that.
Title: foo_uie_trackinfo
Post by: cwsiggy on 2005-10-30 17:44:52
Quote
You need foo_playcount (http://pelit.koillismaa.fi/plugins/tagging.php#125) for that.
[a href="index.php?act=findpost&pid=338193"][{POST_SNAPBACK}][/a]



Many thanks!!
Title: foo_uie_trackinfo
Post by: kockroach on 2005-11-05 16:09:59
Phi,

First, I want to thank you for this awesome plugin!

I wanted to find out if you enabled the %_system_XX% fields as mentioned in post #212 (http://www.hydrogenaudio.org/forums/index.php?showtopic=29363&view=findpost&p=272067).

Also, I notice that the newest version is 0.1.1.  In my components listing in fb2k, it says 0.1, even though I installed what is downloaded from the 0.1.1 link.  Just wondering if it is not set to display the full version number or not.

Thanks again for the plugin!
Title: foo_uie_trackinfo
Post by: kockroach on 2005-11-06 05:06:36
Here's my new trackinfo panel.  It took me a little while to get things exactly the way I wanted.  The "Play Info" section will hide itself if the play_count tags are not there (or if you don't use the plugin), but it will show once the tag is created.  Also, if you notice, the time is converted from 24-hour format over to 12-hour, and it also has AM and PM.  I tested everything, so it should work without a problem.

(http://img103.imageshack.us/img103/2848/myfb2ktrackinfo6ay.th.jpg) (http://img103.imageshack.us/my.php?image=myfb2ktrackinfo6ay.jpg)

Here is the code....enjoy!
Code: [Select]
// Original code by necropimp, modified by AstreaEdge, final by KockRoach

// Show Artist? (1 = show, 0 = don't show)
$puts(arts,1)

// Show Album?
$puts(albs,1)

// Show Title?
$puts(tils,1)

// Info Heading Color
$puts(head,$rgb(115,135,170))

// Info Color
$puts(info,$rgb(163,163,163))

// Info Annotation Color (e.g. kbps is the annotation)
$puts(anno,$rgb(163,163,163))


// 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),
January,February,March,April,May,June,July,August,September,October,November,December))

// 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 Divider Width (0 yeilds no divider)
$puts(divw,16)

// Progress Bar Divider Character (blank yields no divider)
$puts(divc,═)

// Progress Bar Config
$puts(progplay,'[ ▶ ]')
$puts(progpause,▮▮)
$puts(progbar,☰)
$puts(proglen,25)
$puts(color1,$rgb(115,135,170))
$puts(color2,$rgb(163,163,163))

// Separator
$puts(text1,$rgb(163,163,163))
$puts(text2,$rgb(115,135,170))
$puts(fadeend,$rgb(31,31,31))
$puts(sepw,11)
$puts(sepc,═)

$char(10)
// SONG INFO SEPARATOR
$char(1)C$transition($repeat($get(sepc),$get(sepw)),$get(fadeend),$get(text1))$get(text2) SONG INFO $transition($repeat($get(sepc),$get(sepw)),$get(text1),$get(fadeend))$char(10)
$char(10)

$if($strcmp(1,$get(tils)),$if(%title%,$char(1)C$get(head)Title: $get(info)%title%$char(10),),)
$if($strcmp(1,$get(arts)),$if(%artist%,$char(1)C$get(head)Artist: $get(info)%artist%$char(10),),)
$if($strcmp(1,$get(albs)),$if(%album%,$char(1)C$get(head)Album: $get(info)%album%$char(10),),)
$if(%date%,$char(1)C$get(head)Year: $get(info)%date%$char(10),)
$if(%tracknumber%,$char(1)C$get(head)Track #: $get(info)%tracknumber%$char(10),)
$if(%genre%,$char(1)C$get(head)Genre: $get(info)%genre%$char(10),)
$char(10)

// TECH INFO SEPARATOR
$char(1)C$transition($repeat($get(sepc),$get(sepw)),$get(fadeend),$get(text1))$get(text2) TECH INFO $transition($repeat($get(sepc),$get(sepw)),$get(text1),$get(fadeend))$char(10)
$char(10)

$char(1)C$get(head)Length: $get(info)$if(%_isplaying%,%_time_elapsed%$get(anno)$if(%_length%,/%_length%,),%_length%)$char(10)
$char(1)C$get(head)Bitrate: $get(info)
$if2(%__bitrate_dynamic%,%__bitrate%) $get(anno)Kbps $if($stricmp(%__codec%,mp3),$if($stricmp(%__extrainfo%,vbr),VBR,CBR))$char(10)
$if(%__codec%,$char(1)C$get(head)Codec: $get(info)%__codec%$char(10),)
$if(%__lame_version%,$char(1)C$get(head)Preset: $get(info)$left(%__lame_version%,4) $right(%__lame_version%,4) [$upper(%__lame_profile%)]$char(10),)
$if(%__flac_vendor%,$char(1)C$get(head)Encoder: $get(info)$if($stricmp(%__flac_vendor%,reference libFLAC 1.1.2 20050205),FLAC 1.1.2 -8)$char(10),)
$if(%__mpc_profile%,$char(1)C$get(head)MPC Profile: $get(info)%__mpc_profile%$char(10),)
$char(1)C$get(head)Compression: $get(info)$div(1411,%__bitrate%).$substr($muldiv(1411,100,%__bitrate%),2,3):1 '('$get(info)$muldiv(%__bitrate%,100,1411)$get(anno)'%)'$char(10)
$char(1)C$get(head)Channels: $get(info)$if($stricmp($codec(),MP3),$get(space2)$caps(%__mp3_stereo_mode%),
$if(%__channels%,$ifgreater(%__channels%,1,Stereo,Mono),'?'))$char(10)
$if(%__bitspersample%,$char(1)C$get(head)Bitdepth: $get(info)%__bitspersample%$char(10),)
$if(%__samplerate%,$char(1)C$get(head)Samplerate: $get(info)$div(%__samplerate%,1000).$substr(%__samplerate%,3,3) KHz $char(10))
$if(%_filesize%,$char(1)C$get(head)Filesize: $get(info)
$div(%_filesize%,1048576).$left($num($muldiv($mod(%_filesize%,1048576),100,1048576),2),2) $get(anno)'MB'$char(10),)


$if(%last_played%,
// PLAY STATS SEPARATOR
$char(10)$char(1)C$transition($repeat($get(sepc),$get(sepw)),$get(fadeend),$get(text1))$get(text2) PLAY INFO $transition($repeat($get(sepc),$get(sepw)),$get(text1),$get(fadeend))$char(10)
$char(10),)

$if(%last_played%,$char(1)C$get(head)Last played on: $get(info)$get(time_of_year) at $get(time_of_day)$char(10),)
$if(%play_counter%,$char(1)C$get(head)Number of times played: $get(info)%play_counter%$char(10),)

$char(10)
// PROGRESS BAR SEPARATOR
$char(1)C$transition($repeat($get(divc),$get(divw)),$get(fadeend),$get(text1))$transition($repeat($get(divc),$get(divw)),$get(text1),$get(fadeend))$char(10)
$char(10)

$if(%_length_seconds%,$char(1)C$get(head)Track Progress $get(info)$pad_right($muldiv(%_time_elapsed_seconds%,100,%_length_seconds%),3)$get(anno)'%'$char(10)
$char(1)C$get(color2)'|'$get(color1)$progress(%_time_elapsed_seconds%,%_length_seconds%,$get(proglen),
$if(%_ispaused%,$get(color2)$get(progpause)$get(progbar),$get(color2)$get(progplay)$get(progbar)),$get(progbar))
'|',streaming...)
Title: foo_uie_trackinfo
Post by: Phi on 2005-11-06 06:38:02
Quote
I wanted to find out if you enabled the %_system_XX% fields as mentioned in post #212 (http://www.hydrogenaudio.org/forums/index.php?showtopic=29363&view=findpost&p=272067).

Not yet. Unfortunately this thread is full of my broken promises regarding the development of the plugin, but I'd still like to finish the new version when I have the time (not such a problem at the moment ) and motivation to do so.

Quote
Also, I notice that the newest version is 0.1.1.  In my components listing in fb2k, it says 0.1, even though I installed what is downloaded from the 0.1.1 link.  Just wondering if it is not set to display the full version number or not.

Yeah, version 0.1.1 does show 0.1 in the prefs. I forgot to bump the version number in the code.

Quote
Thanks again for the plugin!

No problem.
Title: foo_uie_trackinfo
Post by: synth7 on 2005-11-06 07:02:22
It'd be great to see some new verions of this great component!
Title: foo_uie_trackinfo
Post by: duncan.idaho on 2005-11-11 12:34:14
Is there a custom sting that can show a txt file in the panel?

for each of my album i have fetched a folder;jpg (showed in album art panel) and an album review as a txt file. I would like to show the review in the track info panel alongside the cover art when i play the album.

Does the track info panel allow this?
Title: foo_uie_trackinfo
Post by: Gurney on 2005-11-13 12:19:35
Quote
I rewrote my whole code, and added compatibility for streams

[a href="http://img122.echo.cx/my.php?image=trackinfo1uq.png" target="_blank"] It fits the colors of my fcs. Would you mind posting the string ?

Regards
Title: foo_uie_trackinfo
Post by: Strictly4me on 2005-11-22 08:14:21
Quote
Would you mind posting the string ?

Would be really nice! 

((((( Strictly4me )))))
Title: foo_uie_trackinfo
Post by: Brendan on 2005-11-22 08:39:39
I used to have that config, but I formatted recently and lost it, posting it again would end my search
Title: foo_uie_trackinfo
Post by: clintb on 2005-11-23 22:00:46
Ok, I'm having a real hard time copying and pasting the code from some of the strings.  It's like they're losing a carriage return/line feed.  I copy from the code box, then paste into a blank text file and it's like there's no line wrap.  Any suggestions?

Oh, XP sp2, metapad as the text editor.
Title: foo_uie_trackinfo
Post by: Brendan on 2005-11-24 10:52:07
Copy directly to track info and then to the txt? All the linebreaks turn out just fine doing that. Or you could try using Wordpad instead of Metapad.
Title: foo_uie_trackinfo
Post by: Ribtin on 2005-11-25 16:35:54
Quote
Here's my new trackinfo panel.  It took me a little while to get things exactly the way I wanted.  The "Play Info" section will hide itself if the play_count tags are not there (or if you don't use the plugin), but it will show once the tag is created.  Also, if you notice, the time is converted from 24-hour format over to 12-hour, and it also has AM and PM.  I tested everything, so it should work without a problem.

(http://img103.imageshack.us/img103/2848/myfb2ktrackinfo6ay.th.jpg) (http://img103.imageshack.us/my.php?image=myfb2ktrackinfo6ay.jpg)

Here is the code....enjoy!
Code: [Select]
// Original code by necropimp, modified by AstreaEdge, final by KockRoach

// Show Artist? (1 = show, 0 = don't show)
$puts(arts,1)

// Show Album?
$puts(albs,1)

// Show Title?
$puts(tils,1)

// Info Heading Color
$puts(head,$rgb(115,135,170))

// Info Color
$puts(info,$rgb(163,163,163))

// Info Annotation Color (e.g. kbps is the annotation)
$puts(anno,$rgb(163,163,163))


// 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),
January,February,March,April,May,June,July,August,September,October,November,December))

// 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 Divider Width (0 yeilds no divider)
$puts(divw,16)

// Progress Bar Divider Character (blank yields no divider)
$puts(divc,═)

// Progress Bar Config
$puts(progplay,'[ ▶ ]')
$puts(progpause,▮▮)
$puts(progbar,☰)
$puts(proglen,25)
$puts(color1,$rgb(115,135,170))
$puts(color2,$rgb(163,163,163))

// Separator
$puts(text1,$rgb(163,163,163))
$puts(text2,$rgb(115,135,170))
$puts(fadeend,$rgb(31,31,31))
$puts(sepw,11)
$puts(sepc,═)

$char(10)
// SONG INFO SEPARATOR
$char(1)C$transition($repeat($get(sepc),$get(sepw)),$get(fadeend),$get(text1))$get(text2) SONG INFO $transition($repeat($get(sepc),$get(sepw)),$get(text1),$get(fadeend))$char(10)
$char(10)

$if($strcmp(1,$get(tils)),$if(%title%,$char(1)C$get(head)Title: $get(info)%title%$char(10),),)
$if($strcmp(1,$get(arts)),$if(%artist%,$char(1)C$get(head)Artist: $get(info)%artist%$char(10),),)
$if($strcmp(1,$get(albs)),$if(%album%,$char(1)C$get(head)Album: $get(info)%album%$char(10),),)
$if(%date%,$char(1)C$get(head)Year: $get(info)%date%$char(10),)
$if(%tracknumber%,$char(1)C$get(head)Track #: $get(info)%tracknumber%$char(10),)
$if(%genre%,$char(1)C$get(head)Genre: $get(info)%genre%$char(10),)
$char(10)

// TECH INFO SEPARATOR
$char(1)C$transition($repeat($get(sepc),$get(sepw)),$get(fadeend),$get(text1))$get(text2) TECH INFO $transition($repeat($get(sepc),$get(sepw)),$get(text1),$get(fadeend))$char(10)
$char(10)

$char(1)C$get(head)Length: $get(info)$if(%_isplaying%,%_time_elapsed%$get(anno)$if(%_length%,/%_length%,),%_length%)$char(10)
$char(1)C$get(head)Bitrate: $get(info)
$if2(%__bitrate_dynamic%,%__bitrate%) $get(anno)Kbps $if($stricmp(%__codec%,mp3),$if($stricmp(%__extrainfo%,vbr),VBR,CBR))$char(10)
$if(%__codec%,$char(1)C$get(head)Codec: $get(info)%__codec%$char(10),)
$if(%__lame_version%,$char(1)C$get(head)Preset: $get(info)$left(%__lame_version%,4) $right(%__lame_version%,4) [$upper(%__lame_profile%)]$char(10),)
$if(%__flac_vendor%,$char(1)C$get(head)Encoder: $get(info)$if($stricmp(%__flac_vendor%,reference libFLAC 1.1.2 20050205),FLAC 1.1.2 -8)$char(10),)
$if(%__mpc_profile%,$char(1)C$get(head)MPC Profile: $get(info)%__mpc_profile%$char(10),)
$char(1)C$get(head)Compression: $get(info)$div(1411,%__bitrate%).$substr($muldiv(1411,100,%__bitrate%),2,3):1 '('$get(info)$muldiv(%__bitrate%,100,1411)$get(anno)'%)'$char(10)
$char(1)C$get(head)Channels: $get(info)$if($stricmp($codec(),MP3),$get(space2)$caps(%__mp3_stereo_mode%),
$if(%__channels%,$ifgreater(%__channels%,1,Stereo,Mono),'?'))$char(10)
$if(%__bitspersample%,$char(1)C$get(head)Bitdepth: $get(info)%__bitspersample%$char(10),)
$if(%__samplerate%,$char(1)C$get(head)Samplerate: $get(info)$div(%__samplerate%,1000).$substr(%__samplerate%,3,3) KHz $char(10))
$if(%_filesize%,$char(1)C$get(head)Filesize: $get(info)
$div(%_filesize%,1048576).$left($num($muldiv($mod(%_filesize%,1048576),100,1048576),2),2) $get(anno)'MB'$char(10),)


$if(%last_played%,
// PLAY STATS SEPARATOR
$char(10)$char(1)C$transition($repeat($get(sepc),$get(sepw)),$get(fadeend),$get(text1))$get(text2) PLAY INFO $transition($repeat($get(sepc),$get(sepw)),$get(text1),$get(fadeend))$char(10)
$char(10),)

$if(%last_played%,$char(1)C$get(head)Last played on: $get(info)$get(time_of_year) at $get(time_of_day)$char(10),)
$if(%play_counter%,$char(1)C$get(head)Number of times played: $get(info)%play_counter%$char(10),)

$char(10)
// PROGRESS BAR SEPARATOR
$char(1)C$transition($repeat($get(divc),$get(divw)),$get(fadeend),$get(text1))$transition($repeat($get(divc),$get(divw)),$get(text1),$get(fadeend))$char(10)
$char(10)

$if(%_length_seconds%,$char(1)C$get(head)Track Progress $get(info)$pad_right($muldiv(%_time_elapsed_seconds%,100,%_length_seconds%),3)$get(anno)'%'$char(10)
$char(1)C$get(color2)'|'$get(color1)$progress(%_time_elapsed_seconds%,%_length_seconds%,$get(proglen),
$if(%_ispaused%,$get(color2)$get(progpause)$get(progbar),$get(color2)$get(progplay)$get(progbar)),$get(progbar))
'|',streaming...)
[a href=\"index.php?act=findpost&pid=339938\"][{POST_SNAPBACK}][/a]


Hey. Great work, but what font are you using? I can't seam to find one that displays the progressbar symbols...
Title: foo_uie_trackinfo
Post by: clintb on 2005-11-25 17:15:25
Quote
Copy directly to track info and then to the txt? All the linebreaks turn out just fine doing that. Or you could try using Wordpad instead of Metapad.
[a href="index.php?act=findpost&pid=344582"][{POST_SNAPBACK}][/a]

I should clarity my post above in that I have tried pasting to both metapad (beefed up wordpad) and track info panel at the same time with the same result.  It's either how people are initially formatting their strings or the codebox it's being pasted into.  Very weird...
Title: foo_uie_trackinfo
Post by: ocluke on 2005-11-26 09:27:09
kockroach, I like yours a lot.  I'm a n00b, so this may sound like an obvious question, but how do I get a similar display as you, but have it show the LAME version of my encoding, not just "MP3", which it currently shows?

Thanks.
Title: foo_uie_trackinfo
Post by: iStormy on 2005-11-26 18:52:31
[removed]
Title: foo_uie_trackinfo
Post by: kockroach on 2005-11-28 03:22:47
@ribtin:  I'm using Arial Unicode MS

@ocluke:  Thanks...glad you like it.  There is a line in there to give you the LAME Version:
Code: [Select]
$if(%__lame_version%,$char(1)C$get(head)Encoder: $get(info)$left(%__lame_version%,4) $right(%__lame_version%,4) [$upper(%__lame_profile%)]$char(10),)


Check and see if the file has the LAME Version in it.  Right-click on it, and select "Show file info (special)".  In the window that opens, you should see a "lame_version" field under Technical Info.
Title: foo_uie_trackinfo
Post by: ocluke on 2005-11-28 07:09:17
Quote
@ribtin:  I'm using Arial Unicode MS

@ocluke:  Thanks...glad you like it.  There is a line in there to give you the LAME Version:
Code: [Select]
$if(%__lame_version%,$char(1)C$get(head)Encoder: $get(info)$left(%__lame_version%,4) $right(%__lame_version%,4) [$upper(%__lame_profile%)]$char(10),)


Check and see if the file has the LAME Version in it.  Right-click on it, and select "Show file info (special)".  In the window that opens, you should see a "lame_version" field under Technical Info.
[a href="index.php?act=findpost&pid=345805"][{POST_SNAPBACK}][/a]


Thank you for the response.  I checked and I do get the preset setting to say LAME 3.97, but I do not get a LAME profile information (-V2 --vbr-new) to display.  I'm not sure if this is an issue with the code for Trackinfo or if it is something I am not gathering in the rip/encode process.  I'm using REACT to rip through EAC.
If there is a possibility for me to get the LAME profile information to display, I would appreciate the insight.
Title: foo_uie_trackinfo
Post by: kockroach on 2005-11-28 15:10:07
There is no profile reported yet, as the modified foo_input_std doesn't have the new profiles in it.  Until it is changed it will not display the -Vx profile, only  APS, APE, etc from earlier versions.
Title: foo_uie_trackinfo
Post by: nightwingz on 2005-12-04 20:37:31
ok im a complete n00b at this and i have no idea really of what im doing. so i need some help, im tryin to get that extra info column like above and my album cover to show up properly i can only get them to show in the status bar and i cant resize it at all. take a look.....(http://img265.imageshack.us/img265/1751/screenshot0010la.th.jpg) (http://img265.imageshack.us/my.php?image=screenshot0010la.jpg)

i dont know what im doing wrong but if you can help me get on the right track here ill appreciate it very much. thanks.
Title: foo_uie_trackinfo
Post by: gfngfgf on 2005-12-04 23:48:56
Quote
ok im a complete n00b at this and i have no idea really of what im doing. so i need some help, im tryin to get that extra info column like above and my album cover to show up properly i can only get them to show in the status bar and i cant resize it at all. take a look.....(http://img265.imageshack.us/img265/1751/screenshot0010la.th.jpg) (http://img265.imageshack.us/my.php?image=screenshot0010la.jpg)

i dont know what im doing wrong but if you can help me get on the right track here ill appreciate it very much. thanks.
[a href="index.php?act=findpost&pid=347646"][{POST_SNAPBACK}][/a]

Regarding the "resizing" problem, look for the "minimum height" setting in Track Info preferences (there should be a similar option in album art's preferences, too).

To get them in the sidebar, you'll probably have to reset the sidebar in Columns UI preferences, Sidebar tab.
Title: foo_uie_trackinfo
Post by: ocluke on 2005-12-05 18:33:28
Quote
Regarding the "resizing" problem, look for the "minimum height" setting in Track Info preferences (there should be a similar option in album art's preferences, too).

To get them in the sidebar, you'll probably have to reset the sidebar in Columns UI preferences, Sidebar tab.
[a href="index.php?act=findpost&pid=347696"][{POST_SNAPBACK}][/a]


Thanks.  I got it to work.  I appreciate the help.
Title: foo_uie_trackinfo
Post by: plinni on 2005-12-18 16:43:39
Quote
My  fstring
screenshot
http://img103.exs.cx/my.php?loc=img103&ima...ooooooooooo.png (http://img103.exs.cx/my.php?loc=img103&image=foooooooooooooo.png)

Code: [Select]
DCAE8DMode: %_trackinfo_mode%$char(10)$if(%_trackinfo_notrack%,No track,
$char(1)C0CEBA4Song Info$char(10)
D7B997Title: ffffff%title%$char(10)
D7B997Artist: F3EAE0%artist%$char(10)
D7B997Album: F3EAE0%album%$char(10)
D7B997Date: F3EAE0%date%)$char(10)
D7B997Genre: F3EAE0%genre%$char(10)
$char(1)C0CEBA4Tech Info$char(10)
D7B997Codec: F3EAE0%__codec% $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)
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)

[a href="index.php?act=findpost&pid=253650"][{POST_SNAPBACK}][/a]



hi free. How can I change the mode to: nowplaying? I can't find the line.
Title: foo_uie_trackinfo
Post by: gfngfgf on 2005-12-19 01:56:16
Quote
hi free. How can I change the mode to: nowplaying? I can't find the line.
[a href="index.php?act=findpost&pid=350967"][{POST_SNAPBACK}][/a]

His string displays the current display mode of trackinfo, which can be changed my either middle-clicking or double-clicking in the trackinfo window.
Title: foo_uie_trackinfo
Post by: plinni on 2005-12-19 13:56:41
omg that easy! thx a lot!
Title: foo_uie_trackinfo
Post by: plinni on 2005-12-20 15:38:16
Hi,

I tried to add some infos in my track info panel. But it's not working 'cause I don't know how to add the missing variables.

This is the code:
$char(1)C0CEBA4Statistics:$char(10)
D7B997This song was played F3EAE0%play_counter% D7B997times so far. $char(10)
D7B997Last played: F3EAE0%play_date% D7B997at F3EAE0%play_time%$char(10)
D7B997My rating: F3EAE0$if3(%rating%, not rated

Here is the picture:
http://trabifant.dirker.org/Internet/foobar2000.jpg (http://trabifant.dirker.org/Internet/foobar2000.jpg)

Can you plz help me to add the missing features?
Title: foo_uie_trackinfo
Post by: kockroach on 2005-12-20 15:44:11
Do you have the foo_playcount plugin installed?
Title: foo_uie_trackinfo
Post by: plinni on 2005-12-20 16:03:48
Damn! I know I forgot something.
Title: foo_uie_trackinfo
Post by: krabapple on 2005-12-20 21:18:53
This question applies generally to sidebar panels, but I'm asking it specifically for the trackinfo panel..how can I move it out of the sidebar and have it display in the 'playlist' frame instead, above (or failing that, below) the playlist and spanning the same width?  My columns_ui config is pretty standard right now.
Title: foo_uie_trackinfo
Post by: kockroach on 2005-12-20 21:23:51
Make sure you have "List All Tollbars" Active in the Columns UI settings.  Then, you can have the Track Info panel in the toolbar at the top of fb2k.  I actually have one in the sidebar, and another track info panel (scrolls the now playing song) in the toolbar.  This requires a second dll loaded into your components folder.
Title: foo_uie_trackinfo
Post by: krabapple on 2005-12-21 05:47:49
Quote
Make sure you have "List All Tollbars" Active in the Columns UI settings.  Then, you can have the Track Info panel in the toolbar at the top of fb2k.  I actually have one in the sidebar, and another track info panel (scrolls the now playing song) in the toolbar.  This requires a second dll loaded into your components folder.
[a href="index.php?act=findpost&pid=351500"][{POST_SNAPBACK}][/a]


It worked!  Thanks!
Title: foo_uie_trackinfo
Post by: Habla on 2006-01-02 11:49:42
I have a question about my configuration:
In the details section, how can I get the values ("Rap", "track #1", etc) to align right, and the descriptions to align left, separately on the same line? I tried putting "$char(1)R" right after "Genre" for example, but it didn't work.

Also, in the Audioscrobbler part, when I set the mode to follow cursor, it produces "Mode: Follow CursorCAudioscrobblered". Whats wrong?


Code: [Select]
//Scrolling text code by Rexy, most other code by gfngfgf, beautified by Habla
//Vertical padding 9, min height 250 (in toolbar), horizontal pad 22, line spacing -6
//Looks best w/ black background and dark grey default text

// variables
$puts(padding,$char(160)$char(160)•$char(160)$char(160))
$puts(size,49)
$puts(sizeplus1,39)
// title
$char(1)C$rgb(215,215,215)
$if(%_trackinfo_notrack%,No track!,
$puts(title,$replace(%title%, ,$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)
  )
 )
,$get(sizeplus1))
)
$get(display)$ifgreater($len2($get(display)),$get(size),,$char(160)),
// normal display
$get(title)
)
$rgb(195,195,215))

$char(10)
$char(10)

// artist
$char(1)C$rgb(215,215,215)
$if(%_trackinfo_notrack%,---,
$puts(title,$replace(%artist%, ,$char(160)))
$ifgreater($len2(%artist%),$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)
  )
 )
,$get(sizeplus1))
)
$get(display)$ifgreater($len2($get(display)),$get(size),,$char(160)),

// normal text
$get(title)
)
$rgb(195,195,215))

$char(10)
$char(10)

$char(1)C$char(160)$char(160)
$rgb(51,147,163)$if(%_trackinfo_notrack%,---,

//album
$if(%album%,
$puts(title,$replace(%album%$if($strcmp(%album artist%,%artist%),%album artist%), ,$char(160)))
$puts(padding,$char(160)•$char(160))
$puts(size,$sub($get(size),8))
$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)
)

,'[none]'))

$char(10)

$transition($repeat(.,54),000000,10a4f3)$transition($repeat(.,54),10a4f3,000000)

$char(10)
$char(10)

Track $transition($repeat(.,40),000000,867542)$rgb(51,147,163)$if(%_trackinfo_notrack%,---,$if2(%tracknumber%[ / %tracktotal%],n/a))

$char(10)
$char(10)

Date  $transition($repeat(.,40),000000,867542)$rgb(51,147,163)$if(%_trackinfo_notrack%,---,$if2(%date%,n/a))

$char(10)
$char(10)

Genre$transition($repeat(.,40),000000,867542)$rgb(51,147,163)$if(%_trackinfo_notrack%,---,%genre%)

$char(10)
$char(10)

Tech  $transition($repeat(.,40),000000,867542)$rgb(51,147,163)$if(%_trackinfo_notrack%,---,%__codec%) $if(%_trackinfo_notrack%,---,[$if2(%__bitrate_dynamic%,%__bitrate%)kb/s])

$char(10)
$char(10)

// PROGRESS BAR WIDTH
// if you want to change the length, there are two "54"s you'll have to find and replace
// to change the bar character, there are two "•"s you must find and replace
$puts(len,$muldiv(%_time_elapsed_seconds%,54,%_time_total_seconds%))
// BAR
$char(1)C$transition($repeat(•,$get(len)),0a0a3f,0c5be0)
$repeat(•,$sub(54,$get(len)))

$char(10)
$char(10)

$char(1)C$if(%_trackinfo_notrack%,---,$if2($rgb(215,215,215)%_time_elapsed% of ,)%_length%)

$char(10)

$transition($repeat(.,54),000000,10a4f3)$transition($repeat(.,54),10a4f3,000000)

$char(10)
$char(10)



$char(1)CMode: $rgb(215,215,215)%_trackinfo_mode%



///////////audioscrobbler status
$if($strchr($get(showstatus),0),,
$if(%_isplaying%,$char(10)$char(10)$if(%_ispaused%,
)
)
)
$char(1)CAudioscrobblered: $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)$rgb(51,147,163)Yes,$get(color5)No))
)
Title: foo_uie_trackinfo
Post by: kockroach on 2006-01-02 12:13:49
The Track Info Panel can only use one alignment format per line.  So you cannot have part of the line "left justified" and the other part "right justified".    I seem to remember that Phi was thinking of adding this at some point....can't remember where in the thread he mentions it though.

As far as the Audioscrobbler problem

Code: [Select]
$char(1)CMode: $rgb(215,215,215)%_trackinfo_mode% 



///////////audioscrobbler status
$if($strchr($get(showstatus),0),,
$if(%_isplaying%,$char(10)$char(10)$if(%_ispaused%,
)
)
)
$char(1)CAudioscrobblered: $if($strchr($get(audioscrobbler),0),,


The lack of a line break after the %_trackinfo_mode% is probably conflicting with the two line breaks in your audioscrobbler area.  The panel thinks that there are two $char(1)C in a row, which will give you a "C" like you said you are getting.

I hope that isn't too confusing.

Edit: Didn't realize a code box won't allow my bold notes to show....so I had to rewrite.
Title: foo_uie_trackinfo
Post by: Habla on 2006-01-02 12:17:35
Thanks, kockroach
Title: foo_uie_trackinfo
Post by: ocluke on 2006-01-03 07:59:12
Hopefully this is not too off topic, but does anyone know how to get all of the lyrics to display in the lyrics plugin for Foobar?  I can get the lyrics panel to display, but anything beyond the small amount of text in the window cannot be seen.  Is there a way to get a scroll bar?
Title: foo_uie_trackinfo
Post by: kockroach on 2006-01-03 14:53:13
Yeah, it is off-topic for this thread.  It would probably be best to post in the Lyric Panel (http://www.hydrogenaudio.org/forums/index.php?showtopic=30855&hl=lyrics++panel) thread instead.
Title: foo_uie_trackinfo
Post by: Habla on 2006-01-06 10:58:40
Im trying to snip text that is longer than my panel's width will allow, and I want to add an ellipse to it, but only if the $len(%title%) is bigger than my width.

In other words,

I want, e.g:

The Girl I Love (She Got Long Black Wavy Ha...
and
Communication Breakdown

not:

The Girl I Love (She Got Long Black Wavy Hair
) (16.6.69)
and
Communication Breakdown...

Obviously, "$left(%title%,35)..." ($left or $cut) won't work, because every title, long or short will have an ellipse appended to it.
Then I tried "$ifgreater($len2(%title%),37,$left(%title%)...,%title%)" (and $iflonger) and it produced varying lengths. I think it has something to do with the font im using (Segoe UI) not being fixed width, or maybe $len2 is wrong, I should use $len?

Can someone help me make this work?

TIA
Title: foo_uie_trackinfo
Post by: Grogs™ on 2006-01-06 11:08:49
You could use a fixed width font like Lucida Sans Unicode is I think? Anyway, use a fixed width font then use $abbr()?

So around the contense of the line just have $abbr(<live variables etc>,30) or whatever, changing 30 depending on the width.

This doesn't do what you what really but it should keep stuff smaller, idk how to achieve what you want, although I would sue it msyelf for some things.
Title: foo_uie_trackinfo
Post by: Habla on 2006-01-07 00:08:51
I don't want track names abbreviated.
All the fixed width fonts are oogly.
Does $len(----) count spaces as well as characters?
Title: foo_uie_trackinfo
Post by: VLSI on 2006-01-07 02:24:20
When foobar starts up, trackinfo displays info for the first entry in the playlist instead of the selected song.  Is there any way to correct this or is it a bug?  I'm using trackinfo 0.1.1 with fb2k 0.8.3 and columns ui 0.1.2.
Title: foo_uie_trackinfo
Post by: Nervie on 2006-01-07 04:10:09
[a href="http://img226.imageshack.us/my.php?image=foobarsidecopy1zf.jpg" target="_blank"]

Critque welcome.
Title: foo_uie_trackinfo
Post by: Strictly4me on 2006-01-07 09:27:04
@Nervie

Nice code for Trackinfo.  Can you post it, please?

((((( Strictly4me )))))
Title: foo_uie_trackinfo
Post by: Nervie on 2006-01-07 09:52:06
Code: [Select]
$puts(left,0000bb$get(neut) )
$puts(right,0000bb $char(10))
$puts(middle, $get(color1))

//Track Information
$char(1)C0080ff┌$repeat(─,11)┐$char(10)
$char(1)C000000Track Information$char(10)
$char(1)C0080ff└$repeat(─,11)┘$char(10)

$char(1)C$get(left)Artist:$get(middle)%Artist%$get(right)
$char(1)C$get(left)Title:$get(middle)$iflonger(%title%,20,$trim($cut(%title%,$sub(23,3)))...,%title%)$get(right)
$char(1)C$get(left)Album:$get(middle)$iflonger(%album%,20,$trim($cut(%album%,$sub(23,3)))...,%album%)$get(right)
$char(1)C$get(left)Date:$get(middle)%date%$get(right)
$char(1)C$get(left)Genre:$get(middle)%genre%$get(right)
$char(10)


I find it very very simple, and probably messy. Like i said, i will be cleaning it up and making use of release.
Title: foo_uie_trackinfo
Post by: Strictly4me on 2006-01-07 11:32:20
Nice, but thats not the whole code. I just can see "Track Information". 
Playback Information, Song Rating and Progress i miss!

((((( Strictly4me )))))
Title: foo_uie_trackinfo
Post by: Nervie on 2006-01-07 12:37:49
 Apologies you said "Track Info" and i thought that is what you wanted.

Would you mind if i cleaned it up like i said i was going to. It just needs a few more touches and its complete. Then its all yours to squish, crunch, scribble over and eventually toss out.
Title: foo_uie_trackinfo
Post by: Nervie on 2006-01-07 14:29:21
Sorry, i have decided on a new method for creating this panel. But here is as far as i got with the code.

Code: [Select]
//---Characters Config
$puts(neut,000000)
$puts(color1,0080ff)
$puts(left,0000bb$get(neut) )
$puts(right,0000bb $char(10))
$puts(middle, $get(color1))

//---Progress Bar Config
//Desired Length
$puts(len,20)
//Desired Filler (♫, █, Custom)
$puts(a,$get(neut)█)
$puts(b,$get(color1)█$get(neut))

//=======================================
//-----Progress Bar
$puts(pos1,%_time_elapsed_seconds%)
$puts(pos2, %_time_total_seconds%)

//---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),
January,February,March,April,May,June,July,August,September,October,November,December))

// 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))


//Track Information
$char(1)C0080ff┌$repeat(─,11)┐$char(10)
$char(1)C000000Track Information$char(10)
$char(1)C0080ff└$repeat(─,11)┘$char(10)

$char(1)C$get(left)Artist:$get(middle)%Artist%$get(right)
$char(1)C$get(left)Title:$get(middle)$iflonger(%title%,20,$trim($cut(%title%,$sub(23,3)))...,%title%)$get(right)
$char(1)C$get(left)Album:$get(middle)$iflonger(%album%,20,$trim($cut(%album%,$sub(23,3)))...,%album%)$get(right)
$char(1)C$get(left)Date:$get(middle)%date%$get(right)
$char(1)C$get(left)Genre:$get(middle)%genre%$get(right)
$char(10)


$if(%last_played%,
//Playback Information
$char(1)C0080ff┌$repeat(─,13)┐$char(10)
$char(1)C000000Playback Information$char(10)
$char(1)C0080ff└$repeat(─,13)┘$char(10)


$char(1)C000000Last played on: 0080ff$get(info)$get(time_of_year)000000 at $char(10)$char(1)C 0080ff$get(time_of_day)$char(10),)
$if(%play_counter%,$char(1)C000000Number of times played: $get(info)0080ff%play_counter%$char(10)
$char(10), )


$if(%rating%,
//Rating
$char(1)C0080ff┌$repeat(─,8)┐$char(10)
$char(1)C000000Song Rating$char(10)
$char(1)C0080ff└$repeat(─,8)┘$char(10)

$puts(r_cl,000000)
$char(1)C$select(%rating%,
0080ff●$get(r_cl)●●●●,
0080ff●●$get(r_cl)●●●,
0080ff●●●$get(r_cl)●●,
0080ff●●●●$get(r_cl)●,
0080ff●●●●●),
$char(10)$char(1)C0000ffYou Have Not Selected A Rating For This$char(10)$char(1)C0000ff Song. )
$char(10)

$if(%_isplaying%,
//Progress Bar
$char(10)
$char(1)C0080ff┌$repeat(─,8)┐$char(10)
$char(1)C000000Progress$char(10)
$char(1)C0080ff└$repeat(─,8)┘$char(10)

$char(1)C000000Percentage $muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%)'%'$char(10)
$char(1)C000000♪│$progress2($get(pos1),$get(pos2),$get(len),$get(b),$get(a))│♪$char(10)
$char(1)C000000%_time_elapsed%/ %_time_total%)


Title: foo_uie_trackinfo
Post by: Strictly4me on 2006-01-07 16:57:30
Works fine here, thx! 

((((( Strictly4me )))))
Title: foo_uie_trackinfo
Post by: Nervie on 2006-01-08 09:34:23
Hi People,

 Heres how my Foobar Now looks. I added entire Foobar and not just Trackinfo because  i use two TrackInfo Panels. Take a look at the image (its animated).

 First frame shows Foobar Trackinfo on the "Playing" song. It shows progress, rating, trackinfo in the left Trackinfo frame. And shows Technical, Playback and Comments in the right panel.

 Second frame shows Foobar Trackinfo on a "Not Playing" song. It shows Trackinfo and a "Need to rate" notice in the ;eft window; if you have rated the track, it will show the rating and if you have not and are on the "Playing" track it will show the Progress bar in the correct position as it usually is. In the left window same as above.

 Third frame is during Stream Playback mode. Left frame shows some information (Until  Foobar allows you to show more Stream related information) and animations of Kirbys <(o.o)> that dance. They go from <(o.o<) to <(o.o)> to (>o.o)> and back again. You can set the amount of kirbys to be displayed.

 I will work on a way to utilize both windows in one, for people who like the look but dont use dual windows. Until then i shall reframe from posting my Code.

[a href=\"http://img225.imageshack.us/my.php?image=foobar0xl.gif\" target=\"_blank\"];;
/////////////
//////////////////////////////////////////////////////

//--=============== Edit This Part Safely

//---General Config
//Color 1 = Artist etc --- $get(color1)
$puts(color1,c0c0c0)
//Color 2 = TAGZ info --- $get(color2)
$puts(color2,ffFFFF)
//Color 3 = ♪ --- $get(color3)
$puts(color3,808080)

//---Progress Bar Config
//Desired Length
$puts(len,20)
//Desired Filler (█)
$puts(a,█)
$puts(b,█)

///---- 2 = Yes 1 =No
//Replace Comments with Animation?
$puts(anim1,2)

//---Stream Config - Comment Animation Config

//Choose animation (1 = Kirby Dancing, 2 = Musical Notes, 3 =Person Dancing )
$puts(animation,3)
//Amount of animations
$puts(amount,1)






//--================= Edit Past Here At Own Risk

//-----Animations
$select($get(animation)
,
$puts(animation,$select($add(1,$mod(%_time_elapsed_seconds%,4)),$get(color1)<'('$get(color2)o.o$get(color1)<')' ,$get(color1)<'('$get(color2)o.o$get(color1)')'>,$get(color1)'('>$get(color2)o.o$get(color1)')>',$get(color1)<'('$get(color2)o.o$get(color1)')'>))
,
$puts(animation,$select($add(1,$mod(%_time_elapsed_seconds%,4)),$get(color2)♪♫♪♬ ,$get(color2)♬♩♫,$get(color2)♫♪♬♪,$get(color2)♫♩,♫♬♪♫♩))
,
$puts(animation,$select($add(1,$mod(%_time_elapsed_seconds%,6)),$get(color1)'|'$get(color2)o$get(color1)'|',$get(color1)'/'$get(color2)o$get(color1)'/',$get(color1)'|'$get(color2)o$get(color1)'|',$get(color1)'\'$get(color2)o$get(color1)'\',$get(color1)'|'$get(color2)o$get(color1)'|',$get(color1)'\'$get(color2)o$get(color1)'/'))
)

//-----Progress Bar
$puts(pos1,%_time_elapsed_seconds%)
$puts(pos2, %_time_total_seconds%)

//---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),
January,February,March,April,May,June,July,August,September,October,November,December))

// 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))

//--=================

//--=================

$if(%_length%,
//Song Information
$char(1)C$transition($repeat(─═,2),6c5037,$get(color2))$get(color2) Song Information $transition($repeat(═─,2),$get(color2),6c5037)$char(10)
$get(color1)∙Artist: $get(color2)$iflonger(%artist%,20,$trim($cut(%artist%,$sub(20,3)))...,%artist%)$repeat( ,7)c0c0c0∙Album: $get(color2)$iflonger(%album%,20,$trim($cut(%album%,$sub(20,3)))...,%album%)$char(10)
$get(color1)∙Track: $get(color2)%title% $get(color1)'('$get(color2)#%tracknumber%$get(color1)')'$char(10)
$get(color1)∙Genre: $get(color2)%genre% $repeat( ,4) $get(color1)∙Date: $get(color2)%date%$char(10)$char(10)

$if(%rating%,
//Rating
$char(1)C$transition($repeat(─═,2),6c5037,$get(color2))$get(color2) Rating $transition($repeat(═─,2),$get(color2),6c5037)$char(10)
$char(1)C$select(%rating%,
$get(color2)□$get(color1)□□□□,
$get(color2)□□$get(color1)□□□,
$get(color2)□□□$get(color1)□□,
$get(color2)□□□□$get(color1)□,
$get(color2)□□□□ )$char(10)
$char(1)C$get(color1)Song Rated $get(color2)$select(%rating%,One,Two,Three,Four,Five) $get(color1)out of Five$char(10)$char(10)$char(10),$char(10)$get(color1)You Have Not Rated This Song.$char(10)$char(10)$char(10)$char(10))

$if(%_isplaying%,
//Progress Bar
$char(1)C$transition($repeat(─═,2),6c5037,$get(color2))$get(color2) Progress Bar $transition($repeat(═─,2),$get(color2),6c5037)$char(10)
$char(1)C$get(color3)♪│$progress2($get(pos1),$get(pos2),$get(len),$get(color2)$get(a)$get(color3),$get(color1)$get(b)$get(color3))│♪$char(10)
$char(1)C$get(color2)%_time_elapsed%$get(color1)/$get(color2)%_time_total%$get(color3) $char(10)$char(1)C $get(color1)Progress: $get(color2)$muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%)$get(color1)'%', )$char(10)$char(10)


$if(%_length%,
//Technical Information
$char(1)C$transition($repeat(─═,2),6c5037,$get(color2))$get(color2) Technical Information $transition($repeat(═─,2),$get(color2),6c5037)$char(10)
$if(%__codec%,$get(color1)∙Codec: $get(color2)%__codec%$repeat( ,4),$get(color1)∙Codec: $get(color2)No Codec$repeat( ,4))
$if(%__flac_vendor%,$get(color1)∙Encoder: $if($stricmp(%__flac_vendor%,reference libFLAC 1.1.2 20050205),FLAC 1.1.2 -8)$char(10),$get(color1)∙Encoder: $get(color2)No Encoder$char(10))
$get(color1)∙Compression: $get(color2)$div(1411,%__bitrate%).$substr($muldiv(1411,100,%__bitrate%),2,3):1 '('$muldiv(%__bitrate%,100,1411)'%)'$char(10)$if(%__samplerate%,$get(color1)∙Samplerate: $get(color2)$div(%__samplerate%,1000).$substr(%__samplerate%,3,3) KHz $char(10))
$get(color1)∙Bitrate: $get(color2)$if2(%__bitrate_dynamic%,%__bitrate%) Kbps $if($stricmp(%__codec%,mp3),$if($stricmp(%__extrainfo%,vbr),VBR,CBR))$repeat( ,7)$if(%__bitspersample%,$get(color1)∙Bitdepth: $get(color2)%__bitspersample,)$char(10)
$if(%_filesize%,$get(color1)∙Filesize: $get(color2)$div(%_filesize%,1048576).$left($num($muldiv($mod(%_filesize%,1048576),100,1048576),2),2) $get(anno)'MB',)$repeat( ,5)$get(color1)∙Channels: $get(color2)$if(%__channels%,$ifgreater(%__channels%,1,Stereo,Mono),'?')$char(10)$char(10)

$if(%play_counter%,
//Playback Information
$char(1)C$transition($repeat(─═,2),6c5037,$get(color2))$get(color2) Playback Information $transition($repeat(═─,2),$get(color2),6c5037)$char(10)
$get(color1)∙Times Song Played: $get(color2)%play_counter%$char(10)
$get(color1)∙Last Time Played: $get(color2)$get(time_of_year)$char(10) $get(color1)at $get(color2)$get(time_of_day) , $get(color1)No Playback Information.$char(10)$char(10))$char(10)$char(10)

$select($get(anim1)
,
$if(%comment%,
//Comments
$char(1)C$transition($repeat(─═,2),6c5037,$get(color2))$get(color2) Comments $transition($repeat(═─,2),$get(color2),6c5037)$char(10)
$get(color1)∙Comments: ffFFFF%comment%, )

,
$char(1)C$transition($repeat(─═,2),6c5037,$get(color2))$get(color2) Get Down With Ya Self $transition($repeat(═─,2),$get(color2),6c5037)$char(10)
$char(1)C$repeat($get(animation) ,$get(amount))))
,

//Stream Information
$char(10)$char(1)C$transition($repeat(─═,2),6c5037,$get(color2))$get(color2) Stream Information $transition($repeat(═─,2),$get(color2),6c5037)$char(10)
$get(color1)∙Artist: $get(color2)$iflonger(%artist%,40,$trim($cut(%artist%,$sub(40,3)))...,%artist%)$repeat( ,7)$char(10)
$get(color1)∙Track: $get(color2)%title%$char(10)
$get(color1)∙Listened For $get(color2)%_time_elapsed%
$char(10)$char(10)$char(10)

//Animation
$char(1)C$transition($repeat(─═,2),6c5037,$get(color2))$get(color2) Get Down With Ya Self $transition($repeat(═─,2),$get(color2),6c5037)$char(10)
$char(1)C$repeat($get(animation) ,$get(amount)))


Now, if anyone would like the setup the way i have it. Post.. and ye shall recieve. Laterz ;;
Title: foo_uie_trackinfo
Post by: VLSI on 2006-01-09 20:20:58
Quote
When foobar starts up, trackinfo displays info for the first entry in the playlist instead of the selected song.  Is there any way to correct this or is it a bug?  I'm using trackinfo 0.1.1 with fb2k 0.8.3 and columns ui 0.1.2.
[{POST_SNAPBACK}][/a] (http://index.php?act=findpost&pid=355186")

I took the liberty of inspecting the source and came up with a simple workaround for this issue.  If anyone cares, I uploaded a modified version of foo_uie_trackinfo [a href="http://www.hydrogenaudio.org/forums/index.php?showtopic=40458]here[/url].
Title: foo_uie_trackinfo
Post by: Habla on 2006-01-10 05:51:50
You should ask Phi before you release that, you know.

Here's my current one:

(http://img207.imageshack.us/img207/25/tinfo5ud.jpg)

Code: [Select]
// Original code by necropimp, modified by AstreaEdge, final by KockRoach
// Appearance changed by Habla. Muchas gracias to those above!
// Best viewed with vert pad 10, hor pad 13, line space 2, Segoe UI 7pt font, black background

// !!!!BEGIN USER CONFIGURATION!!!!

// Show Artist? (1 = show, 0 = don't show)
$puts(arts,1)

// Show Album?
$puts(albs,1)

// Show Title?
$puts(tils,1)

// Info Heading Color e.g. "Title:"
$puts(head,$rgb(61,129,193))

// Info Color e.g. "Black Dog"
$puts(info,$rgb(255,255,255))

// Info Annotation Color (e.g. kbps is the annotation)
$puts(anno,$rgb(255,255,255))

// Separator
// the separators (Song,Play,Tech info) will change to a different color if the panel mode is set to Follow cursor.
// change "followcursorcol" to change this color. It is currently set to flash orange.
$puts(followcursorcol,$rgb(200,150,50))
$puts(text2,$rgb(255,255,255))
$puts(text1,$if(%_trackinfo_nowplaying%,$rgb(61,129,193))$if(%_trackinfo_followcursor%,$get(followcursorcol)))
$puts(fadeend,$rgb(0,0,0))
$puts(seplen,83)
$puts(sepchar,'.')

// Set Rating character
$puts(ratingchar,'●●●')

// !!!!END USER CONFIGURATION!!!!

// 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))

// SONG INFO SEPARATOR
$transition($repeat($get(sepchar),$get(seplen)),$get(fadeend),$get(text1))$get(text1)'[' $get(text2)S o n g  I n f o $get(text1)']'$char(10)

$if($strcmp(1,$get(tils)),$if(%title%,$get(head)Title: $get(info)%title%$char(10),),)
$if($strcmp(1,$get(arts)),$if(%artist%,$get(head)Artist: $get(info)%artist%$char(10),),)
$if($strcmp(1,$get(albs)),$if(%album%,$get(head)Album: $get(info)%album%$char(10),),)
$if(%date%,$get(head)Year: $get(info)%date%$char(10),)
$if(%tracknumber%,$get(head)Track #: $get(info)%tracknumber%$char(10),)
$if(%genre%,$get(head)Genre: $get(info)%genre%$char(10),)
$if(%rating%,$get(head)Rating: $repeat($get(info)$get(ratingchar),%rating%)
$repeat($rgb(70,70,70)$get(ratingchar),$sub(5,%rating%))$char(10),)

// TECH INFO SEPARATOR
$transition($repeat($get(sepchar),$get(seplen)),$get(fadeend),$get(text1))$get(text1)'[' $get(text2)T e c h  I n f o $get(text1)']'$char(10)

$get(head)Length: $get(info)$if(%_isplaying%,%_time_elapsed%$get(anno)$if(%_length%, / %_length%,)$if(%_length%, / -%_time_remaining%),%_length%)$char(10)
$get(head)Type:$if(%__codec%, $get(info)%__codec%) $get(info)
$if2(%__bitrate_dynamic%,%__bitrate%) $get(anno)Kb/s $if($stricmp(%__codec%,mp3),$if($stricmp(%__extrainfo%,vbr),VBR,CBR))
$char(10)
$if(%__lame_version%,$get(head)Preset: $get(info)$left(%__lame_version%,4) $right(%__lame_version%,4) [$upper(%__lame_profile%)]$char(10),)
$if(%__flac_vendor%,$get(head)Encoder: $get(info)$if($stricmp(%__flac_vendor%,reference libFLAC 1.1.2 20050205),FLAC 1.1.2 -8)$char(10),)
$if(%__mpc_profile%,$get(head)MPC Profile: $get(info)%__mpc_profile%$char(10),)
$get(head)Compression: $get(info)$div(1411,%__bitrate%).$substr($muldiv(1411,100,%__bitrate%),2,3):1 '('$get(info)$muldiv(%__bitrate%,100,1411)$get(anno)'%)'$char(10)
$get(head)Channels: $get(info)$if($stricmp($codec(),MP3),$get(space2)$caps(%__mp3_stereo_mode%),
$if(%__channels%,$ifgreater(%__channels%,1,Stereo,Mono),'?'))$char(10)
$if(%__bitspersample%,$get(head)Bitdepth: $get(info)%__bitspersample% bits/sample$char(10),)
$if(%__samplerate%,$get(head)Samplerate: $get(info)$div(%__samplerate%,1000).$substr(%__samplerate%,3,3) KHz $char(10))
$if(%_filesize%,$get(head)Filesize: $get(info)
$div(%_filesize%,1048576).$left($num($muldiv($mod(%_filesize%,1048576),100,1048576),2),2) $get(anno)'MB'$char(10),)

$if(%last_played%,
// PLAY STATS SEPARATOR
$transition($repeat($get(sepchar),$get(seplen)),$get(fadeend),$get(text1))$get(text1)'[' $get(text2)P l a y  I n f o $get(text1)']'
$char(10),)

$if(%play_counter%,$get(head)Played $get(info)%play_counter% times$char(10),)
$if(%last_played%,$get(head)Last played on $get(info)$get(time_of_year) at $get(time_of_day)$char(10),)
$get(head)$progress(%_time_elapsed_seconds%,%_time_total_seconds%,52,$get(info)'()',$get(head)'-')
 $get(info)$muldiv(%_time_elapsed_seconds%,100,%_length_seconds%)'%'$char(10)

Question: Why can't the panel update %rating%, %last_played%, and %play_count% on the fly? In Navigator, they update immediately.
Title: foo_uie_trackinfo
Post by: VLSI on 2006-01-10 14:36:14
Quote
You should ask Phi before you release that, you know.
[a href="index.php?act=findpost&pid=355951"][{POST_SNAPBACK}][/a]

Since Phi hasn't updated this thing in ages, I figured it has been abandoned and didn't think he'd mind.  Besides, I have modified the component description to indicate that it's not an official release.  I can take it off the HA uploads if he objects.
Title: foo_uie_trackinfo
Post by: Habla on 2006-01-10 22:53:33
Ok, well, it's up to him.
Title: foo_uie_trackinfo
Post by: Phi on 2006-01-11 10:21:23
Quote
Quote
You should ask Phi before you release that, you know.

Since Phi hasn't updated this thing in ages, I figured it has been abandoned and didn't think he'd mind.

Yeah, that's fine.
Title: foo_uie_trackinfo
Post by: mwfuss on 2006-01-11 17:23:19
Nervie,


How do you get TrackInfo to open up in two different panels? Each time I attempt to do this, the already open instance of TrackInfo will close.
Title: foo_uie_trackinfo
Post by: Stuart60611 on 2006-01-11 21:35:45
Quote
Nervie,


How do you get TrackInfo to open up in two different panels? Each time I attempt to do this, the already open instance of TrackInfo will close.
[a href="index.php?act=findpost&pid=356377"][{POST_SNAPBACK}][/a]



You need to  download a separate Trackinfo panel which has been modified to so asllow it to run separately  while the original Trackinfo panel is running.  The download link is posted in this thread.
Title: foo_uie_trackinfo
Post by: Nervie on 2006-01-12 01:37:43
http://www.hydrogenaudio.org/forums/index....ndpost&p=301999 (http://www.hydrogenaudio.org/forums/index.php?showtopic=29363&view=findpost&p=301999)

Thats the direct post. People were saying that it reacts with the other TrackInfo; but i had no troubles at all. It acted like a completly differnt frame.

On a further not, i got a new WinXP theme; and thus my Foobar is changing to ^^;;
Title: foo_uie_trackinfo
Post by: mwfuss on 2006-01-12 12:54:59
Thanks Nervie
Title: foo_uie_trackinfo
Post by: Brother John on 2006-01-15 21:39:24
Hey, guys!

I recently spent quite some time on my track info config and thought, sharing would be a good idea. It's especially usefull, if you want to display lots of tech info.


Features (http://img73.imageshack.us/img73/4761/fb2ktrackinfo6em.png)

Code: [Select]
a0a0a0
$if(%_trackinfo_nowplaying%,Currently playing song,
$if(%_trackinfo_followcursor%,Selected song))
[Mode: %_trackinfo_dropped%]
$char(10)

$if($and(%_trackinfo_nowplaying%,$not(%_isplaying%)),$char(10)--- Playback stopped ---,
$if($not(%_trackinfo_notrack%),

//===============================================================
$char(10)
800000$char(9642)$char(9642) TRACK INFO $transition($repeat($char(9642),24),800000,FFFFFF)
$char(10)$char(10)

$if($and($not(%artist%),$not(%title%)),
// Display filename, if artist & title tags are missing.
%_filename%,
// Title and artist
%title%[B66931 by %artist%])$char(10)

// If track is from an album:
$if(%album%,B66931from %album%
$if(%tracknumber%,
[B66931 Disc %disc% ]
B66931' (#'$num(%tracknumber%,1)B66931'/'$num(%album tracks%,1)B66931')'
)$char(10))

// Genre and comment
[%genre%$char(10)]
$if($not($stricmp($left(%comment%,6),'Tech: ')),[B66931Comment: %comment%$char(10)])


//===============================================================
$char(10)$char(10)
800000$char(9642)$char(9642) TECH INFO $transition($repeat($char(9642),25),800000,FFFFFF)
$char(10)$char(10)

B66931File size: $div(%_filesize%,1024) KB
$char(10)$char(10)

// Descriptive names for most common codecs
B66931Codec:
$if($stricmp(%__codec%,ATSC A/52),Dolby Digital AC3,
$if($stricmp(%__codec%,MP3),MPEG-1 Audio Layer 3,
$if($stricmp(%__codec%,FLAC),FLAC lossless,
$if($stricmp(%__codec%,AAC),Advanced Audio Coding,
$if($stricmp(%__codec%,PCM),'PCM (Wave)',
$if2(%__codec%,Unknown codec))))))

// Info about container format
$if($or($stricmp($ext(%_filename_ext%),m4a),$stricmp($ext(%_filename_ext%),mp4)),
B66931 in MP4,
$if($stricmp($ext(%_filename_ext%),ogg),
B66931 in  Ogg,
$if($or($stricmp($ext(%_filename_ext%),mka),$stricmp($ext(%_filename_ext%),mkv)),
B66931 in  Matroska
)))

// Name 1ch and 2ch Mono and Stereo, otherwise 'x channels'
$char(10)B66931Channels:
$if($greater(%__channels%,2),%__channels% Channels,
$if($greater(%__channels%,1),Stereo[' ('%__mp3_stereo_mode%')'],
$if($greater(%__channels%,0),Mono,)))$char(10)

// Bitrate, vbr/cbr, samplerate
B66931Quality: %__bitrate% kbit/s', '
$if(%__extrainfo%,%__extrainfo%', ',
$if($strcmp(%__codec%,MP3),'CBR, ',
$if($strcmp(%__codec%,Vorbis),'VBR, ',
$if($strcmp(%__codec%,Musepack),'VBR, ',
$if($strcmp(%__codec%,ATSC A/52),'CBR, ')))))
%__samplerate% Hz[', '%__bitspersample% bit]$char(10)

// Encoder version
[B66931Encoder: %__tool%$char(10)]
[B66931Encoder: %__vorbis_vendor%$char(10)]
[B66931Encoder: %__FLAC_vendor%$char(10)]
[B66931Encoder: Version %__mpc_encoder%$char(10)]

// Special LAME info (requires modded foo_input_std.dll)
$if(%__lame_version%,
B66931Encoder: %__lame_version%
$ifgreater(%__lame_profile_index%,0,
$select(%__lame_profile_index%,
' r3mix'$char(10),
' preset extreme'$char(10),
' preset standard'$char(10),
' preset fast standard'$char(10),
' preset fast extreme'$char(10),
' preset insane'$char(10)
),))

// Special AAC and Musepack info
[B66931AAC profile: %__aac_profile%$char(10)]
[B66931Profile: %__mpc_profile%[  B66931Stream version: %__mpc_streamversion%]$char(10)]

// Support for 'tech' comment field (prefix with 'Tech: ')
$if($stricmp($left(%comment%,6),'Tech: '),
B66931Comment: $substr(%comment%,7,$len(%comment%))$char(10))

// ReplayGain info
$char(10)B66931RG track gain: $if2(%__replaygain_track_gain%,RG not applied)$char(10)
B66931RG album gain: $if2(%__replaygain_album_gain%,RG not applied)
))

Cheers,
Brother John
Title: foo_uie_trackinfo
Post by: webwarp on 2006-01-15 22:56:08
Nervie i want a copy of your foobar dir

It just looks all to great im still stucked with default look .. :=)
Title: foo_uie_trackinfo
Post by: Nervie on 2006-01-16 10:21:12
I tried giving my foobar Dir to somebody, but it seemed it erases all my work and they just get all my components. If anyone has a way of sending Foobar in its customized state. I shall see what i can do; but i have already changed my foobar again.

But i can get it off the friend.
Title: foo_uie_trackinfo
Post by: webwarp on 2006-01-16 12:03:31
Well I would be very greatfull if you would .. its awsome
Title: foo_uie_trackinfo
Post by: sPeziFisH on 2006-01-16 12:42:45
Quote
I tried giving my foobar Dir to somebody, but it seemed it erases all my work and they just get all my components. If anyone has a way of sending Foobar in its customized state. [a href="index.php?act=findpost&pid=357526"][{POST_SNAPBACK}][/a]

...seems like you have enabled user-profile-support, therefore the foobar-cfg-file is not in your foobar-folder, things get a bit messed up when you only give the foobar-folder away.
Just have a look for you config-file in your user-folder!
Title: foo_uie_trackinfo
Post by: kockroach on 2006-01-16 14:22:46
I thought that you cannot give someone else your .cfg file as it violates the license.  Unless you get authorization from the developer.
Title: foo_uie_trackinfo
Post by: Nervie on 2006-01-16 21:43:05
Quote
Quote
I tried giving my foobar Dir to somebody, but it seemed it erases all my work and they just get all my components. If anyone has a way of sending Foobar in its customized state. [a href="index.php?act=findpost&pid=357526"][{POST_SNAPBACK}][/a]

...seems like you have enabled user-profile-support, therefore the foobar-cfg-file is not in your foobar-folder, things get a bit messed up when you only give the foobar-folder away.
Just have a look for you config-file in your user-folder!
[a href="index.php?act=findpost&pid=357552"][{POST_SNAPBACK}][/a]


Okay explain this thourughly. I think your telling me that because i have User Profile support on my XP system, that my Foobar Config is stored in my personal profile folder. But where? I see nothing resembling it.

----

Okay i found it, foobar2000.cfg; this will be my new one. But if i can get my friend to send the one i gave them, then i shall upload - And if its a breach of Copyright, i shall remove it.
Title: foo_uie_trackinfo
Post by: Nervie on 2006-01-16 22:04:35
Double Post! \o/

Okay,

Components needed:
-TrackInfo 1 and 2 (2 can be found in this forum)
-projectM visualization
-Playlist Tree
-Lyrics Show
-Album coverart


And anything else your heart desires.

Now, give me your email, and i shall send it when i get home from Work.
Title: foo_uie_trackinfo
Post by: webwarp on 2006-01-17 21:10:33
Quote
Double Post! \o/

Okay,

Components needed:
-TrackInfo 1 and 2 (2 can be found in this forum)
-projectM visualization
-Playlist Tree
-Lyrics Show
-Album coverart


And anything else your heart desires.

Now, give me your email, and i shall send it when i get home from Work.
[a href="index.php?act=findpost&pid=357680"][{POST_SNAPBACK}][/a]


have done so
Title: foo_uie_trackinfo
Post by: 0kupa on 2006-01-24 15:49:14
HI!

this is my dinamic mixed config of others users:

[a href=\"http://img296.imageshack.us/img296/4416/mp3foo8zt.png\" target=\"_blank\"]

thanks to all!
Title: foo_uie_trackinfo
Post by: plinni on 2006-01-28 11:27:46
@okupa: Looks very nice. Would be appreciated if you share your *.fcs!
Title: foo_uie_trackinfo
Post by: 0kupa on 2006-01-29 14:20:20
thanks plinni, its a mod from azrael:

azrael5MOD.zip (http://es.geocities.com/acm_project/azrael5MOD.zip)

bye
Title: foo_uie_trackinfo
Post by: Squeller on 2006-01-31 10:03:29
Quote
this is my dinamic mixed config of others users:
...

$div(1411,%__bitrate%).$substr($muldiv(1411,100,%__bitrate%),2,3):1


The $substr() is only correct if the $muldiv()-result is >= 10 otherwise it's wrong because you use a static start (2) for the $subst().

This should imho be alright, you have to detect the length if the first $div.

Code: [Select]
$div(1411,%__bitrate%).$substr($muldiv(1411,1000,%__bitrate%),$add($len($div(1411,%__bitrate%)),1),4):1


Without variables hard to read and multiple computation.

BTW all in all I use this code (I only have to check it for rounding preciseness in the last digits):

Code: [Select]
1:$div(1411,%__bitrate%).$substr($muldiv(1411,1000,%__bitrate%),$add($len($div(1411,%__bitrate%)),1),4) '('$div($mul(%__bitrate%,100),1411).$substr($muldiv(%__bitrate%,10000,1411),$add($len($div($mul(%__bitrate%,100),1411)),1),4)'%)'


I rather like to have the panel to show the final compression.
Title: foo_uie_trackinfo
Post by: phineas on 2006-02-01 05:15:26
is there any way to implement something that kills the wrap-around? for instance, cutting a tag short and adding a "..." to keep it on one line?

just wondering.

Title: foo_uie_trackinfo
Post by: gfngfgf on 2006-02-01 06:51:45
Quote
is there any way to implement something that kills the wrap-around? for instance, cutting a tag short and adding a "..." to keep it on one line?

just wondering.


[{POST_SNAPBACK}][/a] (http://index.php?act=findpost&pid=361149")

Really, the only reliable way to cut a tag short and add "..." to the end is if you use a fixed-width font, you can do something like:

Code: [Select]
$iflonger(%title%,30,$cut(%title%,30)...,%title%))


(or perhaps one of the other [a href="http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Titleformat_Reference]string functions[/url] is better suited...)

Another option is to replace all the spaces in your text with a non-breaking space, which will prevent the text from wrapping (as far as I can recall).  For example:

Code: [Select]
$replace(%title%, ,$char(160))


($char(160) being the code for a non-breaking space)
Title: foo_uie_trackinfo
Post by: Habla on 2006-02-01 07:32:45
Code: [Select]
$if(%title%,Title:  $if(%title%,$cut(%title%,45)
$ifgreater($len(%title%),45,'...',))$char(10),$get(info)%_filename%$char(10))


Works sometimes...
Title: foo_uie_trackinfo
Post by: phineas on 2006-02-02 04:51:02
Quote
Code: [Select]
$if(%title%,Title:  $if(%title%,$cut(%title%,45)
$ifgreater($len(%title%),45,'...',))$char(10),$get(info)%_filename%$char(10))


Works sometimes...
[a href="index.php?act=findpost&pid=361164"][{POST_SNAPBACK}][/a]

this works great most of the time.. but it would really work best with a uniform spaced font.

i'll keep experimenting, but this little code set me on the right path. thanks!

Title: foo_uie_trackinfo
Post by: cRoMo on 2006-02-06 16:30:22
I have a problem when using a non fixed-spacing font like Calibri for formatting as shown below. No matter what alignation I choose, string is constantly moving left or right while the time counting goes by. I know that it's not foo_uie_trackinfo's fault, but is there a way to somehow stick time elapsed and time total in a place so the former one would not move when counting? Also, center alignation doesn't really work as it should, as the dash ( - ) is moving horizontally and I guess it shouldn't

Code: [Select]
$char(1)R
$if2(
$if2(2d9cff%_time_elapsed%2d2d2d' - '2d9cff%_time_total%,2d9cff%_LENGTH%)
,2d9cffcromo
)


PS. f2k 0.8.3, trackingo 0.1
Title: foo_uie_trackinfo
Post by: thelimp on 2006-02-13 12:28:03
hi,

where can i found "trackinfo V2" ?
Title: foo_uie_trackinfo
Post by: Synthetic Soul on 2006-02-13 13:18:25
Quote
I have a problem when using a non fixed-spacing font like Calibri for formatting as shown below. No matter what alignation I choose, string is constantly moving left or right while the time counting goes by. I know that it's not foo_uie_trackinfo's fault, but is there a way to somehow stick time elapsed and time total in a place so the former one would not move when counting? Also, center alignation doesn't really work as it should, as the dash ( - ) is moving horizontally and I guess it shouldn't

Code: [Select]
$char(1)R
$if2(
$if2(2d9cff%_time_elapsed%2d2d2d' - '2d9cff%_time_total%,2d9cff%_LENGTH%)
,2d9cffcromo
)
I don't think this can be resolved if you are using a font whose characters are not regular widths.  Many font's numeric characters are uniform in width, you don't have to use a monospace font.  However, I suspect that Calibri is one of those funky fonts where each character has its own unique width.
Title: foo_uie_trackinfo
Post by: Nervie on 2006-02-19 00:34:54
Quote
hi,

where can i found "trackinfo V2" ?
[{POST_SNAPBACK}][/a] (http://index.php?act=findpost&pid=363910")


I believe you are after the ability to have more than one Track Info panel. [a href="http://www.hydrogenaudio.org/forums/index.php?showtopic=29363&view=findpost&p=301999]Track Info 2 Post[/url]

If i am mistaken, and there is a version 2 of the addon; please inform me.
Title: foo_uie_trackinfo
Post by: boombaard on 2006-03-21 15:57:29
will this plugin be updated for foobar .9?
Title: foo_uie_trackinfo
Post by: 4nt1 on 2006-03-22 04:03:21
i certainly hope so

this plugin is essential for my daily usage of foobar
and it simply rocks

perhaps it could in corporate album art as well?

i just want this and album art real bad...
Title: foo_uie_trackinfo
Post by: acedriver on 2006-03-22 04:06:20
I really need this to complete my transition to .9
Title: foo_uie_trackinfo
Post by: amonrei on 2006-03-22 09:30:10
Quote
i just want this and album art real bad...
[a href="index.php?act=findpost&pid=373706"][{POST_SNAPBACK}][/a]

Same here. 
Title: foo_uie_trackinfo
Post by: iZu on 2006-03-22 19:10:55
Quote
Quote
i just want this and album art real bad...
[a href="index.php?act=findpost&pid=373706"][{POST_SNAPBACK}][/a]

Same here. 
[a href="index.php?act=findpost&pid=373795"][{POST_SNAPBACK}][/a]

me too!
Title: foo_uie_trackinfo
Post by: Glass on 2006-03-22 22:36:47
Me aswell. I hope that the user's suggestion of this incorporating album art is not included. I think the album art panel and the track info panel should be two independent plugins.
Title: foo_uie_trackinfo
Post by: vincentboschet on 2006-03-24 11:48:20
if i have a comment tag with line-breaks, foo_uie_trackinfo only shows the first line and (...)
Is there any way to make it show the whole comment tag with the line-breaks?

(http://img93.imageshack.us/img93/731/foobar14mc.png)

thanks
Title: foo_uie_trackinfo
Post by: mobyduck on 2006-03-24 12:26:25
Quote
Is there any way to make it show the whole comment tag with the line-breaks?
If I'm not mistaken, $meta() should do that.

HTH.

Alessandro
Title: foo_uie_trackinfo
Post by: vincentboschet on 2006-03-24 12:48:57
yeah that worked perfectly.
but unfortunately foo_uie_trackinfo does not interpret line-break 0d or 0a correctly, because it puts a tiny square at the end of each line...

(http://img20.imageshack.us/img20/7715/foobar21go.png)

is there a command to ignore 0d or 0a, whatever causes the square?
Title: foo_uie_trackinfo
Post by: foosion on 2006-03-24 13:16:38
Try $replace(<your text>,$crlf,$char(10),$char(13),$char(10)). If that does not work as intended, replace $char(10) with $char(13) and vice versa.
Title: foo_uie_trackinfo
Post by: vincentboschet on 2006-03-24 14:43:46
> Info: $replace($meta(comment),$crlf,$char(10),$char(13),)  <
works fine, thank you all.
Title: foo_uie_trackinfo
Post by: G-Lite on 2006-03-24 20:37:49
Anyone mind if I try to take on porting this to 0.9? I'm stuck home alone, bored on a friday evening, with no chances of going out because of a cold... and this looks like a challenge.
Title: foo_uie_trackinfo
Post by: Shade[ST] on 2006-03-24 20:41:10
Quote
Anyone mind if I try to take on porting this to 0.9? I'm stuck home alone, bored on a friday evening, with no changes of going out because of a cold... and this looks like a challenge.
[a href="index.php?act=findpost&pid=374887"][{POST_SNAPBACK}][/a]

Think you could have it by tonight?  That'd be great
Title: foo_uie_trackinfo
Post by: MJT on 2006-03-24 20:42:31
Quote
Anyone mind if I try to take on porting this to 0.9?[a href="index.php?act=findpost&pid=374887"][{POST_SNAPBACK}][/a]


Not at all. Please be my guest.
Title: foo_uie_trackinfo
Post by: mazy on 2006-03-24 21:00:19
G-Lite, could you try to add build-in support for multiple panels / configurations? maybe in a way like ui column's buttons, though that would need moving configuration controls to window ...
Title: foo_uie_trackinfo
Post by: Stevie on 2006-03-24 23:12:59
weeeeeeeeeeee go for it !!!!!
Title: foo_uie_trackinfo
Post by: Glass on 2006-03-24 23:13:42
Quote
Anyone mind if I try to take on porting this to 0.9? I'm stuck home alone, bored on a friday evening, with no changes of going out because of a cold... and this looks like a challenge.
[a href="index.php?act=findpost&pid=374887"][{POST_SNAPBACK}][/a]


DO IT.
Title: foo_uie_trackinfo
Post by: komplexnous on 2006-03-25 01:23:35
Quote
Anyone mind if I try to take on porting this to 0.9? I'm stuck home alone, bored on a friday evening, with no chances of going out because of a cold... and this looks like a challenge.
[a href="index.php?act=findpost&pid=374887"][{POST_SNAPBACK}][/a]

Although I'm getting used to the new way of editing, I still miss it the other way where all of the fields are in front of me and I just hit next or previous... so... Hell yes, try it!! 
Title: foo_uie_trackinfo
Post by: MJT on 2006-03-25 03:28:19
 

Wrong plugin komplexnous. You're thinking of foo_infobox.
Title: foo_uie_trackinfo
Post by: komplexnous on 2006-03-25 04:59:42
Quote


Wrong plugin komplexnous. You're thinking of foo_infobox.
[a href="index.php?act=findpost&pid=375007"][{POST_SNAPBACK}][/a]

hahah...you're right...    Scratch what I said with the details.  This plugin would still be very nice if someone coded it for .9!! 
Title: foo_uie_trackinfo
Post by: G-Lite on 2006-03-26 17:46:52
Well, I'm having some problems porting this. I think I've got all the functionality covered from the old plugin, but there's some graphics glitches.

Here's a screenshot (http://stephan.kochen.nl/proj/foo_uie_trackinfo/titleformat_glitch.png) of what I'm talking about. You can find the source of what I have now in the same directory (http://stephan.kochen.nl/proj/foo_uie_trackinfo/) on the webserver, along with a debug-built DLL.

Everything seems to be working as far as I can tell: I can add and remove the window, settings work, no leaks of any kind, and I got titleformatting to accept extra fields. But I'm not sure where the glitch is coming from; the drawing code hasn't changed at all.

I'm guessing it has something to do with the unicode conversion. It looks like it's drawing the lines correctly, but straight past the end of the line. I'd appreciate it if someone could take a look.
Title: foo_uie_trackinfo
Post by: komplexnous on 2006-03-26 19:20:27
I looked at the code, and as expected, I really don't know.    You've done great stuff so far, though!!  Someone with at least as much skill as you should read your post soon and help, I hope! 
Title: foo_uie_trackinfo
Post by: Shade[ST] on 2006-03-26 20:16:55
What character are you using for line break?  did you try cr(10), lf(13), or both?


/ / English (Australia) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENA)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_AUS
#pragma code_page(1252)
#endif //_WIN32

Maybe your codepage is wrong, too.

Did you try iso8859-1 ?
Title: foo_uie_trackinfo
Post by: G-Lite on 2006-03-26 20:18:41
Quote
What character are you using for line break?  did you try cr(10), lf(13), or both?
[{POST_SNAPBACK}][/a] (http://index.php?act=findpost&pid=375488")

The [a href="http://stephan.kochen.nl/proj/foo_uie_trackinfo/format_string.txt]titleformat strings[/url] are exactly the same in 0.8 and 0.9 on the screenshot, so that shouldn't be the problem. They both use $char(10).
Title: foo_uie_trackinfo
Post by: tanshu on 2006-03-26 20:28:23
I am pretty sure it has to do something with how it is parsing $char(10), because of it the rest of the formatting string also gets repeated (atleast the in the default setting)
My cpp skills are non-existant so i cannot find out which function is causing the error. Can u tell me the function which parses the $char() string?
Title: foo_uie_trackinfo
Post by: musicmusic on 2006-03-26 21:04:28
Quote
Well, I'm having some problems porting this. I think I've got all the functionality covered from the old plugin, but there's some graphics glitches.

Here's a screenshot (http://stephan.kochen.nl/proj/foo_uie_trackinfo/titleformat_glitch.png) of what I'm talking about. You can find the source of what I have now in the same directory (http://stephan.kochen.nl/proj/foo_uie_trackinfo/) on the webserver, along with a debug-built DLL.

Everything seems to be working as far as I can tell: I can add and remove the window, settings work, no leaks of any kind, and I got titleformatting to accept extra fields. But I'm not sure where the glitch is coming from; the drawing code hasn't changed at all.

I'm guessing it has something to do with the unicode conversion. It looks like it's drawing the lines correctly, but straight past the end of the line. I'd appreciate it if someone could take a look.
[a href="index.php?act=findpost&pid=375442"][{POST_SNAPBACK}][/a]

Seems like it may be problem in uTextOutColors/uTextOutColorsTabbed. See if replacing line 123 of foo_uie_trackinfo.cpp with:
Code: [Select]
pfc::string8 temp(src+s,e-s);
uTextOutColors(dc,temp.get_ptr(),temp.get_length(),x_pos,y,r,false,color);

works as a hack-fix.
Title: foo_uie_trackinfo
Post by: G-Lite on 2006-03-26 22:09:29
Quote
Seems like it may be problem in uTextOutColors/uTextOutColorsTabbed. See if replacing line 123 of foo_uie_trackinfo.cpp with:
Code: [Select]
pfc::string8 temp(src+s,e-s);
uTextOutColors(dc,temp.get_ptr(),temp.get_length(),x_pos,y,r,false,color);

works as a hack-fix.
[{POST_SNAPBACK}][/a] (http://index.php?act=findpost&pid=375506")

It worked! Darn, it just had to be something silly like that. Good to know it wasn't my fault though.
Thanks!

There might still be a bug lurking somewhere, but as far as I can tell this is now working fine.
Here's a first release, I guess:
Title: foo_uie_trackinfo
Post by: iZu on 2006-03-26 22:19:56
wow!!! thank you very much!

edit: it works without problems
Title: foo_uie_trackinfo
Post by: Frank Bicking on 2006-03-26 22:21:46
It crashed when I attempted to change the font to Tahoma 8pt:

Code: [Select]
Illegal operation:
Code: C0000005h, flags: 00000000h, address: 01471BD0h
Access violation, operation: read, address: 00000008h
Call path:
entry=>app_mainloop
This is the first crash logged by this instance.
Code bytes (01471BD0h):
01471B90h:  00 8B 74 24 18 8D 46 0C 50 33 C9 33 D2 C7 44 24
01471BA0h:  14 00 00 00 00 E8 46 36 00 00 C7 06 AC 01 49 01
01471BB0h:  C7 46 04 C0 01 49 01 8B 4C 24 08 64 89 0D 00 00
01471BC0h:  00 00 59 5E 83 C4 0C C2 04 00 CC CC CC CC CC CC
01471BD0h:  8B 40 08 85 C0 74 0B 6A 01 6A 00 50 FF 15 98 E1
01471BE0h:  48 01 C3 CC CC CC CC CC CC CC CC CC CC CC CC CC
01471BF0h:  B8 20 FF 48 01 C3 CC CC CC CC CC CC CC CC CC CC
01471C00h:  8B 4C 24 04 8B 01 8B 50 08 6A FF 68 BC FF 48 01
Stack (0012F5C8h):
0012F5A8h:  0012E4DC 7C9D93A0 77F443DD 7C9D93A0
0012F5B8h:  00000004 00000000 0012D9E8 00000250
0012F5C8h:  0147211E CFB0D660 0012F798 01471FB0
0012F5D8h:  00000000 0012F608 00000000 014900E4
0012F5E8h:  014C2D00 00000017 0000000A 773C8B56
0012F5F8h:  DCBAABCD 00000000 00170E68 00000001
0012F608h:  00170E7A 0012F630 77D1EC6E 0012F624
0012F618h:  0000003C 002B0540 00000000 0012F6B8
0012F628h:  00000050 00010041 00000000 00000000
0012F638h:  00000000 00000000 00000000 00000000
0012F648h:  00002404 00000000 00000000 7C809EB3
0012F658h:  00176AB8 FFFFFFF5 00000000 00000000
0012F668h:  00000000 00000190 00000000 22010203
0012F678h:  00610054 006F0068 0061006D 00000000
0012F688h:  00000000 00000000 00000000 00000000
0012F698h:  00000000 00000000 00000000 00000000
0012F6A8h:  00000000 00000000 00000000 00000000
0012F6B8h:  FFFFFFF5 00000000 00000000 00000000
0012F6C8h:  00000190 00000000 22010203 00610054
0012F6D8h:  006F0068 0061006D 00000000 00000000
Registers:
EAX: 00000000, EBX: 002B0540, ECX: 1000D469, EDX: 01A00001
ESI: 0012F5E4, EDI: 0012F6B8, EBP: 0012F730, ESP: 0012F5C8
Crash location: "foo_uie_trackinfo", loaded at 01470000h - 014A3000h

Loaded modules:
foobar2000                      loaded at 00400000h - 004DC000h
ntdll                            loaded at 7C910000h - 7C9C7000h
kernel32                        loaded at 7C800000h - 7C906000h
COMCTL32                        loaded at 773A0000h - 774A2000h
msvcrt                          loaded at 77BE0000h - 77C38000h
ADVAPI32                        loaded at 77DA0000h - 77E4A000h
RPCRT4                          loaded at 77E50000h - 77EE1000h
GDI32                            loaded at 77EF0000h - 77F37000h
USER32                          loaded at 77D10000h - 77DA0000h
SHLWAPI                          loaded at 77F40000h - 77FB6000h
SHELL32                          loaded at 7C9D0000h - 7D1EF000h
ole32                            loaded at 774B0000h - 775ED000h
shared                          loaded at 10000000h - 1002A000h
comdlg32                        loaded at 76350000h - 7639A000h
IMM32                            loaded at 76330000h - 7634D000h
LPK                              loaded at 62E10000h - 62E19000h
USP10                            loaded at 75790000h - 757FB000h
wbsys                            loaded at 66500000h - 6650A000h
uxtheme                          loaded at 5B0F0000h - 5B128000h
LgWndHk                          loaded at 00B50000h - 00B57000h
msctfime                        loaded at 75250000h - 7527E000h
foo_abx                          loaded at 00B70000h - 00BA3000h
foo_ac3                          loaded at 00BD0000h - 00BFC000h
foo_albumlist                    loaded at 00C20000h - 00C5F000h
foo_audioscrobbler              loaded at 00C80000h - 00CAB000h
libcurl                          loaded at 00CC0000h - 00D10000h
WS2_32                          loaded at 71A10000h - 71A27000h
WS2HELP                          loaded at 71A00000h - 71A08000h
WINMM                            loaded at 76AF0000h - 76B1E000h
foo_autoplaylist                loaded at 00E00000h - 00E32000h
foo_benchmark                    loaded at 00E60000h - 00E86000h
foo_bitcompare                  loaded at 00EB0000h - 00ED6000h
foo_cdda                        loaded at 00F00000h - 00F2D000h
foo_converter                    loaded at 00F50000h - 00FB0000h
foo_dbsearch                    loaded at 00FD0000h - 0102C000h
foo_dsp_std                      loaded at 01050000h - 0108F000h
foo_freedb2                      loaded at 010B0000h - 010F0000h
foo_input_alac                  loaded at 01110000h - 0112E000h
foo_input_monkey                loaded at 01150000h - 01193000h
foo_input_std                    loaded at 011C0000h - 012CC000h
foo_lock                        loaded at 012F0000h - 01309000h
foo_masstag                      loaded at 01330000h - 0137E000h
foo_rgscan                      loaded at 013A0000h - 013E3000h
foo_uie_albumlist                loaded at 01410000h - 0144F000h
foo_uie_trackinfo                loaded at 01470000h - 014A3000h
foo_ui_columns                  loaded at 014D0000h - 0156A000h
foo_ui_std                      loaded at 01590000h - 015E7000h
iTchHk                          loaded at 01710000h - 01717000h
gdiplus                          loaded at 4EBA0000h - 4ED43000h
wtsapi32                        loaded at 76F10000h - 76F18000h
WINSTA                          loaded at 76300000h - 76310000h
NETAPI32                        loaded at 597D0000h - 59824000h
LgMsgHk                          loaded at 019B0000h - 019CE000h
mswsock                          loaded at 719B0000h - 719F0000h
DNSAPI                          loaded at 76EE0000h - 76F07000h
hnetcfg                          loaded at 66710000h - 66769000h
iphlpapi                        loaded at 76D20000h - 76D39000h
wshtcpip                        loaded at 719F0000h - 719F8000h
winrnr                          loaded at 76F70000h - 76F78000h
WLDAP32                          loaded at 76F20000h - 76F4D000h
rasadhlp                        loaded at 76F80000h - 76F86000h
kbdhook                          loaded at 03150000h - 03157000h
imagehlp                        loaded at 76C50000h - 76C78000h
DBGHELP                          loaded at 59DD0000h - 59E71000h
VERSION                          loaded at 77BD0000h - 77BD8000h

Stack dump analysis:
Address: 0147211Eh, location: "foo_uie_trackinfo", loaded at 01470000h - 014A3000h
Address: 01471FB0h, location: "foo_uie_trackinfo", loaded at 01470000h - 014A3000h
Address: 014900E4h, location: "foo_uie_trackinfo", loaded at 01470000h - 014A3000h
Address: 773C8B56h, location: "COMCTL32", loaded at 773A0000h - 774A2000h
Symbol: "Ordinal384" (+0000CD2Ch)
Address: 77D1EC6Eh, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "DrawTextExW" (+0000001Eh)
Address: 7C809EB3h, location: "kernel32", loaded at 7C800000h - 7C906000h
Symbol: "IsBadReadPtr" (+00000000h)
Address: 77D24204h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "DefDlgProcW" (+00000022h)
Address: 0148D0E2h, location: "foo_uie_trackinfo", loaded at 01470000h - 014A3000h
Address: 77D18734h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "GetDC" (+0000006Dh)
Address: 01471FB0h, location: "foo_uie_trackinfo", loaded at 01470000h - 014A3000h
Address: 01471FB0h, location: "foo_uie_trackinfo", loaded at 01470000h - 014A3000h
Address: 77D2418Dh, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "PrivateExtractIconExW" (+000002B2h)
Address: 01471FB0h, location: "foo_uie_trackinfo", loaded at 01470000h - 014A3000h
Address: 77D40467h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "DeregisterShellHookWindow" (+000001CFh)
Address: 77D241B0h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "PrivateExtractIconExW" (+000002D5h)
Address: 77D23FD9h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "PrivateExtractIconExW" (+000000FEh)
Address: 01471FB0h, location: "foo_uie_trackinfo", loaded at 01470000h - 014A3000h
Address: 77D241E2h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 77D184FCh, location: "USER32", loaded at 77D10000h - 77DA0000h
Address: 77D185A4h, location: "USER32", loaded at 77D10000h - 77DA0000h
Address: 77D24204h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "DefDlgProcW" (+00000022h)
Address: 77D18734h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "GetDC" (+0000006Dh)
Address: 77D241E2h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 77D241E2h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 77D18816h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "GetDC" (+0000014Fh)
Address: 77D241E2h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 77D1882Ah, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "GetDC" (+00000163h)
Address: 77D40467h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "DeregisterShellHookWindow" (+000001CFh)
Address: 77D18830h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "GetDC" (+00000169h)
Address: 77D1B89Bh, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "GetParent" (+0000016Ch)
Address: 77D241E2h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 77D1B903h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "SendMessageW" (+00000049h)
Address: 773C6FF6h, location: "COMCTL32", loaded at 773A0000h - 774A2000h
Symbol: "Ordinal384" (+0000B1CCh)
Address: 773C70D8h, location: "COMCTL32", loaded at 773A0000h - 774A2000h
Symbol: "Ordinal384" (+0000B2AEh)
Address: 773C93DDh, location: "COMCTL32", loaded at 773A0000h - 774A2000h
Symbol: "Ordinal384" (+0000D5B3h)
Address: 773C8B56h, location: "COMCTL32", loaded at 773A0000h - 774A2000h
Symbol: "Ordinal384" (+0000CD2Ch)
Address: 77D40467h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "DeregisterShellHookWindow" (+000001CFh)
Address: 77D1EAB0h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "EnableMenuItem" (+00000081h)
Address: 77D1EC03h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "CallNextHookEx" (+00000100h)
Address: 7C91EAE3h, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "KiUserCallbackDispatcher" (+00000013h)
Address: 019B4D7Dh, location: "LgMsgHk", loaded at 019B0000h - 019CE000h
Symbol: "UnInstallMsgHook" (+000004D8h)
Address: 77D318A2h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "UnhookWinEvent" (+00000025h)
Address: 77D18734h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "GetDC" (+0000006Dh)
Address: 773C8B56h, location: "COMCTL32", loaded at 773A0000h - 774A2000h
Symbol: "Ordinal384" (+0000CD2Ch)
Address: 773C8B56h, location: "COMCTL32", loaded at 773A0000h - 774A2000h
Symbol: "Ordinal384" (+0000CD2Ch)
Address: 77D18816h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "GetDC" (+0000014Fh)
Address: 773C8B56h, location: "COMCTL32", loaded at 773A0000h - 774A2000h
Symbol: "Ordinal384" (+0000CD2Ch)
Address: 77D40467h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "DeregisterShellHookWindow" (+000001CFh)
Address: 77D18830h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "GetDC" (+00000169h)
Address: 77D189CDh, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "GetWindowLongW" (+00000127h)
Address: 773C8B56h, location: "COMCTL32", loaded at 773A0000h - 774A2000h
Symbol: "Ordinal384" (+0000CD2Ch)
Address: 77D1EC03h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "CallNextHookEx" (+00000100h)
Address: 77D31B4Dh, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "AppendMenuA" (+0000006Eh)
Address: 77D40467h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "DeregisterShellHookWindow" (+000001CFh)
Address: 77D189F0h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "GetWindowLongW" (+0000014Ah)
Address: 77D18A10h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "DispatchMessageW" (+0000000Fh)
Address: 77D2E097h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "IsDialogMessageW" (+000000DBh)
Address: 0042A376h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 0042A47Eh, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 77D1DAEAh, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "DestroyWindow" (+00000000h)
Address: 0042AF1Ah, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004AD734h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004AC600h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004AC600h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00400000h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004AE828h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004CD1A0h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 7C920732h, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "RtlAllocateHeap" (+0000015Eh)
Address: 7C91EE18h, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "strchr" (+00000117h)
Address: 7C921538h, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "wcsncpy" (+00000AA9h)
Address: 7C921596h, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "wcsncpy" (+00000B07h)
Address: 7C9206EBh, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "RtlAllocateHeap" (+00000117h)
Address: 004CD280h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004A18E4h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 7C920570h, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "RtlFreeHeap" (+00000133h)
Address: 7C92056Dh, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "RtlFreeHeap" (+00000130h)
Address: 7C927CB7h, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "RtlReAllocateHeap" (+000002BAh)
Address: 7C927BF5h, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "RtlReAllocateHeap" (+000001F8h)
Address: 7C927BB0h, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "RtlReAllocateHeap" (+000001B3h)
Address: 7C9206EBh, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "RtlAllocateHeap" (+00000117h)
Address: 7C91EE18h, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "strchr" (+00000117h)
Address: 1000D533h, location: "shared", loaded at 10000000h - 1002A000h
Address: 7C91EE18h, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "strchr" (+00000117h)
Address: 7C920570h, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "RtlFreeHeap" (+00000133h)
Address: 7C92056Dh, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "RtlFreeHeap" (+00000130h)
Address: 1000D469h, location: "shared", loaded at 10000000h - 1002A000h
Address: 1000D469h, location: "shared", loaded at 10000000h - 1002A000h
Address: 10003AB0h, location: "shared", loaded at 10000000h - 1002A000h
Symbol: "t_font_description::g_from_font" (+00000030h)
Address: 10003ABEh, location: "shared", loaded at 10000000h - 1002A000h
Symbol: "t_font_description::g_from_font" (+0000003Eh)
Address: 7C921B09h, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "RtlLogStackBackTrace" (+00000025h)
Address: 004CD210h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 7C921B09h, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "RtlLogStackBackTrace" (+00000025h)
Address: 004CD280h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004813A4h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 7C91EE18h, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "strchr" (+00000117h)
Address: 7C9206F0h, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "RtlAllocateHeap" (+0000011Ch)
Address: 7C9206EBh, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "RtlAllocateHeap" (+00000117h)
Address: 0048775Fh, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 01000000h, location: "foo_dbsearch", loaded at 00FD0000h - 0102C000h
Address: 00486560h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004AD480h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 10002D77h, location: "shared", loaded at 10000000h - 1002A000h
Symbol: "uPrintCrashInfo_SetDumpPath" (+000000B7h)
Address: 004AD480h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 0049D48Bh, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004AD480h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 0042B0F4h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00400000h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004CA288h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00486E75h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00481239h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00481233h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004A18E8h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004A0CE5h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00486560h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 0049D66Dh, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00485445h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00400000h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00486560h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 7C816D4Fh, location: "kernel32", loaded at 7C800000h - 7C906000h
Symbol: "RegisterWaitForInputIdle" (+00000049h)
Address: 7C8399F3h, location: "kernel32", loaded at 7C800000h - 7C906000h
Symbol: "FindAtomW" (+00000094h)
Address: 7C816D58h, location: "kernel32", loaded at 7C800000h - 7C906000h
Symbol: "RegisterWaitForInputIdle" (+00000052h)
Address: 004854AEh, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004B0063h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00410072h, location: "foobar2000", loaded at 00400000h - 004DC000h

Version info:
foobar2000 v0.9
UNICODE

Additional info:
Album List 3.1.0  (foo_albumlist)
FLAC decoder 1.1.0  (foo_input_std)
Binary comparator 1.0  (foo_bitcompare)
Decoding speed test 1.0  (foo_benchmark)
Track info panel 0.1  (foo_uie_trackinfo)
freedb tagger v0.5.1  (foo_freedb2)
AC3 decoder 0.7  (foo_ac3)
ALAC decoder 1.0  (foo_input_alac)
Pause on Lock 0.4  (foo_lock)
ABX comparator 1.3  (foo_abx)
Monkey's Audio decoder 2.0  (foo_input_monkey)
Database search 1.3.1 beta 11  (foo_dbsearch)
ReplayGain Scanner 2.0  (foo_rgscan)
Audioscrobbler 1.2.6  (foo_audioscrobbler)
Masstagger 1.5  (foo_masstag)
Default User Interface 0.9acc  (foo_ui_std)
Album list panel 0.2.1 beta 3  (foo_uie_albumlist)
Standard DSP array 1.0  (foo_dsp_std)
Columns UI 0.1.3 pre-alpha 17v6  (foo_ui_columns)
MPEG-4 AAC decoder 2.1  (foo_input_std)
Standard input array 1.0  (foo_input_std)
CD Audio decoder 2.0  (foo_cdda)
Converter 1.0  (foo_converter)
Title: foo_uie_trackinfo
Post by: Stuart60611 on 2006-03-26 22:28:54
Quote
It crashed when I attempted to change the font to Tahoma 8pt:

Code: [Select]
Illegal operation:
Code: C0000005h, flags: 00000000h, address: 01471BD0h
Access violation, operation: read, address: 00000008h
Call path:
entry=>app_mainloop
This is the first crash logged by this instance.
Code bytes (01471BD0h):
01471B90h:  00 8B 74 24 18 8D 46 0C 50 33 C9 33 D2 C7 44 24
01471BA0h:  14 00 00 00 00 E8 46 36 00 00 C7 06 AC 01 49 01
01471BB0h:  C7 46 04 C0 01 49 01 8B 4C 24 08 64 89 0D 00 00
01471BC0h:  00 00 59 5E 83 C4 0C C2 04 00 CC CC CC CC CC CC
01471BD0h:  8B 40 08 85 C0 74 0B 6A 01 6A 00 50 FF 15 98 E1
01471BE0h:  48 01 C3 CC CC CC CC CC CC CC CC CC CC CC CC CC
01471BF0h:  B8 20 FF 48 01 C3 CC CC CC CC CC CC CC CC CC CC
01471C00h:  8B 4C 24 04 8B 01 8B 50 08 6A FF 68 BC FF 48 01
Stack (0012F5C8h):
0012F5A8h:  0012E4DC 7C9D93A0 77F443DD 7C9D93A0
0012F5B8h:  00000004 00000000 0012D9E8 00000250
0012F5C8h:  0147211E CFB0D660 0012F798 01471FB0
0012F5D8h:  00000000 0012F608 00000000 014900E4
0012F5E8h:  014C2D00 00000017 0000000A 773C8B56
0012F5F8h:  DCBAABCD 00000000 00170E68 00000001
0012F608h:  00170E7A 0012F630 77D1EC6E 0012F624
0012F618h:  0000003C 002B0540 00000000 0012F6B8
0012F628h:  00000050 00010041 00000000 00000000
0012F638h:  00000000 00000000 00000000 00000000
0012F648h:  00002404 00000000 00000000 7C809EB3
0012F658h:  00176AB8 FFFFFFF5 00000000 00000000
0012F668h:  00000000 00000190 00000000 22010203
0012F678h:  00610054 006F0068 0061006D 00000000
0012F688h:  00000000 00000000 00000000 00000000
0012F698h:  00000000 00000000 00000000 00000000
0012F6A8h:  00000000 00000000 00000000 00000000
0012F6B8h:  FFFFFFF5 00000000 00000000 00000000
0012F6C8h:  00000190 00000000 22010203 00610054
0012F6D8h:  006F0068 0061006D 00000000 00000000
Registers:
EAX: 00000000, EBX: 002B0540, ECX: 1000D469, EDX: 01A00001
ESI: 0012F5E4, EDI: 0012F6B8, EBP: 0012F730, ESP: 0012F5C8
Crash location: "foo_uie_trackinfo", loaded at 01470000h - 014A3000h

Loaded modules:
foobar2000                       loaded at 00400000h - 004DC000h
ntdll                            loaded at 7C910000h - 7C9C7000h
kernel32                         loaded at 7C800000h - 7C906000h
COMCTL32                         loaded at 773A0000h - 774A2000h
msvcrt                           loaded at 77BE0000h - 77C38000h
ADVAPI32                         loaded at 77DA0000h - 77E4A000h
RPCRT4                           loaded at 77E50000h - 77EE1000h
GDI32                            loaded at 77EF0000h - 77F37000h
USER32                           loaded at 77D10000h - 77DA0000h
SHLWAPI                          loaded at 77F40000h - 77FB6000h
SHELL32                          loaded at 7C9D0000h - 7D1EF000h
ole32                            loaded at 774B0000h - 775ED000h
shared                           loaded at 10000000h - 1002A000h
comdlg32                         loaded at 76350000h - 7639A000h
IMM32                            loaded at 76330000h - 7634D000h
LPK                              loaded at 62E10000h - 62E19000h
USP10                            loaded at 75790000h - 757FB000h
wbsys                            loaded at 66500000h - 6650A000h
uxtheme                          loaded at 5B0F0000h - 5B128000h
LgWndHk                          loaded at 00B50000h - 00B57000h
msctfime                         loaded at 75250000h - 7527E000h
foo_abx                          loaded at 00B70000h - 00BA3000h
foo_ac3                          loaded at 00BD0000h - 00BFC000h
foo_albumlist                    loaded at 00C20000h - 00C5F000h
foo_audioscrobbler               loaded at 00C80000h - 00CAB000h
libcurl                          loaded at 00CC0000h - 00D10000h
WS2_32                           loaded at 71A10000h - 71A27000h
WS2HELP                          loaded at 71A00000h - 71A08000h
WINMM                            loaded at 76AF0000h - 76B1E000h
foo_autoplaylist                 loaded at 00E00000h - 00E32000h
foo_benchmark                    loaded at 00E60000h - 00E86000h
foo_bitcompare                   loaded at 00EB0000h - 00ED6000h
foo_cdda                         loaded at 00F00000h - 00F2D000h
foo_converter                    loaded at 00F50000h - 00FB0000h
foo_dbsearch                     loaded at 00FD0000h - 0102C000h
foo_dsp_std                      loaded at 01050000h - 0108F000h
foo_freedb2                      loaded at 010B0000h - 010F0000h
foo_input_alac                   loaded at 01110000h - 0112E000h
foo_input_monkey                 loaded at 01150000h - 01193000h
foo_input_std                    loaded at 011C0000h - 012CC000h
foo_lock                         loaded at 012F0000h - 01309000h
foo_masstag                      loaded at 01330000h - 0137E000h
foo_rgscan                       loaded at 013A0000h - 013E3000h
foo_uie_albumlist                loaded at 01410000h - 0144F000h
foo_uie_trackinfo                loaded at 01470000h - 014A3000h
foo_ui_columns                   loaded at 014D0000h - 0156A000h
foo_ui_std                       loaded at 01590000h - 015E7000h
iTchHk                           loaded at 01710000h - 01717000h
gdiplus                          loaded at 4EBA0000h - 4ED43000h
wtsapi32                         loaded at 76F10000h - 76F18000h
WINSTA                           loaded at 76300000h - 76310000h
NETAPI32                         loaded at 597D0000h - 59824000h
LgMsgHk                          loaded at 019B0000h - 019CE000h
mswsock                          loaded at 719B0000h - 719F0000h
DNSAPI                           loaded at 76EE0000h - 76F07000h
hnetcfg                          loaded at 66710000h - 66769000h
iphlpapi                         loaded at 76D20000h - 76D39000h
wshtcpip                         loaded at 719F0000h - 719F8000h
winrnr                           loaded at 76F70000h - 76F78000h
WLDAP32                          loaded at 76F20000h - 76F4D000h
rasadhlp                         loaded at 76F80000h - 76F86000h
kbdhook                          loaded at 03150000h - 03157000h
imagehlp                         loaded at 76C50000h - 76C78000h
DBGHELP                          loaded at 59DD0000h - 59E71000h
VERSION                          loaded at 77BD0000h - 77BD8000h

Stack dump analysis:
Address: 0147211Eh, location: "foo_uie_trackinfo", loaded at 01470000h - 014A3000h
Address: 01471FB0h, location: "foo_uie_trackinfo", loaded at 01470000h - 014A3000h
Address: 014900E4h, location: "foo_uie_trackinfo", loaded at 01470000h - 014A3000h
Address: 773C8B56h, location: "COMCTL32", loaded at 773A0000h - 774A2000h
Symbol: "Ordinal384" (+0000CD2Ch)
Address: 77D1EC6Eh, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "DrawTextExW" (+0000001Eh)
Address: 7C809EB3h, location: "kernel32", loaded at 7C800000h - 7C906000h
Symbol: "IsBadReadPtr" (+00000000h)
Address: 77D24204h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "DefDlgProcW" (+00000022h)
Address: 0148D0E2h, location: "foo_uie_trackinfo", loaded at 01470000h - 014A3000h
Address: 77D18734h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "GetDC" (+0000006Dh)
Address: 01471FB0h, location: "foo_uie_trackinfo", loaded at 01470000h - 014A3000h
Address: 01471FB0h, location: "foo_uie_trackinfo", loaded at 01470000h - 014A3000h
Address: 77D2418Dh, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "PrivateExtractIconExW" (+000002B2h)
Address: 01471FB0h, location: "foo_uie_trackinfo", loaded at 01470000h - 014A3000h
Address: 77D40467h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "DeregisterShellHookWindow" (+000001CFh)
Address: 77D241B0h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "PrivateExtractIconExW" (+000002D5h)
Address: 77D23FD9h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "PrivateExtractIconExW" (+000000FEh)
Address: 01471FB0h, location: "foo_uie_trackinfo", loaded at 01470000h - 014A3000h
Address: 77D241E2h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 77D184FCh, location: "USER32", loaded at 77D10000h - 77DA0000h
Address: 77D185A4h, location: "USER32", loaded at 77D10000h - 77DA0000h
Address: 77D24204h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "DefDlgProcW" (+00000022h)
Address: 77D18734h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "GetDC" (+0000006Dh)
Address: 77D241E2h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 77D241E2h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 77D18816h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "GetDC" (+0000014Fh)
Address: 77D241E2h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 77D1882Ah, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "GetDC" (+00000163h)
Address: 77D40467h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "DeregisterShellHookWindow" (+000001CFh)
Address: 77D18830h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "GetDC" (+00000169h)
Address: 77D1B89Bh, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "GetParent" (+0000016Ch)
Address: 77D241E2h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 77D1B903h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "SendMessageW" (+00000049h)
Address: 773C6FF6h, location: "COMCTL32", loaded at 773A0000h - 774A2000h
Symbol: "Ordinal384" (+0000B1CCh)
Address: 773C70D8h, location: "COMCTL32", loaded at 773A0000h - 774A2000h
Symbol: "Ordinal384" (+0000B2AEh)
Address: 773C93DDh, location: "COMCTL32", loaded at 773A0000h - 774A2000h
Symbol: "Ordinal384" (+0000D5B3h)
Address: 773C8B56h, location: "COMCTL32", loaded at 773A0000h - 774A2000h
Symbol: "Ordinal384" (+0000CD2Ch)
Address: 77D40467h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "DeregisterShellHookWindow" (+000001CFh)
Address: 77D1EAB0h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "EnableMenuItem" (+00000081h)
Address: 77D1EC03h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "CallNextHookEx" (+00000100h)
Address: 7C91EAE3h, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "KiUserCallbackDispatcher" (+00000013h)
Address: 019B4D7Dh, location: "LgMsgHk", loaded at 019B0000h - 019CE000h
Symbol: "UnInstallMsgHook" (+000004D8h)
Address: 77D318A2h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "UnhookWinEvent" (+00000025h)
Address: 77D18734h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "GetDC" (+0000006Dh)
Address: 773C8B56h, location: "COMCTL32", loaded at 773A0000h - 774A2000h
Symbol: "Ordinal384" (+0000CD2Ch)
Address: 773C8B56h, location: "COMCTL32", loaded at 773A0000h - 774A2000h
Symbol: "Ordinal384" (+0000CD2Ch)
Address: 77D18816h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "GetDC" (+0000014Fh)
Address: 773C8B56h, location: "COMCTL32", loaded at 773A0000h - 774A2000h
Symbol: "Ordinal384" (+0000CD2Ch)
Address: 77D40467h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "DeregisterShellHookWindow" (+000001CFh)
Address: 77D18830h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "GetDC" (+00000169h)
Address: 77D189CDh, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "GetWindowLongW" (+00000127h)
Address: 773C8B56h, location: "COMCTL32", loaded at 773A0000h - 774A2000h
Symbol: "Ordinal384" (+0000CD2Ch)
Address: 77D1EC03h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "CallNextHookEx" (+00000100h)
Address: 77D31B4Dh, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "AppendMenuA" (+0000006Eh)
Address: 77D40467h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "DeregisterShellHookWindow" (+000001CFh)
Address: 77D189F0h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "GetWindowLongW" (+0000014Ah)
Address: 77D18A10h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "DispatchMessageW" (+0000000Fh)
Address: 77D2E097h, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "IsDialogMessageW" (+000000DBh)
Address: 0042A376h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 0042A47Eh, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 77D1DAEAh, location: "USER32", loaded at 77D10000h - 77DA0000h
Symbol: "DestroyWindow" (+00000000h)
Address: 0042AF1Ah, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004AD734h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004AC600h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004AC600h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00400000h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004AE828h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004CD1A0h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 7C920732h, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "RtlAllocateHeap" (+0000015Eh)
Address: 7C91EE18h, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "strchr" (+00000117h)
Address: 7C921538h, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "wcsncpy" (+00000AA9h)
Address: 7C921596h, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "wcsncpy" (+00000B07h)
Address: 7C9206EBh, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "RtlAllocateHeap" (+00000117h)
Address: 004CD280h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004A18E4h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 7C920570h, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "RtlFreeHeap" (+00000133h)
Address: 7C92056Dh, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "RtlFreeHeap" (+00000130h)
Address: 7C927CB7h, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "RtlReAllocateHeap" (+000002BAh)
Address: 7C927BF5h, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "RtlReAllocateHeap" (+000001F8h)
Address: 7C927BB0h, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "RtlReAllocateHeap" (+000001B3h)
Address: 7C9206EBh, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "RtlAllocateHeap" (+00000117h)
Address: 7C91EE18h, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "strchr" (+00000117h)
Address: 1000D533h, location: "shared", loaded at 10000000h - 1002A000h
Address: 7C91EE18h, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "strchr" (+00000117h)
Address: 7C920570h, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "RtlFreeHeap" (+00000133h)
Address: 7C92056Dh, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "RtlFreeHeap" (+00000130h)
Address: 1000D469h, location: "shared", loaded at 10000000h - 1002A000h
Address: 1000D469h, location: "shared", loaded at 10000000h - 1002A000h
Address: 10003AB0h, location: "shared", loaded at 10000000h - 1002A000h
Symbol: "t_font_description::g_from_font" (+00000030h)
Address: 10003ABEh, location: "shared", loaded at 10000000h - 1002A000h
Symbol: "t_font_description::g_from_font" (+0000003Eh)
Address: 7C921B09h, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "RtlLogStackBackTrace" (+00000025h)
Address: 004CD210h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 7C921B09h, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "RtlLogStackBackTrace" (+00000025h)
Address: 004CD280h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004813A4h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 7C91EE18h, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "strchr" (+00000117h)
Address: 7C9206F0h, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "RtlAllocateHeap" (+0000011Ch)
Address: 7C9206EBh, location: "ntdll", loaded at 7C910000h - 7C9C7000h
Symbol: "RtlAllocateHeap" (+00000117h)
Address: 0048775Fh, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 01000000h, location: "foo_dbsearch", loaded at 00FD0000h - 0102C000h
Address: 00486560h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004AD480h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 10002D77h, location: "shared", loaded at 10000000h - 1002A000h
Symbol: "uPrintCrashInfo_SetDumpPath" (+000000B7h)
Address: 004AD480h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 0049D48Bh, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004AD480h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 0042B0F4h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00400000h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004CA288h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00486E75h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00481239h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00481233h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004A18E8h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004A0CE5h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00486560h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 0049D66Dh, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00485445h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00400000h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00486560h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 7C816D4Fh, location: "kernel32", loaded at 7C800000h - 7C906000h
Symbol: "RegisterWaitForInputIdle" (+00000049h)
Address: 7C8399F3h, location: "kernel32", loaded at 7C800000h - 7C906000h
Symbol: "FindAtomW" (+00000094h)
Address: 7C816D58h, location: "kernel32", loaded at 7C800000h - 7C906000h
Symbol: "RegisterWaitForInputIdle" (+00000052h)
Address: 004854AEh, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004B0063h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00410072h, location: "foobar2000", loaded at 00400000h - 004DC000h

Version info:
foobar2000 v0.9
UNICODE

Additional info:
Album List 3.1.0  (foo_albumlist)
FLAC decoder 1.1.0  (foo_input_std)
Binary comparator 1.0  (foo_bitcompare)
Decoding speed test 1.0  (foo_benchmark)
Track info panel 0.1  (foo_uie_trackinfo)
freedb tagger v0.5.1  (foo_freedb2)
AC3 decoder 0.7  (foo_ac3)
ALAC decoder 1.0  (foo_input_alac)
Pause on Lock 0.4  (foo_lock)
ABX comparator 1.3  (foo_abx)
Monkey's Audio decoder 2.0  (foo_input_monkey)
Database search 1.3.1 beta 11  (foo_dbsearch)
ReplayGain Scanner 2.0  (foo_rgscan)
Audioscrobbler 1.2.6  (foo_audioscrobbler)
Masstagger 1.5  (foo_masstag)
Default User Interface 0.9acc  (foo_ui_std)
Album list panel 0.2.1 beta 3  (foo_uie_albumlist)
Standard DSP array 1.0  (foo_dsp_std)
Columns UI 0.1.3 pre-alpha 17v6  (foo_ui_columns)
MPEG-4 AAC decoder 2.1  (foo_input_std)
Standard input array 1.0  (foo_input_std)
CD Audio decoder 2.0  (foo_cdda)
Converter 1.0  (foo_converter)
[a href=\"index.php?act=findpost&pid=375537\"][{POST_SNAPBACK}][/a]

Me too!
Title: foo_uie_trackinfo
Post by: drbeachboy on 2006-03-26 22:30:10
Hi G-Lite,

It is working great here too. Thank you very much for taking the time and effort to port this over to V0.9


Edit: I changed to Tahoma 8 and did not encounter a crash.
Title: foo_uie_trackinfo
Post by: Stuart60611 on 2006-03-26 22:37:50
My crash when attempting to change font.

Code: [Select]
Illegal operation:
Code: C0000005h, flags: 00000000h, address: 01661BD0h
Access violation, operation: read, address: 00000008h
Call path:
entry=>app_mainloop
This is the first crash logged by this instance.
Code bytes (01661BD0h):
01661B90h:  00 8B 74 24 18 8D 46 0C 50 33 C9 33 D2 C7 44 24
01661BA0h:  14 00 00 00 00 E8 46 36 00 00 C7 06 AC 01 68 01
01661BB0h:  C7 46 04 C0 01 68 01 8B 4C 24 08 64 89 0D 00 00
01661BC0h:  00 00 59 5E 83 C4 0C C2 04 00 CC CC CC CC CC CC
01661BD0h:  8B 40 08 85 C0 74 0B 6A 01 6A 00 50 FF 15 98 E1
01661BE0h:  67 01 C3 CC CC CC CC CC CC CC CC CC CC CC CC CC
01661BF0h:  B8 20 FF 67 01 C3 CC CC CC CC CC CC CC CC CC CC
01661C00h:  8B 4C 24 04 8B 01 8B 50 08 6A FF 68 BC FF 67 01
Stack (0012F708h):
0012F6E8h:  B976DBB8 A0000CAB 82140468 00000001
0012F6F8h:  A0005C09 000002CE 00000111 A0327E38
0012F708h:  0166211E 0FE8D13A 00000111 004503B8
0012F718h:  005C0CF8 00000000 0012F8BC 016800E4
0012F728h:  016A3E80 00000022 00000015 00030333
0012F738h:  00000000 00000000 0012F8BC 00000000
0012F748h:  00040000 0012F8BC 005C0DB8 FFFFFFF0
0012F758h:  0000003C 004B02CE 00000000 0012F7F8
0012F768h:  00000050 00010041 00000000 00000000
0012F778h:  00000000 00000000 00000000 00000000
0012F788h:  00002404 00000000 00000000 66008D98
0012F798h:  00000001 FFFFFFF5 00000000 00000000
0012F7A8h:  00000000 00000190 00000000 12010203
0012F7B8h:  00610050 0061006C 00690074 006F006E
0012F7C8h:  004C0020 006E0069 0074006F 00700079
0012F7D8h:  00000065 00000000 00000000 00000000
0012F7E8h:  00000000 00000000 00000000 00000000
0012F7F8h:  FFFFFFF5 00000000 00000000 00000000
0012F808h:  00000190 00000000 12010203 00610050
0012F818h:  0061006C 00690074 006F006E 004C0020
Registers:
EAX: 00000000, EBX: 004B02CE, ECX: 1000D469, EDX: 07690001
ESI: 0012F724, EDI: 0012F7F8, EBP: 0012F870, ESP: 0012F708
Crash location: "foo_uie_trackinfo", loaded at 01660000h - 01693000h

Loaded modules:
foobar2000                       loaded at 00400000h - 004DC000h
ntdll                            loaded at 77F80000h - 77FFC000h
COMCTL32                         loaded at 71710000h - 71794000h
GDI32                            loaded at 77F40000h - 77F7C000h
KERNEL32                         loaded at 7C570000h - 7C623000h
USER32                           loaded at 77E10000h - 77E79000h
ADVAPI32                         loaded at 7C2D0000h - 7C335000h
RPCRT4                           loaded at 77D30000h - 77DA8000h
SHLWAPI                          loaded at 70A70000h - 70AD6000h
msvcrt                           loaded at 78000000h - 78045000h
SHELL32                          loaded at 7CF30000h - 7D175000h
ole32                            loaded at 7CE20000h - 7CF0F000h
shared                           loaded at 10000000h - 1002A000h
comdlg32                         loaded at 76B30000h - 76B6E000h
WBlind                           loaded at 66000000h - 660CF000h
msimg32                          loaded at 6B2C0000h - 6B2C5000h
wbhelp                           loaded at 66600000h - 66617000h
foo_abx                          loaded at 00ED0000h - 00F03000h
foo_albumlist                    loaded at 00F20000h - 00F5F000h
foo_autoplaylist                 loaded at 00F70000h - 00FA2000h
foo_burninate                    loaded at 00FC0000h - 00FF6000h
VERSION                          loaded at 77820000h - 77827000h
LZ32                             loaded at 759B0000h - 759B6000h
foo_cdda                         loaded at 01010000h - 0103D000h
foo_common                       loaded at 01050000h - 0108A000h
foo_converter                    loaded at 010A0000h - 01100000h
foo_dbsearch                     loaded at 01110000h - 0116C000h
foo_dsp_delta                    loaded at 01180000h - 0119E000h
foo_dsp_std                      loaded at 011B0000h - 011EF000h
foo_freedb2                      loaded at 01200000h - 01240000h
foo_input_shorten                loaded at 01250000h - 0127E000h
foo_input_std                    loaded at 01290000h - 0139C000h
foo_lnk                          loaded at 013B0000h - 013C9000h
foo_masstag                      loaded at 013E0000h - 0142E000h
foo_out_ks                       loaded at 01440000h - 01463000h
SETUPAPI                         loaded at 77880000h - 7790E000h
USERENV                          loaded at 7C0F0000h - 7C154000h
foo_playlist_manager             loaded at 01480000h - 014C6000h
foo_pqview                       loaded at 014E0000h - 014FC000h
foo_random                       loaded at 01510000h - 0154F000h
foo_rgscan                       loaded at 01560000h - 015A3000h
foo_tradersfriend                loaded at 015C0000h - 015FD000h
foo_uie_albumlist                loaded at 01610000h - 0164F000h
foo_uie_trackinfo                loaded at 01660000h - 01693000h
foo_ui_columns                   loaded at 016B0000h - 01749000h
foo_ui_std                       loaded at 01760000h - 017B7000h
foo_unpack                       loaded at 017D0000h - 017FE000h
foo_utils                        loaded at 01810000h - 01849000h
imagehlp                         loaded at 77920000h - 77943000h
DBGHELP                          loaded at 72A00000h - 72A2D000h

Stack dump analysis:
Address: 0166211Eh, location: "foo_uie_trackinfo", loaded at 01660000h - 01693000h
Address: 004503B8h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 016800E4h, location: "foo_uie_trackinfo", loaded at 01660000h - 01693000h
Address: 004B02CEh, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 66008D98h, location: "WBlind", loaded at 66000000h - 660CF000h
Address: 004C0020h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004C0020h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 66024555h, location: "WBlind", loaded at 66000000h - 660CF000h
Address: 77E27A8Fh, location: "USER32", loaded at 77E10000h - 77E79000h
Address: 0167D0E2h, location: "foo_uie_trackinfo", loaded at 01660000h - 01693000h
Address: 77E4158Fh, location: "USER32", loaded at 77E10000h - 77E79000h
Address: 004B02CEh, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004503B8h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004503B8h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 77E3279Ch, location: "USER32", loaded at 77E10000h - 77E79000h
Address: 01661FB0h, location: "foo_uie_trackinfo", loaded at 01660000h - 01693000h
Address: 004B02CEh, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004503B8h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 6600E2F0h, location: "WBlind", loaded at 66000000h - 660CF000h
Address: 004503B8h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 77E3C1CAh, location: "USER32", loaded at 77E10000h - 77E79000h
Address: 004B02CEh, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004503B8h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 77F91BAFh, location: "ntdll", loaded at 77F80000h - 77FFC000h
Address: 004503B8h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 77E32719h, location: "USER32", loaded at 77E10000h - 77E79000h
Address: 77E33A0Bh, location: "USER32", loaded at 77E10000h - 77E79000h
Address: 004B02CEh, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004503B8h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004B02CEh, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 77E3B811h, location: "USER32", loaded at 77E10000h - 77E79000h
Address: 004503B8h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 77E38126h, location: "USER32", loaded at 77E10000h - 77E79000h
Address: 004B02CEh, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004503B8h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 77E38185h, location: "USER32", loaded at 77E10000h - 77E79000h
Address: 77E6D160h, location: "USER32", loaded at 77E10000h - 77E79000h
Address: 77E38C09h, location: "USER32", loaded at 77E10000h - 77E79000h
Address: 77F91BAFh, location: "ntdll", loaded at 77F80000h - 77FFC000h
Address: 6600E93Ah, location: "WBlind", loaded at 66000000h - 660CF000h
Address: 77E1F3C8h, location: "USER32", loaded at 77E10000h - 77E79000h
Address: 004503B8h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 77E1BEE8h, location: "USER32", loaded at 77E10000h - 77E79000h
Address: 77E27AE2h, location: "USER32", loaded at 77E10000h - 77E79000h
Address: 004503B8h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 77E4158Fh, location: "USER32", loaded at 77E10000h - 77E79000h
Address: 004503B8h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 77E41DC9h, location: "USER32", loaded at 77E10000h - 77E79000h
Address: 77E27A8Fh, location: "USER32", loaded at 77E10000h - 77E79000h
Address: 004503B8h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 016D1E53h, location: "foo_ui_columns", loaded at 016B0000h - 01749000h
Address: 77E437BDh, location: "USER32", loaded at 77E10000h - 77E79000h
Address: 77E32FE0h, location: "USER32", loaded at 77E10000h - 77E79000h
Address: 77E331D2h, location: "USER32", loaded at 77E10000h - 77E79000h
Address: 77E331E2h, location: "USER32", loaded at 77E10000h - 77E79000h
Address: 77E437BDh, location: "USER32", loaded at 77E10000h - 77E79000h
Address: 77E41DF8h, location: "USER32", loaded at 77E10000h - 77E79000h
Address: 77E41E7Eh, location: "USER32", loaded at 77E10000h - 77E79000h
Address: 77E32AAFh, location: "USER32", loaded at 77E10000h - 77E79000h
Address: 0042A376h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 0042A47Eh, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 77E33F1Dh, location: "USER32", loaded at 77E10000h - 77E79000h
Address: 004503B8h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 0042AF1Ah, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 01020102h, location: "foo_cdda", loaded at 01010000h - 0103D000h
Address: 01020100h, location: "foo_cdda", loaded at 01010000h - 0103D000h
Address: 004AD734h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004AC600h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004AC600h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00400000h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004AE828h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 77FB2C0Ch, location: "ntdll", loaded at 77F80000h - 77FFC000h
Address: 77FCB301h, location: "ntdll", loaded at 77F80000h - 77FFC000h
Address: 77FCB4BEh, location: "ntdll", loaded at 77F80000h - 77FFC000h
Address: 77FCB618h, location: "ntdll", loaded at 77F80000h - 77FFC000h
Address: 77FB2C0Ch, location: "ntdll", loaded at 77F80000h - 77FFC000h
Address: 77FCB301h, location: "ntdll", loaded at 77F80000h - 77FFC000h
Address: 77FCB4BEh, location: "ntdll", loaded at 77F80000h - 77FFC000h
Address: 77FCB618h, location: "ntdll", loaded at 77F80000h - 77FFC000h
Address: 004CD210h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 77FB2C0Ch, location: "ntdll", loaded at 77F80000h - 77FFC000h
Address: 77FCB301h, location: "ntdll", loaded at 77F80000h - 77FFC000h
Address: 77FCB4BEh, location: "ntdll", loaded at 77F80000h - 77FFC000h
Address: 77FCB618h, location: "ntdll", loaded at 77F80000h - 77FFC000h
Address: 004CD280h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 1000CD4Bh, location: "shared", loaded at 10000000h - 1002A000h
Address: 1000D3CAh, location: "shared", loaded at 10000000h - 1002A000h
Address: 1000EC50h, location: "shared", loaded at 10000000h - 1002A000h
Address: 1000D469h, location: "shared", loaded at 10000000h - 1002A000h
Address: 10003851h, location: "shared", loaded at 10000000h - 1002A000h
Symbol: "uGetCallStackPath" (+00000A61h)
Address: 77FCD168h, location: "ntdll", loaded at 77F80000h - 77FFC000h
Address: 00480E00h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004CD210h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 77FCFCA0h, location: "ntdll", loaded at 77F80000h - 77FFC000h
Address: 77F81600h, location: "ntdll", loaded at 77F80000h - 77FFC000h
Address: 00481300h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004CD280h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 77FCFCA0h, location: "ntdll", loaded at 77F80000h - 77FFC000h
Address: 77FCD168h, location: "ntdll", loaded at 77F80000h - 77FFC000h
Address: 00480EB5h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004AD480h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 10002D77h, location: "shared", loaded at 10000000h - 1002A000h
Symbol: "uPrintCrashInfo_SetDumpPath" (+000000B7h)
Address: 004AD480h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 0049D48Bh, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004AD480h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 0042B0F4h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00400000h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004CA288h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00486E75h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00481239h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00481233h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004A18E8h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004A0CE5h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004A18E4h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00486560h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 0049D66Dh, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00485445h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00400000h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00486560h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 7C598989h, location: "KERNEL32", loaded at 7C570000h - 7C623000h
Address: 7C5C1F54h, location: "KERNEL32", loaded at 7C570000h - 7C623000h
Address: 7C572B18h, location: "KERNEL32", loaded at 7C570000h - 7C623000h
Address: 004854AEh, location: "foobar2000", loaded at 00400000h - 004DC000h

Version info:
foobar2000 v0.9
UNICODE

Additional info:
Shell link resolver 1.1  (foo_lnk)
Standard input array 1.0  (foo_input_std)
Masstagger 1.5  (foo_masstag)
MPEG-4 AAC decoder 2.1  (foo_input_std)
Shorten decoder 0.4.2a  (foo_input_shorten)
freedb tagger v0.5.1  (foo_freedb2)
RAR reader 1.1  (foo_unpack)
Common services 0.1  (foo_common)
ZIP/GZIP reader 1.0  (foo_unpack)
Live show tagger 0.6.1  (foo_tradersfriend)
FLAC decoder 1.1.0  (foo_input_std)
Album list panel 0.2.1 beta 1  (foo_uie_albumlist)
ReplayGain Scanner 2.0  (foo_rgscan)
CD Audio decoder 2.0  (foo_cdda)
Audio CD Writer 2.0  (foo_burninate)
Album List 3.1.0  (foo_albumlist)
Default User Interface 0.9acc  (foo_ui_std)
ABX comparator 1.3  (foo_abx)
Columns UI 0.1.3 pre-alpha 17v5  (foo_ui_columns)
Randomized playlist entry 1.2.3  (foo_random)
Standard DSP array 1.0  (foo_dsp_std)
Converter 1.0  (foo_converter)
LPCM <--> delta-PCM converter 0.1.1  (foo_dsp_delta)
Playlist Manager 1.0  (foo_playlist_manager)
Database search 1.3.1 beta 11  (foo_dbsearch)
Kernel Streaming Output 1.2  (foo_out_ks)
Track info panel 0.1  (foo_uie_trackinfo)
Playlist tools 0.5.6  (foo_utils)
Title: foo_uie_trackinfo
Post by: Shade[ST] on 2006-03-26 22:45:29
The more people read it, the more they'll know... use [codebox ]  instead of [code ]
Title: foo_uie_trackinfo
Post by: Stuart60611 on 2006-03-26 22:48:29
Quote
The more people read it, the more they'll know... use [codebox ]  instead of [code ]
[a href="index.php?act=findpost&pid=375545"][{POST_SNAPBACK}][/a]


Sorry, but fixed it.
Title: foo_uie_trackinfo
Post by: Fungo on 2006-03-26 22:54:15
no crash here even when changing font.

can someone submit a more complex format string, please.
Title: foo_uie_trackinfo
Post by: toology on 2006-03-26 23:07:33
Used an old format string and changed the font without a crash.
Title: foo_uie_trackinfo
Post by: Xerion on 2006-03-26 23:27:14
Just trying some things in foobar 0.9, seems things that work in statusbar don't work here.

%bitrate% should contain VBR bitrate updated every second but it doesn't update.

%playback_time% contains the playback time now, but this doesn't work, the old  %_time_elapsed% doesn't seem to work either.

My progressbar doesn't move.


So I ask: Does the updating every second actually work in the 0.9 plugin?
Title: foo_uie_trackinfo
Post by: GrumpyDoctor on 2006-03-26 23:58:09
I am also having difficulties getting playback time information in the panel. It doesn't seem to understand %playback_time% or %playback_time_remaining%.
Title: foo_uie_trackinfo
Post by: Sphix on 2006-03-27 00:01:12
When I change the fomatting string/color/etc, it crashes
Title: foo_uie_trackinfo
Post by: amonrei on 2006-03-27 00:15:48
How do i get "last played" to work ?
Title: foo_uie_trackinfo
Post by: Seldaek on 2006-03-27 00:15:56
Quote
can someone submit a more complex format string, please.
[a href=\"index.php?act=findpost&pid=375548\"][{POST_SNAPBACK}][/a]

That's my old format string, which is working nearly 100% with this beta.
It makes use of some personal tags I use and it probably won't work half as it should if you don't have everything tagged like me but well, you can give it a try.

Code: [Select]
$puts(color,    0000aa)
$puts(color2,cccccc)
$puts(colorErr,666666)
$puts(colorSep,    505055)

$puts(progchar,■)
$puts(progchar2,▣)
$puts(proglength,46)
$puts(progchar2, ▪)

$puts(progfore,0000bb)
$puts(progback,000066)

  $progress2(%_time_elapsed_seconds%,%_time_total_seconds%,
$get(proglength),$get(progfore)
$get(progchar),
$get(progback)
$get(progchar2)) $char(10)
$char(10)

$get(color)Mode: $get(color2)%_trackinfo_mode%$char(10)
$get(colorSep)--$char(10)
$get(color)Artist: $get(color2)%artist%  $if(%altsearch%,$get(color)AltSearch: $get(color2)%altsearch%,)$char(10)
$get(color)Album: $get(color2)%album%$char(10)
$get(color)Title: $get(color2)%tracknumber% - %title%$char(10)
$get(colorSep)--$char(10)
$get(color)Date: $get(color2)$if(%date%,%date%,$get(colorErr)Missing)$char(10)
$get(color)Genre: $get(color2)$if(%genre%,%genre%,$get(colorErr)Missing)$char(10)
$get(color)Origin: $get(color2)$if(%origin%,%origin%,$get(colorErr)Missing)$char(10)
$get(colorSep)--$char(10)
$get(color)Codec: $get(color2)%__codec% $char(10)
$get(color)Bitrate: $get(color2)%__bitrate% Kbps $if(%__extrainfo%,[%__extrainfo%],CBR)$char(10)
$get(color)Samplerate: $get(color2)%__samplerate% Hz$char(10)
$get(color)Channels: $get(color2)$if(%__channels%,$ifgreater(%__channels%,2,%__channels%ch,$ifgreater(%__channels%,1,' 'Stereo,''Mono)),)$char(10)
//Track Gain
$if($stricmp($left(%_path_raw%,7),'http://'),,$if(%__replaygain_track_gain%,
$get(color)[Track Gain: $get(color2)$left(%__replaygain_track_gain%,$sub($len(%__replaygain_track_gain%),3))$char(10)]
))
//Album Gain
$if($stricmp($left(%_path_raw%,7),'http://'),,$if(%__replaygain_album_gain%,
$get(color)[Album Gain: $get(color2)$left(%__replaygain_album_gain%, $sub($len(%__replaygain_album_gain%),3))$char(10)]
))
//Track Size & path
$get(color)[Size: $get(color2)$puts(ModSize,$muldiv($mod(%_filesize%,1048576),100,1048576))
$div(%_filesize%,1048576).$ifgreater($get(ModSize),99,99,$num($get(ModSize),2)) MB$char(10)]
$get(color)[Path: $get(color2)$replace(%_path%,%_filename_ext%,,%_directoryname%\,)$char(10)]
//Playing/Paused counter
$if($or(%_isplaying%,%_ispaused%),$if(%_ispaused%,$get(colorSep)--$char(10)$get(color)Paused: $get(color2)[%_time_elapsed%[/%_time_total%]]$char(10),
$get(colorSep)--$char(10)$get(color)Playing: $get(color2)[%_time_elapsed%[/%_time_total%]]$char(10)))

$char(10)

  $progress2(%_time_elapsed_seconds%,%_time_total_seconds%,
$get(proglength),$get(progfore)
$get(progchar),
$get(progback)
$get(progchar2))

And as for the beta I've had these problems :
The "Now playing" mode doesn't report any data.. (and I'm playing something) edit: Now it works, but don't ask me why I just posted this and went back to foobar..
If I'm in "Follow cursor" mode everything works except the file time & play time related features.
Multiple crashes when I tried to do anything in the settings.. but adding the panel before changing the settings fixed it (well I think that's what fixed it).

Thanks !
Title: foo_uie_trackinfo
Post by: nerrad on 2006-03-27 00:17:25
Yep, anything dynamic seems to be broken.

%bitrate%
%_time_elapsed%
%playback_time%
$progress
etc.

Quote
Just trying some things in foobar 0.9, seems things that work in statusbar don't work here.

%bitrate% should contain VBR bitrate updated every second but it doesn't update.

%playback_time% contains the playback time now, but this doesn't work, the old  %_time_elapsed% doesn't seem to work either.

My progressbar doesn't move.


So I ask: Does the updating every second actually work in the 0.9 plugin?
[a href="index.php?act=findpost&pid=375556"][{POST_SNAPBACK}][/a]
Title: foo_uie_trackinfo
Post by: Sphix on 2006-03-27 01:08:10
Working fine now, the only thing that won't work is the dinamic infos like elapsed time
Title: foo_uie_trackinfo
Post by: Bob... Just Bob on 2006-03-27 04:00:04
Quote
How do i get "last played" to work ?
[a href=\"index.php?act=findpost&pid=375574\"][{POST_SNAPBACK}][/a]
You would need foo_playcount for that, which hasn't been ported to .9 yet.

And I too crashed, while changing the font. Sadly.

Code: [Select]
Illegal operation:
Code: C0000005h, flags: 00000000h, address: 03511BD0h
Access violation, operation: read, address: 00000008h
Call path:
entry=>app_mainloop
This is the first crash logged by this instance.
Code bytes (03511BD0h):
03511B90h:  00 8B 74 24 18 8D 46 0C 50 33 C9 33 D2 C7 44 24
03511BA0h:  14 00 00 00 00 E8 46 36 00 00 C7 06 AC 01 53 03
03511BB0h:  C7 46 04 C0 01 53 03 8B 4C 24 08 64 89 0D 00 00
03511BC0h:  00 00 59 5E 83 C4 0C C2 04 00 CC CC CC CC CC CC
03511BD0h:  8B 40 08 85 C0 74 0B 6A 01 6A 00 50 FF 15 98 E1
03511BE0h:  52 03 C3 CC CC CC CC CC CC CC CC CC CC CC CC CC
03511BF0h:  B8 20 FF 52 03 C3 CC CC CC CC CC CC CC CC CC CC
03511C00h:  8B 4C 24 04 8B 01 8B 50 08 6A FF 68 BC FF 52 03
Stack (0013F5C8h):
0013F5A8h:  00FBDCDC 7C9C93A0 77F643DD 7C9C93A0
0013F5B8h:  00000004 00000000 00FBD1E8 00000000
0013F5C8h:  0351211E 7D597530 0013F798 03511FB0
0013F5D8h:  00000000 0000000E 00000028 035300E4
0013F5E8h:  03562418 00000017 0000000A 00000067
0013F5F8h:  00000000 77D4F43F 00000000 00000000
0013F608h:  FFFFFFFF 00000010 00000001 00000077
0013F618h:  0000003C 000804EC 00000000 0013F6B8
0013F628h:  00000050 00010041 00000000 00000000
0013F638h:  00000000 00000000 00000000 00000000
0013F648h:  00002404 00000000 00000000 0013F664
0013F658h:  00000000 FFFFFFF5 00000000 00000000
0013F668h:  00000000 00000190 00000000 22010203
0013F678h:  00610054 006F0068 0061006D 00000000
0013F688h:  00000000 00000000 00000000 00000000
0013F698h:  00000000 00000000 00000000 00000000
0013F6A8h:  00000000 00000000 00000000 00000000
0013F6B8h:  FFFFFFF5 00000000 00000000 00000000
0013F6C8h:  00000190 00000000 22010203 00610054
0013F6D8h:  006F0068 0061006D 00000000 00000000
Registers:
EAX: 00000000, EBX: 000804EC, ECX: 1000D469, EDX: 00F50003
ESI: 0013F5E4, EDI: 0013F6B8, EBP: 0013F730, ESP: 0013F5C8
Crash location: "foo_uie_trackinfo", loaded at 03510000h - 03543000h

Loaded modules:
foobar2000                      loaded at 00400000h - 004DC000h
ntdll                            loaded at 7C900000h - 7C9B0000h
kernel32                        loaded at 7C800000h - 7C8F4000h
COMCTL32                        loaded at 773D0000h - 774D2000h
msvcrt                          loaded at 77C10000h - 77C68000h
ADVAPI32                        loaded at 77DD0000h - 77E6B000h
RPCRT4                          loaded at 77E70000h - 77F01000h
GDI32                            loaded at 77F10000h - 77F57000h
USER32                          loaded at 77D40000h - 77DD0000h
SHLWAPI                          loaded at 77F60000h - 77FD6000h
SHELL32                          loaded at 7C9C0000h - 7D1D5000h
ole32                            loaded at 774E0000h - 7761D000h
shared                          loaded at 10000000h - 1002A000h
comdlg32                        loaded at 763B0000h - 763F9000h
uxtheme                          loaded at 5AD70000h - 5ADA8000h
foo_albumlist                    loaded at 003C0000h - 003FF000h
foo_amipwrapper                  loaded at 00A30000h - 00A56000h
foo_audioscrobbler              loaded at 00A80000h - 00AAB000h
libcurl                          loaded at 00AC0000h - 00B10000h
WS2_32                          loaded at 71AB0000h - 71AC7000h
WS2HELP                          loaded at 71AA0000h - 71AA8000h
WINMM                            loaded at 76B40000h - 76B6D000h
foo_cdda                        loaded at 00BC0000h - 00BED000h
foo_converter                    loaded at 00C10000h - 00C70000h
foo_dsp_std                      loaded at 00C90000h - 00CCF000h
foo_input_std                    loaded at 00CF0000h - 00DFC000h
foo_masstag                      loaded at 00E20000h - 00E6E000h
foo_prettypop                    loaded at 00E90000h - 00EFB000h
mscoree                          loaded at 79000000h - 79045000h
MSVCR80                          loaded at 78130000h - 781CB000h
msvcm80                          loaded at 7C4C0000h - 7C53D000h
mscorwks                        loaded at 79E70000h - 7A3D1000h
mscorlib.ni                      loaded at 790C0000h - 79BA8000h
mscorjit                        loaded at 79060000h - 790B3000h
rsaenh                          loaded at 0FFD0000h - 0FFF8000h
foo_rgscan                      loaded at 03480000h - 034C3000h
foo_uie_albumlist                loaded at 034D0000h - 0350F000h
foo_uie_trackinfo                loaded at 03510000h - 03543000h
foo_ui_columns                  loaded at 03570000h - 0360A000h
foo_ui_std                      loaded at 03630000h - 03687000h
amip                            loaded at 03A90000h - 03C39000h
mswsock                          loaded at 71A50000h - 71A8F000h
hnetcfg                          loaded at 662B0000h - 66308000h
wshtcpip                        loaded at 71A90000h - 71A98000h
System.ni                        loaded at 7A440000h - 7ABFE000h
System.Drawing.ni                loaded at 7ADE0000h - 7AF74000h
System.Windows.Forms.ni          loaded at 7AFD0000h - 7BC56000h
gdiplus                          loaded at 4EC50000h - 4EDF3000h
DNSAPI                          loaded at 76F20000h - 76F47000h
winrnr                          loaded at 76FB0000h - 76FB8000h
WLDAP32                          loaded at 76F60000h - 76F8C000h
rasadhlp                        loaded at 76FC0000h - 76FC6000h
ExtendDll                        loaded at 04500000h - 04508000h
imagehlp                        loaded at 76C90000h - 76CB8000h
DBGHELP                          loaded at 59A60000h - 59B01000h
VERSION                          loaded at 77C00000h - 77C08000h

Stack dump analysis:
Address: 0351211Eh, location: "foo_uie_trackinfo", loaded at 03510000h - 03543000h
Address: 03511FB0h, location: "foo_uie_trackinfo", loaded at 03510000h - 03543000h
Address: 035300E4h, location: "foo_uie_trackinfo", loaded at 03510000h - 03543000h
Address: 77D4F43Fh, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "DrawTextExW" (+000007EFh)
Address: 0352D0E2h, location: "foo_uie_trackinfo", loaded at 03510000h - 03543000h
Address: 77D48734h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetDC" (+0000006Dh)
Address: 03511FB0h, location: "foo_uie_trackinfo", loaded at 03510000h - 03543000h
Address: 03511FB0h, location: "foo_uie_trackinfo", loaded at 03510000h - 03543000h
Address: 77D5418Dh, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "PrivateExtractIconExW" (+000002B2h)
Address: 03511FB0h, location: "foo_uie_trackinfo", loaded at 03510000h - 03543000h
Address: 77D70467h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "DeregisterShellHookWindow" (+000001CFh)
Address: 77D541B0h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "PrivateExtractIconExW" (+000002D5h)
Address: 77D53FD9h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "PrivateExtractIconExW" (+000000FEh)
Address: 03511FB0h, location: "foo_uie_trackinfo", loaded at 03510000h - 03543000h
Address: 77D541E2h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 77D484FCh, location: "USER32", loaded at 77D40000h - 77DD0000h
Address: 77D485A4h, location: "USER32", loaded at 77D40000h - 77DD0000h
Address: 77D54204h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "DefDlgProcW" (+00000022h)
Address: 77D48734h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetDC" (+0000006Dh)
Address: 77D541E2h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 77D541E2h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 77D48816h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetDC" (+0000014Fh)
Address: 77D541E2h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 77D4882Ah, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetDC" (+00000163h)
Address: 77D70467h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "DeregisterShellHookWindow" (+000001CFh)
Address: 77D48830h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetDC" (+00000169h)
Address: 77D4B89Bh, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetParent" (+0000016Ch)
Address: 77D541E2h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 77D4B903h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "SendMessageW" (+00000049h)
Address: 773F6FF6h, location: "COMCTL32", loaded at 773D0000h - 774D2000h
Symbol: "Ordinal384" (+0000B1CCh)
Address: 773F70D8h, location: "COMCTL32", loaded at 773D0000h - 774D2000h
Symbol: "Ordinal384" (+0000B2AEh)
Address: 773F93DDh, location: "COMCTL32", loaded at 773D0000h - 774D2000h
Symbol: "Ordinal384" (+0000D5B3h)
Address: 773F8B56h, location: "COMCTL32", loaded at 773D0000h - 774D2000h
Symbol: "Ordinal384" (+0000CD2Ch)
Address: 773F8B56h, location: "COMCTL32", loaded at 773D0000h - 774D2000h
Symbol: "Ordinal384" (+0000CD2Ch)
Address: 773F8B56h, location: "COMCTL32", loaded at 773D0000h - 774D2000h
Symbol: "Ordinal384" (+0000CD2Ch)
Address: 77D48BD9h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetWindowThreadProcessId" (+00000159h)
Address: 77D4882Ah, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetDC" (+00000163h)
Address: 77D48734h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetDC" (+0000006Dh)
Address: 773F8B56h, location: "COMCTL32", loaded at 773D0000h - 774D2000h
Symbol: "Ordinal384" (+0000CD2Ch)
Address: 773F8B56h, location: "COMCTL32", loaded at 773D0000h - 774D2000h
Symbol: "Ordinal384" (+0000CD2Ch)
Address: 77D48816h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetDC" (+0000014Fh)
Address: 773F8B56h, location: "COMCTL32", loaded at 773D0000h - 774D2000h
Symbol: "Ordinal384" (+0000CD2Ch)
Address: 77D70467h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "DeregisterShellHookWindow" (+000001CFh)
Address: 77D48830h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetDC" (+00000169h)
Address: 77D489CDh, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetWindowLongW" (+00000127h)
Address: 773F8B56h, location: "COMCTL32", loaded at 773D0000h - 774D2000h
Symbol: "Ordinal384" (+0000CD2Ch)
Address: 77D4EC03h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "CallNextHookEx" (+00000100h)
Address: 77D61B4Dh, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "AppendMenuA" (+0000006Eh)
Address: 77D70467h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "DeregisterShellHookWindow" (+000001CFh)
Address: 77D489F0h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetWindowLongW" (+0000014Ah)
Address: 77D48A10h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "DispatchMessageW" (+0000000Fh)
Address: 77D5E097h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "IsDialogMessageW" (+000000DBh)
Address: 0042A376h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 0042A47Eh, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 77D4DAEAh, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "DestroyWindow" (+00000000h)
Address: 00D4DAEAh, location: "foo_input_std", loaded at 00CF0000h - 00DFC000h
Address: 0042AF1Ah, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 7C9106ABh, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlAllocateHeap" (+000000D7h)
Address: 004AD734h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004AC600h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004AC600h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00400000h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004AE828h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004CD1A0h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 7C910732h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlAllocateHeap" (+0000015Eh)
Address: 7C90EE18h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "strchr" (+00000117h)
Address: 7C910738h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlAllocateHeap" (+00000164h)
Address: 7C910732h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlAllocateHeap" (+0000015Eh)
Address: 7C911596h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "wcsncpy" (+00000B07h)
Address: 7C9106EBh, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlAllocateHeap" (+00000117h)
Address: 004CD280h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004A18E4h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 7C910570h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlFreeHeap" (+00000133h)
Address: 7C91056Dh, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlFreeHeap" (+00000130h)
Address: 7C917CB7h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlReAllocateHeap" (+000002BAh)
Address: 7C917BF5h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlReAllocateHeap" (+000001F8h)
Address: 7C917BB0h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlReAllocateHeap" (+000001B3h)
Address: 0044005Ch, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 1000D469h, location: "shared", loaded at 10000000h - 1002A000h
Address: 1000D469h, location: "shared", loaded at 10000000h - 1002A000h
Address: 10003ABEh, location: "shared", loaded at 10000000h - 1002A000h
Symbol: "t_font_description::g_from_font" (+0000003Eh)
Address: 7C911B09h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlLogStackBackTrace" (+00000025h)
Address: 004CD210h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 7C911B09h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlLogStackBackTrace" (+00000025h)
Address: 004CD280h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004813A4h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 7C90EE18h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "strchr" (+00000117h)
Address: 7C9106F0h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlAllocateHeap" (+0000011Ch)
Address: 7C9106EBh, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlAllocateHeap" (+00000117h)
Address: 0048775Fh, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00486560h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004AD480h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 10002D77h, location: "shared", loaded at 10000000h - 1002A000h
Symbol: "uPrintCrashInfo_SetDumpPath" (+000000B7h)
Address: 004AD480h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 0049D48Bh, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004AD480h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 0042B0F4h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00400000h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004CA288h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00486E75h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00481239h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00481233h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004A18E8h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004A0CE5h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00486560h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 0049D66Dh, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00485445h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00400000h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00486560h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 7C816D4Fh, location: "kernel32", loaded at 7C800000h - 7C8F4000h
Symbol: "RegisterWaitForInputIdle" (+00000049h)
Address: 7C8399F3h, location: "kernel32", loaded at 7C800000h - 7C8F4000h
Symbol: "FindAtomW" (+00000094h)
Address: 7C816D58h, location: "kernel32", loaded at 7C800000h - 7C8F4000h
Symbol: "RegisterWaitForInputIdle" (+00000052h)
Address: 004854AEh, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004B0063h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 003D006Eh, location: "foo_albumlist", loaded at 003C0000h - 003FF000h
Address: 003D0065h, location: "foo_albumlist", loaded at 003C0000h - 003FF000h
Address: 003D006Eh, location: "foo_albumlist", loaded at 003C0000h - 003FF000h
Address: 00410072h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 003D0065h, location: "foo_albumlist", loaded at 003C0000h - 003FF000h

Version info:
foobar2000 v0.9
UNICODE

Additional info:
Standard input array 1.0  (foo_input_std)
Album list panel 0.2.1 beta 2  (foo_uie_albumlist)
MPEG-4 AAC decoder 2.1  (foo_input_std)
ReplayGain Scanner 2.0  (foo_rgscan)
Pretty Popup 1.2.0  (foo_prettypop)
Masstagger 1.5  (foo_masstag)
Standard DSP array 1.0  (foo_dsp_std)
Converter 1.0  (foo_converter)
Album List 3.1.0  (foo_albumlist)
Columns UI 0.1.3 pre-alpha 17v6  (foo_ui_columns)
Default User Interface 0.9acc  (foo_ui_std)
CD Audio decoder 2.0  (foo_cdda)
AMIP Wrapper 0.90  (foo_amipwrapper)
Track info panel 0.1  (foo_uie_trackinfo)
Audioscrobbler 1.2.6  (foo_audioscrobbler)
FLAC decoder 1.1.0  (foo_input_std)

Title: foo_uie_trackinfo
Post by: Habla on 2006-03-27 08:48:19
Quote
Quote
How do i get "last played" to work ?
[{POST_SNAPBACK}][/a] (http://index.php?act=findpost&pid=375574")

You would need foo_playcount for that, which hasn't been ported to .9 yet.
[a href="index.php?act=findpost&pid=375635"][{POST_SNAPBACK}][/a]


Yes it has:

[a href="http://img61.imageshack.us/img61/3310/foobarv99sh.jpg](http://img61.imageshack.us/img61/3310/foobarv99sh.th.jpg)[/url]

Notice the two "?"s next to "Length:" on the track info panel. The first was supposed to be time elapsed and the second was completed percentage. Other than that, everything works! Thanks!
Title: foo_uie_trackinfo
Post by: mobyduck on 2006-03-27 08:59:47
Thanks for porting this plugin.

Just a couple of questions:

- if I switch to Follow cursor mode, close foobar and reopen it, it reverts to Now playing mode

- is it possible to change the panel caption?

BTW, no problem here changing font (but I'm on W2k).

Alessandro

[EDIT]One more thing: when scrolling down (I use it to display lyrics) and change selection, the visualization is not "refreshed" if the new info is shorter (forcing me to scroll back up). This was bugging me also in 0.8.3 version.
Title: foo_uie_trackinfo
Post by: Quiark on 2006-03-27 09:47:13
Thanks for porting. Works fine (Win XP SP2)
Title: foo_uie_trackinfo
Post by: metal_termite on 2006-03-27 10:05:59
The crashing isn't limited to changing the font for me. It crashes the instant any setting is changed.

Code: [Select]
Illegal operation:
Code: C0000005h, flags: 00000000h, address: 02731BD0h
Access violation, operation: read, address: 00000008h
Call path:
entry=>app_mainloop
This is the first crash logged by this instance.
Code bytes (02731BD0h):
02731B90h:  00 8B 74 24 18 8D 46 0C 50 33 C9 33 D2 C7 44 24
02731BA0h:  14 00 00 00 00 E8 46 36 00 00 C7 06 AC 01 75 02
02731BB0h:  C7 46 04 C0 01 75 02 8B 4C 24 08 64 89 0D 00 00
02731BC0h:  00 00 59 5E 83 C4 0C C2 04 00 CC CC CC CC CC CC
02731BD0h:  8B 40 08 85 C0 74 0B 6A 01 6A 00 50 FF 15 98 E1
02731BE0h:  74 02 C3 CC CC CC CC CC CC CC CC CC CC CC CC CC
02731BF0h:  B8 20 FF 74 02 C3 CC CC CC CC CC CC CC CC CC CC
02731C00h:  8B 4C 24 04 8B 01 8B 50 08 6A FF 68 BC FF 74 02
Stack (002DF120h):
002DF100h:  00000000 00000000 00000000 00000000
002DF110h:  00000000 00000000 00000000 00000000
002DF120h:  02732543 C88B6302 002DF300 02731FB0
002DF130h:  00000000 C88B6312 002DF310 02731FB0
002DF140h:  02732789 00000001 00000000 5D011903
002DF150h:  02B7051C 002DF19C 7D9559D0 00000001
002DF160h:  00000000 002DF200 002DF188 7D955C50
002DF170h:  0094D410 00000000 00000020 02B7051C
002DF180h:  02000012 00000000 002DF1B4 02731FB0
002DF190h:  00000000 00000008 00000005 00000133
002DF1A0h:  00000000 002DF1E8 7D948263 FA0118A1
002DF1B0h:  00000000 00000502 00000000 009C3EF0
002DF1C0h:  01B00502 00000133 FA0118A1 01530590
002DF1D0h:  02731FB0 DCBAABCD 00000000 00000502
002DF1E0h:  7EFDB800 01B00502 002DF208 7D947CB4
002DF1F0h:  009C3EF0 00000000 00000133 FA0118A1
002DF200h:  01530590 00000000 7D9474B6 7D9B0324
002DF210h:  00001390 002DF250 7D947C84 7D947C65
002DF220h:  00000502 00000000 009C3EF0 00000000
002DF230h:  00000001 01100060 002DF220 00000001
Registers:
EAX: 00000000, EBX: 01B00502, ECX: 00003534, EDX: 002DF15C
ESI: 02731FB0, EDI: 002DF300, EBP: 002DF288, ESP: 002DF120
Crash location: "foo_uie_trackinfo", loaded at 02730000h - 02763000h

Loaded modules:
foobar2000                      loaded at 00400000h - 004DC000h
ntdll                            loaded at 7D600000h - 7D6F0000h
kernel32                        loaded at 7D4C0000h - 7D5F0000h
COMCTL32                        loaded at 7DBD0000h - 7DCD3000h
msvcrt                          loaded at 77BA0000h - 77BFA000h
ADVAPI32                        loaded at 77F50000h - 77FEC000h
RPCRT4                          loaded at 7DA20000h - 7DB00000h
GDI32                            loaded at 7D800000h - 7D890000h
USER32                          loaded at 7D930000h - 7DA00000h
SHLWAPI                          loaded at 77DA0000h - 77DF2000h
SHELL32                          loaded at 7C8D0000h - 7D0D3000h
ole32                            loaded at 77670000h - 777A4000h
shared                          loaded at 10000000h - 1002A000h
comdlg32                        loaded at 762B0000h - 762FA000h
uxtheme                          loaded at 7DF50000h - 7DFC0000h
foo_albumlist                    loaded at 01DA0000h - 01DDF000h
foo_audioscrobbler              loaded at 01E00000h - 01E2B000h
libcurl                          loaded at 01E40000h - 01E90000h
WS2_32                          loaded at 71C00000h - 71C17000h
WS2HELP                          loaded at 71BF0000h - 71BF8000h
WINMM                            loaded at 76AA0000h - 76ACD000h
foo_autoplaylist                loaded at 01EC0000h - 01EF2000h
foo_browser                      loaded at 01F20000h - 01F4B000h
foo_cdda                        loaded at 01F70000h - 01F9D000h
foo_common                      loaded at 01FC0000h - 01FFA000h
foo_converter                    loaded at 02020000h - 02080000h
foo_dbsearch                    loaded at 020A0000h - 020FC000h
foo_dsp_crossfeed                loaded at 02120000h - 02144000h
foo_dsp_delta                    loaded at 02170000h - 0218E000h
foo_dsp_std                      loaded at 021B0000h - 021EF000h
foo_dsp_vlevel                  loaded at 02210000h - 02234000h
foo_freedb2                      loaded at 02260000h - 022A0000h
foo_input_std                    loaded at 022C0000h - 023CC000h
foo_lnk                          loaded at 023F0000h - 02409000h
foo_masstag                      loaded at 02430000h - 0247E000h
foo_playcount                    loaded at 024A0000h - 024C8000h
foo_playlist_manager            loaded at 024F0000h - 02536000h
foo_pqview                      loaded at 02560000h - 0257C000h
foo_random                      loaded at 025A0000h - 025DF000h
foo_rgscan                      loaded at 02600000h - 02643000h
foo_uie_albumlist                loaded at 02670000h - 026AF000h
foo_uie_explorer                loaded at 026D0000h - 0270D000h
foo_uie_trackinfo                loaded at 02730000h - 02763000h
foo_ui_columns                  loaded at 02790000h - 0282A000h
foo_ui_std                      loaded at 02850000h - 028A7000h
foo_utils                        loaded at 028D0000h - 02909000h
CLBCatQ                          loaded at 777B0000h - 77833000h
COMRes                          loaded at 77010000h - 770D6000h
OLEAUT32                        loaded at 77D00000h - 77D8C000h
VERSION                          loaded at 77B90000h - 77B98000h
SETUPAPI                        loaded at 770E0000h - 771EA000h
apphelp                          loaded at 75E60000h - 75E87000h
cscui                            loaded at 77B00000h - 77B54000h
CSCDLL                          loaded at 76520000h - 7653E000h
USERENV                          loaded at 76920000h - 769E4000h
gdiplus                          loaded at 4DD60000h - 4DF07000h
imon                            loaded at 20B00000h - 20B45000h
WSOCK32                          loaded at 71BB0000h - 71BB9000h
NTMARTA                          loaded at 77E00000h - 77E22000h
SAMLIB                          loaded at 5CCF0000h - 5CCFF000h
WLDAP32                          loaded at 76F10000h - 76F3E000h
mswsock                          loaded at 7DB30000h - 7DBB0000h
DNSAPI                          loaded at 76ED0000h - 76EF9000h
winrnr                          loaded at 76F70000h - 76F77000h
iphlpapi                        loaded at 76CF0000h - 76D0A000h
PSAPI                            loaded at 76B70000h - 76B7B000h
tskh                            loaded at 0A3B0000h - 0A3C2000h
idle                            loaded at 60300000h - 60307000h
MSVCR71                          loaded at 7C340000h - 7C396000h
hnetcfg                          loaded at 5F270000h - 5F2C9000h
wshtcpip                        loaded at 71AE0000h - 71AE8000h
netman                          loaded at 77840000h - 77883000h
MPRAPI                          loaded at 76CD0000h - 76CE9000h
ACTIVEDS                        loaded at 76DF0000h - 76E23000h
adsldpc                          loaded at 76DC0000h - 76DE7000h
credui                          loaded at 76B80000h - 76BAE000h
NETAPI32                        loaded at 71C40000h - 71C98000h
ATL                              loaded at 76A80000h - 76A92000h
rtutils                          loaded at 76E30000h - 76E3C000h
netshell                        loaded at 76300000h - 764C1000h
CLUSAPI                          loaded at 74DE0000h - 74DF2000h
RASAPI32                        loaded at 76E90000h - 76ECF000h
CRYPT32                          loaded at 761B0000h - 76243000h
MSASN1                          loaded at 76190000h - 761A2000h
rasman                          loaded at 76E40000h - 76E52000h
TAPI32                          loaded at 76E60000h - 76E8F000h
Secur32                          loaded at 7D8D0000h - 7D920000h
WININET                          loaded at 77210000h - 772B8000h
WZCSAPI                          loaded at 730A0000h - 730AD000h
WZCSvc                          loaded at 77890000h - 77901000h
WMI                              loaded at 76CC0000h - 76CC5000h
DHCPCSVC                        loaded at 76D10000h - 76D2F000h
WTSAPI32                        loaded at 76F00000h - 76F08000h
WINSTA                          loaded at 771F0000h - 77201000h
ESENT                            loaded at 4B180000h - 4B285000h
rasadhlp                        loaded at 76F80000h - 76F85000h
imagehlp                        loaded at 76C10000h - 76C39000h
dbghelp                          loaded at 6D580000h - 6D628000h

Stack dump analysis:
Address: 02732543h, location: "foo_uie_trackinfo", loaded at 02730000h - 02763000h
Address: 02731FB0h, location: "foo_uie_trackinfo", loaded at 02730000h - 02763000h
Address: 02731FB0h, location: "foo_uie_trackinfo", loaded at 02730000h - 02763000h
Address: 02732789h, location: "foo_uie_trackinfo", loaded at 02730000h - 02763000h
Address: 7D9559D0h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "wvsprintfW" (+00000873h)
Address: 7D955C50h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "DefDlgProcW" (+00000029h)
Address: 02731FB0h, location: "foo_uie_trackinfo", loaded at 02730000h - 02763000h
Address: 7D948263h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "GetPropW" (+0000012Bh)
Address: 02731FB0h, location: "foo_uie_trackinfo", loaded at 02730000h - 02763000h
Address: 7D947CB4h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "DefWindowProcW" (+000000BAh)
Address: 7D9474B6h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "WindowFromDC" (+000001F9h)
Address: 7D9B0324h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "DeviceEventWorker" (+0000E508h)
Address: 7D947C84h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "DefWindowProcW" (+0000008Ah)
Address: 7D947C65h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "DefWindowProcW" (+0000006Bh)
Address: 7D9709EEh, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "IsCharAlphaNumericW" (+0000038Bh)
Address: 7D947C68h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "DefWindowProcW" (+0000006Eh)
Address: 7D947C65h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "DefWindowProcW" (+0000006Bh)
Address: 7D94AE05h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "GetShellWindow" (+00000084h)
Address: 02731FB0h, location: "foo_uie_trackinfo", loaded at 02730000h - 02763000h
Address: 0274D0E2h, location: "foo_uie_trackinfo", loaded at 02730000h - 02763000h
Symbol: "foobar2000_get_interface" (+00011852h)
Address: 7D9472F8h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "WindowFromDC" (+0000003Bh)
Address: 02731FB0h, location: "foo_uie_trackinfo", loaded at 02730000h - 02763000h
Address: 02731FB0h, location: "foo_uie_trackinfo", loaded at 02730000h - 02763000h
Address: 7D955BD6h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "wvsprintfW" (+00000A79h)
Address: 02731FB0h, location: "foo_uie_trackinfo", loaded at 02730000h - 02763000h
Address: 7D955B70h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "wvsprintfW" (+00000A13h)
Address: 7D9709EEh, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "IsCharAlphaNumericW" (+0000038Bh)
Address: 7D955BF8h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "wvsprintfW" (+00000A9Bh)
Address: 7D955933h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "wvsprintfW" (+000007D6h)
Address: 02731FB0h, location: "foo_uie_trackinfo", loaded at 02730000h - 02763000h
Address: 7D955C50h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "DefDlgProcW" (+00000029h)
Address: 7D9472F8h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "WindowFromDC" (+0000003Bh)
Address: 7D9475E3h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "WindowFromDC" (+00000326h)
Address: 7D955C27h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 7D947578h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "WindowFromDC" (+000002BBh)
Address: 7D9709EEh, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "IsCharAlphaNumericW" (+0000038Bh)
Address: 7D947600h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "WindowFromDC" (+00000343h)
Address: 7D948646h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "GetMessageTime" (+0000010Ch)
Address: 7D955C27h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "DefDlgProcW" (+00000000h)
Address: 7D5034B2h, location: "kernel32", loaded at 7D4C0000h - 7D5F0000h
Symbol: "LocalSize" (+00000000h)
Address: 7D9486ADh, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "SendMessageW" (+0000004Ch)
Address: 7DBF3D79h, location: "COMCTL32", loaded at 7DBD0000h - 7DCD3000h
Symbol: "Ordinal384" (+00007EFAh)
Address: 7DBF4F22h, location: "COMCTL32", loaded at 7DBD0000h - 7DCD3000h
Symbol: "Ordinal384" (+000090A3h)
Address: 7DBF4FB8h, location: "COMCTL32", loaded at 7DBD0000h - 7DCD3000h
Symbol: "Ordinal384" (+00009139h)
Address: 7D947988h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "GetWindowLongW" (+00000000h)
Address: 7DBF538Ch, location: "COMCTL32", loaded at 7DBD0000h - 7DCD3000h
Symbol: "Ordinal384" (+0000950Dh)
Address: 7D947578h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "WindowFromDC" (+000002BBh)
Address: 7D9472F8h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "WindowFromDC" (+0000003Bh)
Address: 7D9475E3h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "WindowFromDC" (+00000326h)
Address: 7DBF52CFh, location: "COMCTL32", loaded at 7DBD0000h - 7DCD3000h
Symbol: "Ordinal384" (+00009450h)
Address: 7DBF52CFh, location: "COMCTL32", loaded at 7DBD0000h - 7DCD3000h
Symbol: "Ordinal384" (+00009450h)
Address: 7D947578h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "WindowFromDC" (+000002BBh)
Address: 7D9709EEh, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "IsCharAlphaNumericW" (+0000038Bh)
Address: 7D947600h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "WindowFromDC" (+00000343h)
Address: 7D94BC72h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "ShowCaret" (+0000007Bh)
Address: 7DBF52CFh, location: "COMCTL32", loaded at 7DBD0000h - 7DCD3000h
Symbol: "Ordinal384" (+00009450h)
Address: 7D94BC98h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "CallWindowProcW" (+0000001Bh)
Address: 7DBF52CFh, location: "COMCTL32", loaded at 7DBD0000h - 7DCD3000h
Symbol: "Ordinal384" (+00009450h)
Address: 7DBE181Fh, location: "COMCTL32", loaded at 7DBD0000h - 7DCD3000h
Symbol: "Ordinal234" (+0000022Eh)
Address: 7DBF52CFh, location: "COMCTL32", loaded at 7DBD0000h - 7DCD3000h
Symbol: "Ordinal384" (+00009450h)
Address: 7DBE1B72h, location: "COMCTL32", loaded at 7DBD0000h - 7DCD3000h
Symbol: "RemoveWindowSubclass" (+0000017Eh)
Address: 7DBF52CFh, location: "COMCTL32", loaded at 7DBD0000h - 7DCD3000h
Symbol: "Ordinal384" (+00009450h)
Address: 7DBE1805h, location: "COMCTL32", loaded at 7DBD0000h - 7DCD3000h
Symbol: "Ordinal234" (+00000214h)
Address: 7DBF52CFh, location: "COMCTL32", loaded at 7DBD0000h - 7DCD3000h
Symbol: "Ordinal384" (+00009450h)
Address: 7DC5A9BAh, location: "COMCTL32", loaded at 7DBD0000h - 7DCD3000h
Symbol: "InitializeFlatSB" (+0000027Bh)
Address: 7DBD1DD8h, location: "COMCTL32", loaded at 7DBD0000h - 7DCD3000h
Symbol: "Ordinal245" (+00001DD8h)
Address: 7DBE1D34h, location: "COMCTL32", loaded at 7DBD0000h - 7DCD3000h
Symbol: "DefSubclassProc" (+00000046h)
Address: 7DBDFDE8h, location: "COMCTL32", loaded at 7DBD0000h - 7DCD3000h
Symbol: "CreateUpDownControl" (+0000063Ah)
Address: 7D948008h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "IsWindow" (+00000042h)
Address: 7D948002h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "IsWindow" (+0000003Ch)
Address: 7DBE1B72h, location: "COMCTL32", loaded at 7DBD0000h - 7DCD3000h
Symbol: "RemoveWindowSubclass" (+0000017Eh)
Address: 7DBDFBE8h, location: "COMCTL32", loaded at 7DBD0000h - 7DCD3000h
Symbol: "CreateUpDownControl" (+0000043Ah)
Address: 7DC5A9BAh, location: "COMCTL32", loaded at 7DBD0000h - 7DCD3000h
Symbol: "InitializeFlatSB" (+0000027Bh)
Address: 7DBD1DD8h, location: "COMCTL32", loaded at 7DBD0000h - 7DCD3000h
Symbol: "Ordinal245" (+00001DD8h)
Address: 7DBE1D97h, location: "COMCTL32", loaded at 7DBD0000h - 7DCD3000h
Symbol: "DefSubclassProc" (+000000A9h)
Address: 7DC5A9BAh, location: "COMCTL32", loaded at 7DBD0000h - 7DCD3000h
Symbol: "InitializeFlatSB" (+0000027Bh)
Address: 7DBD1DE8h, location: "COMCTL32", loaded at 7DBD0000h - 7DCD3000h
Symbol: "Ordinal245" (+00001DE8h)
Address: 7D9472F8h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "WindowFromDC" (+0000003Bh)
Address: 7D9475E3h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "WindowFromDC" (+00000326h)
Address: 7DBE1D43h, location: "COMCTL32", loaded at 7DBD0000h - 7DCD3000h
Symbol: "DefSubclassProc" (+00000055h)
Address: 7D947578h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "WindowFromDC" (+000002BBh)
Address: 7D9709EEh, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "IsCharAlphaNumericW" (+0000038Bh)
Address: 7D947600h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "WindowFromDC" (+00000343h)
Address: 7D948646h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "GetMessageTime" (+0000010Ch)
Address: 7DBE1D43h, location: "COMCTL32", loaded at 7DBD0000h - 7DCD3000h
Symbol: "DefSubclassProc" (+00000055h)
Address: 7D94BEA1h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "SetWindowTextW" (+00000036h)
Address: 7DBDFAB1h, location: "COMCTL32", loaded at 7DBD0000h - 7DCD3000h
Symbol: "CreateUpDownControl" (+00000303h)
Address: 7D9709EEh, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "IsCharAlphaNumericW" (+0000038Bh)
Address: 7D947A50h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "GetWindowLongW" (+000000C8h)
Address: 7D947A46h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "GetWindowLongW" (+000000BEh)
Address: 7D947AEEh, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "GetWindowLongW" (+00000166h)
Address: 7D61C839h, location: "ntdll", loaded at 7D600000h - 7D6F0000h
Symbol: "ZwCallbackReturn" (+00000012h)
Address: 7D947B01h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "GetWindowLongW" (+00000179h)
Address: 7DBDF128h, location: "COMCTL32", loaded at 7DBD0000h - 7DCD3000h
Symbol: "DrawStatusText" (+00001671h)
Address: 7DBDFBA3h, location: "COMCTL32", loaded at 7DBD0000h - 7DCD3000h
Symbol: "CreateUpDownControl" (+000003F5h)
Address: 7D950798h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "GetCaretBlinkTime" (+00000000h)
Address: 7DBE02EEh, location: "COMCTL32", loaded at 7DBD0000h - 7DCD3000h
Symbol: "CreateUpDownControl" (+00000B40h)
Address: 7D9472F8h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "WindowFromDC" (+0000003Bh)
Address: 7D9475E3h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "WindowFromDC" (+00000326h)
Address: 7DBDFF66h, location: "COMCTL32", loaded at 7DBD0000h - 7DCD3000h
Symbol: "CreateUpDownControl" (+000007B8h)
Address: 7D947578h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "WindowFromDC" (+000002BBh)
Address: 7D9709EEh, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "IsCharAlphaNumericW" (+0000038Bh)
Address: 7D947600h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "WindowFromDC" (+00000343h)
Address: 7D947816h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "WindowFromDC" (+00000559h)
Address: 7DBDFF66h, location: "COMCTL32", loaded at 7DBD0000h - 7DCD3000h
Symbol: "CreateUpDownControl" (+000007B8h)
Address: 7D957F08h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "SendDlgItemMessageW" (+00000281h)
Address: 7D9709EEh, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "IsCharAlphaNumericW" (+0000038Bh)
Address: 7D947838h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "WindowFromDC" (+0000057Bh)
Address: 7D947858h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "DispatchMessageW" (+0000000Fh)
Address: 7D956CB0h, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "CallMsgFilterW" (+000000A5h)
Address: 0042A376h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 0042A47Eh, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 7D94C6ECh, location: "USER32", loaded at 7D930000h - 7DA00000h
Symbol: "DestroyWindow" (+00000000h)
Address: 0042AF1Ah, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 7D61F700h, location: "ntdll", loaded at 7D600000h - 7D6F0000h
Symbol: "RtlAllocateHeap" (+000000A2h)
Address: 004AD734h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004AC600h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004AC600h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00400000h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004AE828h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 7D61F65Eh, location: "ntdll", loaded at 7D600000h - 7D6F0000h
Symbol: "RtlAllocateHeap" (+00000000h)
Address: 7D61F65Eh, location: "ntdll", loaded at 7D600000h - 7D6F0000h
Symbol: "RtlAllocateHeap" (+00000000h)
Address: 7D6215AAh, location: "ntdll", loaded at 7D600000h - 7D6F0000h
Symbol: "RtlTryEnterCriticalSection" (+000002E4h)
Address: 7D61F784h, location: "ntdll", loaded at 7D600000h - 7D6F0000h
Symbol: "RtlAllocateHeap" (+00000126h)
Address: 004CD210h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 7D61F1F0h, location: "ntdll", loaded at 7D600000h - 7D6F0000h
Symbol: "RtlLeaveCriticalSection" (+00000041h)
Address: 7D622F32h, location: "ntdll", loaded at 7D600000h - 7D6F0000h
Symbol: "RtlReAllocateHeap" (+00000207h)
Address: 7D6215AAh, location: "ntdll", loaded at 7D600000h - 7D6F0000h
Symbol: "RtlTryEnterCriticalSection" (+000002E4h)
Address: 7D61F784h, location: "ntdll", loaded at 7D600000h - 7D6F0000h
Symbol: "RtlAllocateHeap" (+00000126h)
Address: 004CD280h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 7D61F1F0h, location: "ntdll", loaded at 7D600000h - 7D6F0000h
Symbol: "RtlLeaveCriticalSection" (+00000041h)
Address: 7D61F784h, location: "ntdll", loaded at 7D600000h - 7D6F0000h
Symbol: "RtlAllocateHeap" (+00000126h)
Address: 1000D533h, location: "shared", loaded at 10000000h - 1002A000h
Symbol: "uFormatSystemErrorMessage" (+00002B93h)
Address: 1000CD4Bh, location: "shared", loaded at 10000000h - 1002A000h
Symbol: "uFormatSystemErrorMessage" (+000023ABh)
Address: 7D61F1F0h, location: "ntdll", loaded at 7D600000h - 7D6F0000h
Symbol: "RtlLeaveCriticalSection" (+00000041h)
Address: 7D61F5E5h, location: "ntdll", loaded at 7D600000h - 7D6F0000h
Symbol: "RtlFreeHeap" (+00000142h)
Address: 1000D469h, location: "shared", loaded at 10000000h - 1002A000h
Symbol: "uFormatSystemErrorMessage" (+00002AC9h)
Address: 1000D469h, location: "shared", loaded at 10000000h - 1002A000h
Symbol: "uFormatSystemErrorMessage" (+00002AC9h)
Address: 10003851h, location: "shared", loaded at 10000000h - 1002A000h
Symbol: "uGetCallStackPath" (+00000A61h)
Address: 7D61F1F0h, location: "ntdll", loaded at 7D600000h - 7D6F0000h
Symbol: "RtlLeaveCriticalSection" (+00000041h)
Address: 7D61F784h, location: "ntdll", loaded at 7D600000h - 7D6F0000h
Symbol: "RtlAllocateHeap" (+00000126h)
Address: 004813A4h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004AC6FCh, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 0048775Fh, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00486560h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004AD480h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 10002D77h, location: "shared", loaded at 10000000h - 1002A000h
Symbol: "uPrintCrashInfo_SetDumpPath" (+000000B7h)
Address: 004AD480h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 0049D48Bh, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004AD480h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 0042B0F4h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00400000h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004CA288h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00486E75h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00481239h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00481233h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004A18E8h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004A0CE5h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00486560h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 0049D66Dh, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00485445h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00400000h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00486560h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 7D4E6E1Ah, location: "kernel32", loaded at 7D4C0000h - 7D5F0000h
Symbol: "BaseProcessInitPostImport" (+0000008Dh)
Address: 7D4D8988h, location: "kernel32", loaded at 7D4C0000h - 7D5F0000h
Symbol: "MulDiv" (+00000175h)
Address: 7D4E6E28h, location: "kernel32", loaded at 7D4C0000h - 7D5F0000h
Symbol: "BaseProcessInitPostImport" (+0000009Bh)
Address: 004854AEh, location: "foobar2000", loaded at 00400000h - 004DC000h

Version info:
foobar2000 v0.9
UNICODE

Additional info:
Columns UI 0.1.3 pre-alpha 17v6  (foo_ui_columns)
Default User Interface 0.9acc  (foo_ui_std)
freedb tagger v0.5.1  (foo_freedb2)
FLAC decoder 1.1.0  (foo_input_std)
Audioscrobbler 1.2.6  (foo_audioscrobbler)
Shell link resolver 1.1  (foo_lnk)
Common services 0.1  (foo_common)
Track info panel 0.1  (foo_uie_trackinfo)
Standard input array 1.0  (foo_input_std)
VLevel 20060323.0  (foo_dsp_vlevel)
Masstagger 1.5  (foo_masstag)
Converter 1.0  (foo_converter)
Album List 3.1.0  (foo_albumlist)
Explorer Tree 1.04.6  (foo_uie_explorer)
Album list panel 0.2.1 beta 1  (foo_uie_albumlist)
Standard DSP array 1.0  (foo_dsp_std)
Music Browser 1.0beta5 [Mar 26 2006 - 13:35:59]  (foo_browser)
Playback statistics 1.0  (foo_playcount)
Database search 1.3.1 beta 11  (foo_dbsearch)
Playlist tools 0.5.6  (foo_utils)
ReplayGain Scanner 2.0  (foo_rgscan)
Randomized playlist entry 1.2.3  (foo_random)
LPCM <--> delta-PCM converter 0.1.1  (foo_dsp_delta)
Crossfeed 0.70  (foo_dsp_crossfeed)
Playlist Manager 1.0  (foo_playlist_manager)
CD Audio decoder 2.0  (foo_cdda)
MPEG-4 AAC decoder 2.1  (foo_input_std)
Title: foo_uie_trackinfo
Post by: amonrei on 2006-03-27 10:38:32
Hm ok. Last played used to be %last_played%. But since now it comes together with %play_count% (is it ?), i have no idea how to make it appear on the track info. If it's just the play count, i just changed the old %play_counter% to %play_count% and it seems to work. Too bad everything starts back at zero play count.

edit: I figured out why last played was not displayed correctly. I deleted the existing last played in the tags and it works fine with the new play count.
Title: foo_uie_trackinfo
Post by: helig on 2006-03-27 13:36:24
Quote
[a href="http://img61.imageshack.us/img61/3310/foobarv99sh.jpg" target="_blank"]
Title: foo_uie_trackinfo
Post by: G-Lite on 2006-03-27 14:54:50
Okay, I fixed the dynamic info about playback and some crashers, so redownload from the same location and tell me if you're still encountering problems.

I don't have time now, but I'll look at why it's not remembering the mode (now playing / focused) it's in across restarts tomorrow probably.
Title: foo_uie_trackinfo
Post by: Anas on 2006-03-27 15:03:32
Thanks for porting it to .9, waited for this one.
Sadly $char(9)R/$char(9)C doesn't work either. It's used to right/centre align text in the track info panel. Woulb be nice if you'd be able to fix it.
Title: foo_uie_trackinfo
Post by: mobyduck on 2006-03-27 15:06:14
Thanks for your work.
Quote
I don't have time now, but I'll look at why it's not remembering the mode (now playing / focused) it's in across restarts tomorrow probably.
Not a big deal: much more annoying the scrolling problem (to me anyway).

Alessandro
Title: foo_uie_trackinfo
Post by: G-Lite on 2006-03-27 15:37:59
Quote
Thanks for porting it to .9, waited for this one.
Sadly $char(9)R/$char(9)C doesn't work either. It's used to right/centre align text in the track info panel. Woulb be nice if you'd be able to fix it.
[a href="index.php?act=findpost&pid=375798"][{POST_SNAPBACK}][/a]

"$char(1)C" works fine here.

Quote
Thanks for your work.
Quote
I don't have time now, but I'll look at why it's not remembering the mode (now playing / focused) it's in across restarts tomorrow probably.
Not a big deal: much more annoying the scrolling problem (to me anyway).

Alessandro
[a href="index.php?act=findpost&pid=375800"][{POST_SNAPBACK}][/a]

Looks like I have time anyway, I'll take a look at both.
Title: foo_uie_trackinfo
Post by: DeepDose on 2006-03-27 15:48:58
Working great in foobar .9....Changing fonts with no crashes....thx G-Lite
Title: foo_uie_trackinfo
Post by: metal_termite on 2006-03-27 16:17:39
No more crashes for me.
Title: foo_uie_trackinfo
Post by: kuru on 2006-03-27 16:26:26
g-lite, thanks alot for recoding it for 0.9, works like a charm here.

i could reuse 1:1 the old strings from 0.8.3, no problems with dynamic infos, text align, color codes, progressbar...
Title: foo_uie_trackinfo
Post by: Anas on 2006-03-27 16:35:57
Quote
"$char(1)C" works fine here.
Works for me too. 
I had $char(9) in mind, sorry for bothering you.
Title: foo_uie_trackinfo
Post by: nerrad on 2006-03-27 16:41:56
Thanks for the port! The new version works great, including the dynamic info. Now I have my progress bar back. 

Quote
Okay, I fixed the dynamic info about playback and some crashers, so redownload from the same location and tell me if you're still encountering problems.

I don't have time now, but I'll look at why it's not remembering the mode (now playing / focused) it's in across restarts tomorrow probably.
[a href="index.php?act=findpost&pid=375794"][{POST_SNAPBACK}][/a]
Title: foo_uie_trackinfo
Post by: G-Lite on 2006-03-27 16:46:21
Thanks for the compliments, I had fun porting it.

I've uploaded yet another version, this time it scrolls up automatically (in hopefully all cases where it should happen, and not dynamic info for example). And it also saves the mode it is in properly.

Same location: http://stephan.kochen.nl/proj/foo_uie_trackinfo/ (http://stephan.kochen.nl/proj/foo_uie_trackinfo/)

Report bugs, and enjoy!
Title: foo_uie_trackinfo
Post by: Skates on 2006-03-27 16:49:51
Great Job G-Lite!
Title: foo_uie_trackinfo
Post by: mobyduck on 2006-03-27 16:51:44
Man, you're quick!

No more complaints here.

Alessandro
Title: foo_uie_trackinfo
Post by: LTourist on 2006-03-27 16:58:31
That's a great news you ported it on 0.9, THX man
Title: foo_uie_trackinfo
Post by: The Link on 2006-03-27 18:53:32
Just wanted to ask if suppport for $tab() is still planned as Phi already listed it here (http://www.hydrogenaudio.org/forums/index.php?showtopic=29363&st=225&p=282618&#entry282618).
Title: foo_uie_trackinfo
Post by: Sphix on 2006-03-27 18:56:10
Thanks G Lite
Title: foo_uie_trackinfo
Post by: j conky on 2006-03-27 19:54:56
wow... thanks a bunch... it works perfectly here.
Title: foo_uie_trackinfo
Post by: fabiospark on 2006-03-27 20:15:18
As you surely know, in 0.8.3 we've been using a tweak somebody made on your plugin that let us have 2 different instances of it: would you consider doing it yourself directly and giving the 2 (or more) different versions different names in the Preferences too, please?

Thanks
Title: foo_uie_trackinfo
Post by: lav-chan on 2006-03-27 21:04:29
I have a question. This isn't specifically a problem with trackinfo, but since it does affect it i'll ask here:

Why do all the panels use different edge styles?

I mean, most panels have an option to select between 'grey', 'sunken', and 'no edge', which is great, but they never look the same between panels. Look here:

(http://img88.imageshack.us/img88/79/sunken9ea.th.jpg) (http://img88.imageshack.us/my.php?image=sunken9ea.jpg)

The top panel (trackinfo) and the bottom panel (albumlist) are both using the 'sunken' edge style, but they don't look the same at all. I think that albumlist is actually doing it correctly according to the visual style, but i don't know (or really even care -- i just wish they'd all do it the same way, even if it's wrong).

Like i said, this isn't a problem specifically with trackinfo, it actually seems to affect most panels. But do you know why that inconsistency comes up?
Title: foo_uie_trackinfo
Post by: takt on 2006-03-27 22:07:38
Thanks for the update! Dynamic info works now!
Title: foo_uie_trackinfo
Post by: Bad Seed on 2006-03-28 00:28:11
Thank you again G-Lite
Title: foo_uie_trackinfo
Post by: Glass on 2006-03-28 00:43:03
Works well here. Thanks.
Title: foo_uie_trackinfo
Post by: xan K on 2006-03-28 01:27:37
thanks G-Lite!
Title: foo_uie_trackinfo
Post by: komplexnous on 2006-03-28 05:18:04
Excellent!  Thank you!!! 
Title: foo_uie_trackinfo
Post by: Killmaster on 2006-03-28 22:46:30
I'm pretty sure this was requested when it was out for 0.8, but could you implement an option to truncate with '...' instead of wrapping lines?
Title: foo_uie_trackinfo
Post by: Habla on 2006-03-29 09:26:27
you can do it yourself with code, but it will only work correctly with a fixed-width font.

$ifgreater($len(%album%),40,$left(%album%,40)...,%album%)

or something like that
Title: foo_uie_trackinfo
Post by: helig on 2006-03-30 09:18:19
Quote
I have a question. This isn't specifically a problem with trackinfo, but since it does affect it i'll ask here:

Why do all the panels use different edge styles?

I mean, most panels have an option to select between 'grey', 'sunken', and 'no edge', which is great, but they never look the same between panels. Look here:

(http://img88.imageshack.us/img88/79/sunken9ea.th.jpg) (http://img88.imageshack.us/my.php?image=sunken9ea.jpg)

The top panel (trackinfo) and the bottom panel (albumlist) are both using the 'sunken' edge style, but they don't look the same at all. I think that albumlist is actually doing it correctly according to the visual style, but i don't know (or really even care -- i just wish they'd all do it the same way, even if it's wrong).

Like i said, this isn't a problem specifically with trackinfo, it actually seems to affect most panels. But do you know why that inconsistency comes up?
[a href="index.php?act=findpost&pid=375939"][{POST_SNAPBACK}][/a]


It looks like you have chosen grey in trackinfo panel.. but I always use none as edge style, or grey sometimes, it sooks more clean to me..
Title: foo_uie_trackinfo
Post by: david_dl on 2006-03-30 09:36:44
Quote
I have a question. This isn't specifically a problem with trackinfo, but since it does affect it i'll ask here:

Why do all the panels use different edge styles?

I mean, most panels have an option to select between 'grey', 'sunken', and 'no edge', which is great, but they never look the same between panels. Look here:

(http://img88.imageshack.us/img88/79/sunken9ea.th.jpg) (http://img88.imageshack.us/my.php?image=sunken9ea.jpg)

The top panel (trackinfo) and the bottom panel (albumlist) are both using the 'sunken' edge style, but they don't look the same at all. I think that albumlist is actually doing it correctly according to the visual style, but i don't know (or really even care -- i just wish they'd all do it the same way, even if it's wrong).

Like i said, this isn't a problem specifically with trackinfo, it actually seems to affect most panels. But do you know why that inconsistency comes up?
[a href="index.php?act=findpost&pid=375939"][{POST_SNAPBACK}][/a]


This is proabably because their developers have different ideas of what 'sunken' style means. There are a few window styles and combinations of window styles that have a sunken look, the top panel in that screenshot looks like WS_EX_CLIENTEDGE, while the bottom one doesn't even look sunken, its just a grey border.
Title: foo_uie_trackinfo
Post by: musicmusic on 2006-03-30 12:24:23
To me sunken is this one:
Quote
WS_EX_CLIENTEDGE
    Specifies that a window has a border with a sunken edge.


The trackinfo panel is probably a custom control (?). In that case it won't use themed edges (by default), so it will look different to common control edges, such as the playlist switcher.
Title: foo_uie_trackinfo
Post by: unabatedshagie on 2006-03-30 18:28:34
Am I being blind or is there an option to stop the track information changing when I click on a different song to the one that s playing?
Title: foo_uie_trackinfo
Post by: Stuart60611 on 2006-03-30 18:30:42
Quote
Am I being blind or is there an option to stop the track information changing when I click on a different song to the one that s playing?
[a href="index.php?act=findpost&pid=377137"][{POST_SNAPBACK}][/a]


Double click on track info pannel to switch from the follow the cursor and now playing modes.
Title: foo_uie_trackinfo
Post by: unabatedshagie on 2006-03-30 19:02:27
Quote
Quote
Am I being blind or is there an option to stop the track information changing when I click on a different song to the one that s playing?
[a href="index.php?act=findpost&pid=377137"][{POST_SNAPBACK}][/a]


Double click on track info pannel to switch from the follow the cursor and now playing modes.
[a href="index.php?act=findpost&pid=377139"][{POST_SNAPBACK}][/a]
Ahh, cool thanks
Title: foo_uie_trackinfo
Post by: lav-chan on 2006-03-30 21:55:54
Quote
To me sunken is this one:
Quote
WS_EX_CLIENTEDGE
    Specifies that a window has a border with a sunken edge.
:P

The trackinfo panel is probably a custom control (?). In that case it won't use themed edges (by default), so it will look different to common control edges, such as the playlist switcher.[a href="index.php?act=findpost&pid=377047"][{POST_SNAPBACK}][/a]

That's bogus, i figured everybody would just know which control is the correct one to use. :/

Requesting that trackinfo uses WS_EX_CLIENTEDGE for the sunken style, then, in any case. :please:
Title: foo_uie_trackinfo
Post by: drbeachboy on 2006-03-30 22:33:37
Bogus? What an ingrate! G-Lite just took over this plugin, and was nice enough to get a version together for v.0.9 this week. Be thankful that we have a working version to use, and give it a little time to get refined. Whether this plugin has a correct sunken edge border is the least of my worries.

To G-Lite: This fix seems to be so critical to some, that if you fix the border, then maybe soon we will have World peace. How's that for pressure? ;-)
Title: foo_uie_trackinfo
Post by: lav-chan on 2006-03-30 22:40:26
Jesus Christ, why don't you act like i freaked out about it or something.


I never blamed G-Lite for using the incorrect edge style, i only asked that he (or whoever is going to be in charge of the plug-in from now on) fix it.

Also i was saying 'bogus' to the notion that people could have their own personal idea of what sunken edges are when there is evidently a pre-defined common control for it.
Title: foo_uie_trackinfo
Post by: drbeachboy on 2006-03-30 22:50:23
I didn't accuse you of freaking out. I was just pointing out that people need to have some patience with developers getting their plugins released and/or refined. And now with your response, we are in total agreement.
Title: foo_uie_trackinfo
Post by: vonmeth on 2006-03-30 22:52:35
All this talk about freaking out is freaking me out! AHHH
=)

Since it hasn't been said enough, I'm sure, Thank you G-Lite!
Title: foo_uie_trackinfo
Post by: multifate on 2006-03-30 23:29:49
if it is at all possible
instead of truncating, a scrolling effect would be a wonderful addition 8)
Title: foo_uie_trackinfo
Post by: G-Lite on 2006-03-30 23:34:32
I'm looking at this already, but I think the problem is in albumart instead of trackinfo. When I line up an albumart, a trackinfo and a spectrum analyzer, the latter two match up correctly, it's the albumart that sticks out.

Trackinfo doesn't use any WM_EX_* flags to set it's border, it's drawing the border by itself. I'm looking into having albumart do the same.
Title: foo_uie_trackinfo
Post by: multifate on 2006-03-31 00:09:30
err disregard my post above, i found code in the early pages that did scrolling manually 8( sorry
Title: foo_uie_trackinfo
Post by: foosion on 2006-03-31 00:33:57
Spectrum analyzer uses one of WS_EX_CLIENTEDGE (sunken) or WS_EX_STATICEDGE (grey). Why not make the track info panel use the same instead of modifying the album art panel to use custom border rendering? I don't really understand the point of it.
Title: foo_uie_trackinfo
Post by: lav-chan on 2006-03-31 00:46:23
Quote
Spectrum analyzer uses one of WS_EX_CLIENTEDGE (sunken) or WS_EX_STATICEDGE (grey). Why not make the track info panel use the same instead of modifying the album art panel to use custom border rendering? I don't really understand the point of it.[a href="index.php?act=findpost&pid=377265"][{POST_SNAPBACK}][/a]

Yeah, if i understand it correctly (i'm not a programmer but i think i get the concept we're discussing), every panel should work this way. CLIENTEDGE for 'sunken' style, STATICEDGE for 'grey' style, no exceptions.
Title: foo_uie_trackinfo
Post by: G-Lite on 2006-03-31 11:52:13
Quote
Spectrum analyzer uses one of WS_EX_CLIENTEDGE (sunken) or WS_EX_STATICEDGE (grey). Why not make the track info panel use the same instead of modifying the album art panel to use custom border rendering? I don't really understand the point of it.
[a href="index.php?act=findpost&pid=377265"][{POST_SNAPBACK}][/a]

I went to bed 10 minutes after that post, and thought exactly the same.
Thanks anyway.
Title: foo_uie_trackinfo
Post by: MechaA on 2006-03-31 23:37:56
Hey, looks to me like there's a problem with trackinfo redrawing when FB2K doesn't have the focus;  dragging a window over FB2K's track info panel leaves a nasty trail until I resize foobar.
Title: foo_uie_trackinfo
Post by: lav-chan on 2006-04-01 01:42:32
Ooh. I don't know if this is Columns UI's fault or the panel's, but i got a crash. Here's what happened.

I have a single trackinfo panel, and it's in the side bar. I decided that i wanted to try putting another trackinfo panel in the main (non-side bar) area above the play list, so i went into Layouts tab and added a trackinfo panel and clicked apply. After a while it did that (put the trackinfo above the play list), but it also apparently removed the trackinfo panel from the side bar.

So i was like, f that, the side bar is more important than some lame panel above the play list, so i right-clicked in the empty area that was left in the side bar and re-added the trackinfo panel.

booooom, crash


Code: [Select]
Illegal operation:
Code: C0000005h, flags: 00000000h, address: 01741DC3h
Access violation, operation: read, address: 00000008h
Call path:
entry=>app_mainloop
This is the first crash logged by this instance.
Code bytes (01741DC3h):
01741D83h:  CC CC CC CC CC CC CC CC CC CC CC CC CC 56 8B F1
01741D93h:  8B 4E 04 85 C9 74 08 8B 01 8B 10 6A 01 FF D2 C7
01741DA3h:  46 04 00 00 00 00 8B 4E 0C 85 C9 C7 46 0C 00 00
01741DB3h:  00 00 5E 74 06 8B 01 8B 10 FF E2 C3 CC 8B 41 04
01741DC3h:  8B 40 08 C3 CC CC CC CC CC CC CC CC CC 8B 44 24
01741DD3h:  04 8B 0D 0C C6 76 01 6A 00 68 B0 1F 74 01 50 6A
01741DE3h:  66 51 FF 15 C0 E1 75 01 C2 04 00 CC CC B8 EC FC
01741DF3h:  75 01 C3 CC CC CC CC CC CC CC CC CC CC 8B 44 24
Stack (0012F5D0h):
0012F5B0h:  013FE64C 7C9C76F0 77F643DD 7C9C76F0
0012F5C0h:  00000004 00000000 013FDB58 00000000
0012F5D0h:  01741D6E BF94E7CF 0176B2EC 0185B0C8
0012F5E0h:  00000000 0176B2EC 0012F668 0175CDDB
0012F5F0h:  FFFFFFFF 017CFF68 0DFB0296 0012F6BC
0012F600h:  018262BC BF609927 00000000 02415B68
0012F610h:  0185B0C8 00000000 00000000 000000B4
0012F620h:  000002A3 00000005 0012F664 0012F658
0012F630h:  01817324 01744F00 00000000 0040BF7B
0012F640h:  0040BF88 0012F6E0 00BAF00C 0012F690
0012F650h:  0049550F FFFFFFFF 017B9A97 0238A600
0012F660h:  00000001 0012F604 0012F768 01803A52
0012F670h:  00000009 01816DF4 00000000 00000000
0012F680h:  00000000 02469E00 0000000B 0012F678
0012F690h:  0012F768 018025BA FFFFFFFF 017BFF3F
0012F6A0h:  085F03D4 0185B0C8 01816DBC 0185D438
0012F6B0h:  0000001B 0000000A 018252C4 018252C4
0012F6C0h:  0DFB0296 00000000 0012F630 00000005
0012F6D0h:  01010004 0176B2EC 00000004 0012F774
0012F6E0h:  017D0D1E BF609827 01E30126 0185B0C8
Registers:
EAX: 00000000, EBX: 01825284, ECX: 0176B2EC, EDX: 01741DC0
ESI: 0176B2EC, EDI: 00000000, EBP: 0012F674, ESP: 0012F5D0
Crash location: "foo_uie_trackinfo", loaded at 01740000h - 01773000h

Loaded modules:
foobar2000                      loaded at 00400000h - 004DC000h
ntdll                            loaded at 7C900000h - 7C9B0000h
kernel32                        loaded at 7C800000h - 7C8F4000h
COMCTL32                        loaded at 773D0000h - 774D2000h
msvcrt                          loaded at 77C10000h - 77C68000h
ADVAPI32                        loaded at 77DD0000h - 77E6B000h
RPCRT4                          loaded at 77E70000h - 77F01000h
GDI32                            loaded at 77F10000h - 77F56000h
USER32                          loaded at 77D40000h - 77DD0000h
SHLWAPI                          loaded at 77F60000h - 77FD6000h
SHELL32                          loaded at 7C9C0000h - 7D1D3000h
ole32                            loaded at 774E0000h - 7761C000h
shared                          loaded at 10000000h - 1002A000h
comdlg32                        loaded at 763B0000h - 763F9000h
IMM32                            loaded at 76390000h - 763AD000h
LPK                              loaded at 629C0000h - 629C9000h
USP10                            loaded at 74D90000h - 74DFB000h
uxtheme                          loaded at 5AD70000h - 5ADA8000h
DockShellHook                    loaded at 003D0000h - 003DC000h
msctfime                        loaded at 755C0000h - 755EE000h
foo_abx                          loaded at 00A10000h - 00A43000h
foo_albumlist                    loaded at 00A70000h - 00AAF000h
foo_amipwrapper                  loaded at 00AD0000h - 00AF6000h
foo_autoplaylist                loaded at 00B20000h - 00B52000h
foo_browser                      loaded at 00B80000h - 00BB7000h
foo_cdda                        loaded at 00BE0000h - 00C0D000h
foo_common                      loaded at 00C30000h - 00C6A000h
foo_converter                    loaded at 00C90000h - 00CF0000h
foo_dbsearch                    loaded at 00D10000h - 00D6C000h
foo_dsp_delta                    loaded at 00D90000h - 00DAE000h
foo_dsp_std                      loaded at 00DD0000h - 00E0F000h
foo_dumb                        loaded at 00E30000h - 00E8F000h
foo_freedb2                      loaded at 00EB0000h - 00EF0000h
foo_gep                          loaded at 00F10000h - 00FA8000h
MSIMG32                          loaded at 76380000h - 76385000h
OLEAUT32                        loaded at 77120000h - 771AC000h
foo_input_monkey                loaded at 00FD0000h - 01013000h
foo_input_shorten                loaded at 01040000h - 0106E000h
foo_input_std                    loaded at 01090000h - 0119C000h
foo_lnk                          loaded at 011C0000h - 011D9000h
foo_masstag                      loaded at 01200000h - 0124E000h
foo_midi                        loaded at 01270000h - 01318000h
foo_osd                          loaded at 01340000h - 01376000h
gdiplus                          loaded at 4EC50000h - 4EDF3000h
foo_playcount                    loaded at 013B0000h - 013D8000h
foo_playlist_manager            loaded at 01400000h - 01446000h
foo_pqview                      loaded at 01470000h - 0148C000h
foo_psf                          loaded at 014B0000h - 01593000h
foo_rgscan                      loaded at 015C0000h - 01603000h
foo_uie_albumart                loaded at 01630000h - 01659000h
foo_uie_albumlist                loaded at 01680000h - 016BF000h
foo_uie_explorer                loaded at 016E0000h - 0171D000h
foo_uie_trackinfo                loaded at 01740000h - 01773000h
foo_ui_columns                  loaded at 017A0000h - 0183A000h
foo_ui_std                      loaded at 01860000h - 018B7000h
foo_unpack                      loaded at 018E0000h - 0190E000h
foo_utils                        loaded at 01930000h - 01969000h
CLBCATQ                          loaded at 76FD0000h - 7704F000h
COMRes                          loaded at 77050000h - 77115000h
VERSION                          loaded at 77C00000h - 77C08000h
dciman32                        loaded at 73BC0000h - 73BC6000h
amip                            loaded at 074C0000h - 0766A000h
WS2_32                          loaded at 71AB0000h - 71AC7000h
WS2HELP                          loaded at 71AA0000h - 71AA8000h
DSOUND                          loaded at 73F10000h - 73F6C000h
WINMM                            loaded at 76B40000h - 76B6D000h
wdmaud                          loaded at 72D20000h - 72D29000h
WINTRUST                        loaded at 76C30000h - 76C5E000h
CRYPT32                          loaded at 77A80000h - 77B14000h
MSASN1                          loaded at 77B20000h - 77B32000h
IMAGEHLP                        loaded at 76C90000h - 76CB8000h
msacm32                          loaded at 72D10000h - 72D18000h
MSACM32                          loaded at 77BE0000h - 77BF5000h
midimap                          loaded at 77BD0000h - 77BD7000h
KsUser                          loaded at 73EE0000h - 73EE4000h
asycfilt                        loaded at 708F0000h - 70903000h
DBGHELP                          loaded at 59A60000h - 59B01000h

Stack dump analysis:
Address: 01741D6Eh, location: "foo_uie_trackinfo", loaded at 01740000h - 01773000h
Address: 0176B2ECh, location: "foo_uie_trackinfo", loaded at 01740000h - 01773000h
Address: 0176B2ECh, location: "foo_uie_trackinfo", loaded at 01740000h - 01773000h
Address: 0175CDDBh, location: "foo_uie_trackinfo", loaded at 01740000h - 01773000h
Address: 017CFF68h, location: "foo_ui_columns", loaded at 017A0000h - 0183A000h
Address: 01817324h, location: "foo_ui_columns", loaded at 017A0000h - 0183A000h
Address: 01744F00h, location: "foo_uie_trackinfo", loaded at 01740000h - 01773000h
Address: 0040BF7Bh, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 0040BF88h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00BAF00Ch, location: "foo_browser", loaded at 00B80000h - 00BB7000h
Address: 0049550Fh, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 017B9A97h, location: "foo_ui_columns", loaded at 017A0000h - 0183A000h
Address: 01803A52h, location: "foo_ui_columns", loaded at 017A0000h - 0183A000h
Address: 01816DF4h, location: "foo_ui_columns", loaded at 017A0000h - 0183A000h
Address: 018025BAh, location: "foo_ui_columns", loaded at 017A0000h - 0183A000h
Address: 017BFF3Fh, location: "foo_ui_columns", loaded at 017A0000h - 0183A000h
Address: 01816DBCh, location: "foo_ui_columns", loaded at 017A0000h - 0183A000h
Address: 018252C4h, location: "foo_ui_columns", loaded at 017A0000h - 0183A000h
Address: 018252C4h, location: "foo_ui_columns", loaded at 017A0000h - 0183A000h
Address: 01010004h, location: "foo_input_monkey", loaded at 00FD0000h - 01013000h
Address: 0176B2ECh, location: "foo_uie_trackinfo", loaded at 01740000h - 01773000h
Address: 017D0D1Eh, location: "foo_ui_columns", loaded at 017A0000h - 0183A000h
Address: 017C5F67h, location: "foo_ui_columns", loaded at 017A0000h - 0183A000h
Address: 77D48BB1h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetWindowThreadProcessId" (+00000159h)
Address: 018252C4h, location: "foo_ui_columns", loaded at 017A0000h - 0183A000h
Address: 0180D064h, location: "foo_ui_columns", loaded at 017A0000h - 0183A000h
Address: 00E30126h, location: "foo_dumb", loaded at 00E30000h - 00E8F000h
Address: 01803AF4h, location: "foo_ui_columns", loaded at 017A0000h - 0183A000h
Address: 01816DBCh, location: "foo_ui_columns", loaded at 017A0000h - 0183A000h
Address: 01816DBCh, location: "foo_ui_columns", loaded at 017A0000h - 0183A000h
Address: 017D0DD0h, location: "foo_ui_columns", loaded at 017A0000h - 0183A000h
Address: 017D0D8Eh, location: "foo_ui_columns", loaded at 017A0000h - 0183A000h
Address: 77D48709h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetDC" (+00000072h)
Address: 017D0D8Eh, location: "foo_ui_columns", loaded at 017A0000h - 0183A000h
Address: 017D0D8Eh, location: "foo_ui_columns", loaded at 017A0000h - 0183A000h
Address: 77D487EBh, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetDC" (+00000154h)
Address: 017D0D8Eh, location: "foo_ui_columns", loaded at 017A0000h - 0183A000h
Address: 00AD4790h, location: "foo_amipwrapper", loaded at 00AD0000h - 00AF6000h
Address: 77D70494h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetClipboardFormatNameA" (+0000014Fh)
Address: 77D48808h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetDC" (+00000171h)
Address: 77D4D3BBh, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetTopWindow" (+0000024Ch)
Address: 017D0D8Eh, location: "foo_ui_columns", loaded at 017A0000h - 0183A000h
Address: 77D484BCh, location: "USER32", loaded at 77D40000h - 77DD0000h
Address: 77D48564h, location: "USER32", loaded at 77D40000h - 77DD0000h
Address: 77D4B2A1h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "DefWindowProcW" (+000000BCh)
Address: 77D4B23Ch, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "DefWindowProcW" (+00000057h)
Address: 014C006Fh, location: "foo_psf", loaded at 014B0000h - 01593000h
Address: 77D70494h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetClipboardFormatNameA" (+0000014Fh)
Address: 77D4B258h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "DefWindowProcW" (+00000073h)
Address: 017D0746h, location: "foo_ui_columns", loaded at 017A0000h - 0183A000h
Address: 014C006Fh, location: "foo_psf", loaded at 014B0000h - 01593000h
Address: 014C006Fh, location: "foo_psf", loaded at 014B0000h - 01593000h
Address: 77D70494h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetClipboardFormatNameA" (+0000014Fh)
Address: 77D4B378h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "DefWindowProcW" (+00000193h)
Address: 01803AF4h, location: "foo_ui_columns", loaded at 017A0000h - 0183A000h
Address: 017D0D8Eh, location: "foo_ui_columns", loaded at 017A0000h - 0183A000h
Address: 77D488A9h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetWindowLongW" (+0000002Bh)
Address: 77D488B2h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetWindowLongW" (+00000034h)
Address: 017D0D8Eh, location: "foo_ui_columns", loaded at 017A0000h - 0183A000h
Address: 017D0D8Eh, location: "foo_ui_columns", loaded at 017A0000h - 0183A000h
Address: 014C006Fh, location: "foo_psf", loaded at 014B0000h - 01593000h
Address: 01803AF4h, location: "foo_ui_columns", loaded at 017A0000h - 0183A000h
Address: 014C006Fh, location: "foo_psf", loaded at 014B0000h - 01593000h
Address: 017D0D8Eh, location: "foo_ui_columns", loaded at 017A0000h - 0183A000h
Address: 77D488A9h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetWindowLongW" (+0000002Bh)
Address: 77D488B2h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetWindowLongW" (+00000034h)
Address: 014C006Fh, location: "foo_psf", loaded at 014B0000h - 01593000h
Address: 017D0D8Eh, location: "foo_ui_columns", loaded at 017A0000h - 0183A000h
Address: 017D0DD0h, location: "foo_ui_columns", loaded at 017A0000h - 0183A000h
Address: 014C006Fh, location: "foo_psf", loaded at 014B0000h - 01593000h
Address: 017D0D8Eh, location: "foo_ui_columns", loaded at 017A0000h - 0183A000h
Address: 77D48709h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetDC" (+00000072h)
Address: 014C006Fh, location: "foo_psf", loaded at 014B0000h - 01593000h
Address: 017D0D8Eh, location: "foo_ui_columns", loaded at 017A0000h - 0183A000h
Address: 017D0D8Eh, location: "foo_ui_columns", loaded at 017A0000h - 0183A000h
Address: 77D487EBh, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetDC" (+00000154h)
Address: 017D0D8Eh, location: "foo_ui_columns", loaded at 017A0000h - 0183A000h
Address: 014C006Fh, location: "foo_psf", loaded at 014B0000h - 01593000h
Address: 77D70494h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetClipboardFormatNameA" (+0000014Fh)
Address: 77D70494h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetClipboardFormatNameA" (+0000014Fh)
Address: 77D48808h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetDC" (+00000171h)
Address: 77D489A5h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetWindowLongW" (+00000127h)
Address: 017D0D8Eh, location: "foo_ui_columns", loaded at 017A0000h - 0183A000h
Address: 014C006Fh, location: "foo_psf", loaded at 014B0000h - 01593000h
Address: 004C87F8h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004AD668h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 77D70494h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetClipboardFormatNameA" (+0000014Fh)
Address: 77D489C8h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetWindowLongW" (+0000014Ah)
Address: 77D489E8h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "DispatchMessageW" (+0000000Fh)
Address: 0042A497h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 77D4E666h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "DestroyWindow" (+00000000h)
Address: 014C006Fh, location: "foo_psf", loaded at 014B0000h - 01593000h
Address: 00D4E666h, location: "foo_dbsearch", loaded at 00D10000h - 00D6C000h
Address: 0042AF1Ah, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 7C9106ABh, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlAllocateHeap" (+000000D7h)
Address: 004AD734h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004AC600h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004AC600h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00400000h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004AE828h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004CD1A0h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 7C910732h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlAllocateHeap" (+0000015Eh)
Address: 7C90EE18h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "strchr" (+00000117h)
Address: 7C911538h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "wcsncpy" (+00000AA9h)
Address: 7C911596h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "wcsncpy" (+00000B07h)
Address: 7C9106EBh, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlAllocateHeap" (+00000117h)
Address: 004CD280h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004A18E4h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 7C910570h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlFreeHeap" (+00000133h)
Address: 7C91056Dh, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlFreeHeap" (+00000130h)
Address: 7C917CB7h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlReAllocateHeap" (+000002BAh)
Address: 7C917BF5h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlReAllocateHeap" (+000001F8h)
Address: 7C917BB0h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlReAllocateHeap" (+000001B3h)
Address: 7C90EE18h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "strchr" (+00000117h)
Address: 1000D533h, location: "shared", loaded at 10000000h - 1002A000h
Address: 7C90EE18h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "strchr" (+00000117h)
Address: 7C910570h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlFreeHeap" (+00000133h)
Address: 7C91056Dh, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlFreeHeap" (+00000130h)
Address: 1000D469h, location: "shared", loaded at 10000000h - 1002A000h
Address: 1000D469h, location: "shared", loaded at 10000000h - 1002A000h
Address: 10003AB0h, location: "shared", loaded at 10000000h - 1002A000h
Symbol: "t_font_description::g_from_font" (+00000030h)
Address: 10003ABEh, location: "shared", loaded at 10000000h - 1002A000h
Symbol: "t_font_description::g_from_font" (+0000003Eh)
Address: 7C911B09h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlLogStackBackTrace" (+00000025h)
Address: 004CD210h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 7C911B09h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlLogStackBackTrace" (+00000025h)
Address: 004CD280h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004813A4h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 7C90EE18h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "strchr" (+00000117h)
Address: 7C9106F0h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlAllocateHeap" (+0000011Ch)
Address: 7C9106EBh, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlAllocateHeap" (+00000117h)
Address: 00480EB5h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004AD480h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 10002D77h, location: "shared", loaded at 10000000h - 1002A000h
Symbol: "uPrintCrashInfo_SetDumpPath" (+000000B7h)
Address: 004AD480h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 0049D48Bh, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004AD480h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 0042B0F4h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00400000h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004CA288h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00486E75h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00481239h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00481233h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004A18E8h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004A0CE5h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00486560h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 0049D66Dh, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00485445h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00400000h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 00486560h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 7C816D4Fh, location: "kernel32", loaded at 7C800000h - 7C8F4000h
Symbol: "RegisterWaitForInputIdle" (+00000049h)
Address: 7C8399F3h, location: "kernel32", loaded at 7C800000h - 7C8F4000h
Symbol: "FindAtomW" (+00000094h)
Address: 7C816D58h, location: "kernel32", loaded at 7C800000h - 7C8F4000h
Symbol: "RegisterWaitForInputIdle" (+00000052h)
Address: 004854AEh, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 004B0063h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 003D006Eh, location: "DockShellHook", loaded at 003D0000h - 003DC000h
Address: 003D0065h, location: "DockShellHook", loaded at 003D0000h - 003DC000h
Address: 003D006Eh, location: "DockShellHook", loaded at 003D0000h - 003DC000h
Address: 00410072h, location: "foobar2000", loaded at 00400000h - 004DC000h
Address: 003D0065h, location: "DockShellHook", loaded at 003D0000h - 003DC000h

Version info:
foobar2000 v0.9
UNICODE

Additional info:
Shorten decoder 0.4.2a  (foo_input_shorten)
Monkey's Audio decoder 2.0  (foo_input_monkey)
Track info panel 0.1  (foo_uie_trackinfo)
Converter 1.0  (foo_converter)
Game Emu Player 1.3  (foo_gep)
freedb tagger v0.5.1  (foo_freedb2)
Explorer Tree 1.04.6  (foo_uie_explorer)
Database search 1.3.1 beta 11  (foo_dbsearch)
Album list panel 0.2.1 beta 3  (foo_uie_albumlist)
MPEG-4 AAC decoder 2.1  (foo_input_std)
DUMB module decoder 0.9.7  (foo_dumb)
Columns UI 0.1.3 pre-alpha 17v6  (foo_ui_columns)
Default User Interface 0.9acc  (foo_ui_std)
ZIP/GZIP reader 1.0  (foo_unpack)
RAR reader 1.1  (foo_unpack)
Album Art Panel 0.150  (foo_uie_albumart)
Common services 0.1  (foo_common)
ReplayGain Scanner 2.0  (foo_rgscan)
Standard input array 1.0  (foo_input_std)
Highly Experimental 2.0.5  (foo_psf)
Playlist Manager 1.0  (foo_playlist_manager)
LPCM <--> delta-PCM converter 0.1.1  (foo_dsp_delta)
Playback statistics 1.0  (foo_playcount)
CD Audio decoder 2.0  (foo_cdda)
Music Browser 1.0.9 [Mar 30 2006 - 19:07:07]  (foo_browser)
On-Screen Display GDI+ 1.52  (foo_osd)
Playlist tools 0.5.6  (foo_utils)
Standard DSP array 1.0  (foo_dsp_std)
MIDI synthesizer host 1.6  (foo_midi)
Masstagger 1.5  (foo_masstag)
Shell link resolver 1.1  (foo_lnk)
FLAC decoder 1.1.0  (foo_input_std)
ABX comparator 1.3  (foo_abx)
Album List 3.1.0  (foo_albumlist)
AMIP Wrapper 0.90  (foo_amipwrapper)
Title: foo_uie_trackinfo
Post by: mobyduck on 2006-04-01 07:23:18
Quote
Hey, looks to me like there's a problem with trackinfo redrawing when FB2K doesn't have the focus;  dragging a window over FB2K's track info panel leaves a nasty trail until I resize foobar.[a href="index.php?act=findpost&pid=377609"][{POST_SNAPBACK}][/a]
I see the trail, but it's correctly refreshed here, though not instantly (using Win2k).

Alessandro
Title: foo_uie_trackinfo
Post by: mister_tee on 2006-04-01 19:10:37
Nice plugin, but how do I get I work???? 
I tried everything, but I can't find the option to activated it!

I'm going crazy on this! 
After putting the foo_uie_trackinfo.dll in my foobar components directory, I find a new entry at my preferences page:
-> Tools -> Track info panel

I can change the options, but I could not activate the panel! Not in the sidebar, not with a rightclick on a normal toolbar and not at the preferences/ColumnsUi/Layout Page...
What have I done wrong? Do I have to use a special version of the ColumnsUi?

Update: In the same moment, as I am writing this, I looked at the ColumsUi Page... and yes, I had to update my "old" 17.3 version....

My apologies for this post.
With kind regards, Mister_Tee
Title: foo_uie_trackinfo
Post by: G-Lite on 2006-04-08 14:06:34
I've had a small break, something else came inbetween. But I spent some more time hacking on this now, so here's a new version (same location, but here are the links again anyways):Changes:Note that you will lose your old trackinfo panel's configuration by installing this version. So copy and paste those formatting strings somewhere safe before you install this, so you can easily reconfigure afterwards.

I've been using this for a while now, and it looks stable. But consider it beta anyways, and report any bugs!
Title: foo_uie_trackinfo
Post by: Lance Uppercut on 2006-04-08 14:29:16
Works great!  You really kick a$$ G-Lite.  Your efforts are greatly appreciated!
Title: foo_uie_trackinfo
Post by: boombaard on 2006-04-08 14:40:33
[quote author=G-Lite link=msg=380184 date=1144501594]I've had a small break, something else came inbetween. But I spent some more time hacking on this now, so here's a new version (same location, but here are the links again anyways):Changes:Note that you will lose your old trackinfo panel's configuration by installing this version. So copy and paste those formatting strings somewhere safe before you install this, so you can easily reconfigure afterwards.

I've been using this for a while now, and it looks stable. But consider it beta anyways, and report any bugs! [/quote]

thanks for this .. now i can split the statistics display bit off to a separate (tiny) panel next to the visualisation, in stead of having it limit the vertical size of the albumlist panel
Title: foo_uie_trackinfo
Post by: NEMO7538 on 2006-04-08 15:10:21
Multiple instances does not work on my config. (Win 2K SP4, Columns UI: 0.1.3 pre-alpha 17v6)
Title: foo_uie_trackinfo
Post by: Lycox on 2006-04-08 15:10:31
Well, a new version of my trackinfo-string. (See code for changes)

Latest Version... (http://www.hydrogenaudio.org/forums/index.php?showtopic=29363&st=350&p=303918%EF%BF%BDentry303918#)

(http://img118.echo.cx/img118/3070/foobarscreenshot8tg.jpg)

Send me your color schemes.
Title: foo_uie_trackinfo
Post by: fabiospark on 2006-04-08 15:22:06
I think I found a small bug.

Panel not in now playing mode.
If you select a playing track its title in the panel goes yellow.
At the end of the track, when FB goes to play the next one, the title of the old one (not playing anymore) stays yellow.

Thanks a lot for the multi instances feature.
Title: foo_uie_trackinfo
Post by: Mafioso on 2006-04-08 15:32:09
Thx!, it works like a charm. Also the dynamic fields like %playback_time% etc work now. Thank you very much.
Title: foo_uie_trackinfo
Post by: lav-chan on 2006-04-08 15:33:59
Ummm. Weird thing just happened.

So i had a trackinfo panel in the side bar before. I installed the new version, pasted the settings back in, everything worked perfectly fine.

Then i tried to add a second trackinfo panel, this time to the main vertical splitter in my Columns layout. So i went to the Layout tab and added it and started configuring it and everything, and it was also working perfectly fine.

Then i needed to get the RGB values of some colour to use in the second panel's configuration, so i Alt+Print Screened the foobar window and Alt+Tabbed to Photoshop so i could use the colour picker in there. I got the colour i wanted, Alt+Tabbed back to foobar... and now the second panel is gone.

And i don't mean like the box went blank or something like that, i mean it's literally gone, as if it was never even there. Back to the state foobar was in before i added the second panel.

I tried to go into Layout and see if setting it hidden and then un-hiding it would make it re-appear, but it didn't. And updating the Layout tab takes like a full minute or two so i'm kind of tired of messing with it, so i gave up. :impatient:
Title: foo_uie_trackinfo
Post by: ak47mega on 2006-04-08 16:44:21
thanks G-lite 

Great work..
Title: foo_uie_trackinfo
Post by: drbeachboy on 2006-04-08 17:24:03
Hi G-Lite,

I am using 2 panels and everything is working fine here. Thank you very much for all your work, and for giving us the multiple panels option.
Title: foo_uie_trackinfo
Post by: sinbad on 2006-04-08 17:39:44
hi, I installed foo_uie_trackinfo to the comp folder, and can see it under compotments in fb2k, but don't see it under Prefernces>Tools or anywhere else i can configure it.

any ideas?
Title: foo_uie_trackinfo
Post by: vilse on 2006-04-08 17:50:09
I have the same problem as Sinbad. I can still configure the plugin by right-clicking it though.
Title: foo_uie_trackinfo
Post by: The Link on 2006-04-08 17:52:30
The only way to use multiple trackinfo panels is configuring them individually by right clicking them. Otherwise this concept wouldn't work. That's why the configuration page(s) in the preferences is gone.
Title: foo_uie_trackinfo
Post by: boombaard on 2006-04-08 17:56:58
hi, I installed foo_uie_trackinfo to the comp folder, and can see it under compotments in fb2k, but don't see it under Prefernces>Tools or anywhere else i can configure it.

any ideas?


Quote
Changes:
Now supports multiple instances (without any nasty hacks).
Because of this, configuration has moved. You can now access the configuration per panel from the right click menu, or using the configure button in the layout tab of columns ui's preferences.


iow: try reading back 6 posts before asking an already answered question?
Title: foo_uie_trackinfo
Post by: Skates on 2006-04-08 20:27:05
I'm having a hard time entering RGB values in the color picker for the background...

It's not letting me enter 3 digit values, any help would be appreciated!
Title: foo_uie_trackinfo
Post by: foosion on 2006-04-08 20:54:03
I'm having a hard time entering RGB values in the color picker for the background...

It's not letting me enter 3 digit values, any help would be appreciated!
See this thread (http://www.hydrogenaudio.org/forums/index.php?showtopic=43053).
Title: foo_uie_trackinfo
Post by: tofu on 2006-04-08 22:31:15
is it possible to display db level in the trackinfo panel?  i could get rid of my status bar if this is the case.
Title: foo_uie_trackinfo
Post by: Chri5peed on 2006-04-08 23:45:52
All I want is how many times a song has been played and what date it was played last. 

Another thing, do the play records start from now or from when I started using Foobar 0.9?
Title: foo_uie_trackinfo
Post by: GrumpyDoctor on 2006-04-09 00:12:46
This question seems really dumb, but how do I add one of these to the top, above the playlist view? I found the Columns UI Layout tab but I can't make it do anything useful.
Title: foo_uie_trackinfo
Post by: analoglife on 2006-04-09 05:24:58
I have a question about coding in track info:

screenshot (http://www.roffletown.com/wy/misc/foobar.jpg)

I want to know if one is able to have one line of text with different text alignment. Personally I don't think that's possible... even in MS Word.
Well, I just want to have the artist-title align to the left, while the song position/elapsed on the right... without using 2 lines. And also, it seems like $tab() doesn't work for me.

If anyone has an idea... please help!

Thanks

moderation: please refrain from inlining images larger than roughly 800x600 and 80KB. please use thumbnails and/or links for large pictures instead.
Title: foo_uie_trackinfo
Post by: 4nt1 on 2006-04-09 07:16:03
well in ms word you can if you make tab markers
as for this i am not so sure
Title: foo_uie_trackinfo
Post by: Birk on 2006-04-09 10:37:50
it would work in track info if $char(9) would work...
Title: foo_uie_trackinfo
Post by: Generalverdacht on 2006-04-09 12:56:14
hi, i want to change my time format from american to west-european.

here is my code so far, i guess i have to change somethign in it:

Code: [Select]
// 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),
January,February,March,April,May,June,July,August,September,October,November,December))

// 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))

i want a 24-hour system and i dont like this "th" after the number of the day.

hope somebody could help me out.
Title: foo_uie_trackinfo
Post by: vonmeth on 2006-04-09 23:46:59
I have a question about coding in track info:

screenshot (http://www.roffletown.com/wy/misc/foobar.jpg)

I want to know if one is able to have one line of text with different text alignment. Personally I don't think that's possible... even in MS Word.
Well, I just want to have the artist-title align to the left, while the song position/elapsed on the right... without using 2 lines. And also, it seems like $tab() doesn't work for me.

If anyone has an idea... please help!

Thanks

moderation: please refrain from inlining images larger than roughly 800x600 and 80KB. please use thumbnails and/or links for large pictures instead.


You could do this in two ways (that I know of, and I don't know too much, lol).

First the hard way.

I would figure out how many characters can go across the whole thing (lets say for sake of example, 20). Next, with that number, I would limit how long the artist-title can be. Lets say, I limit that to 12 characters.

If the artist-title is longer than 12, have it cut down to 12. If it is lower than two, pad it with spaceing after it till it reaches 12.

I would then have it count the characters for song position/elasped, and it has room for 8 characters (20-12). Would subtract the amount the song position/elasped takes, then pad it with characters BEFORE the song position/elasped, so that it is pressed all the way to the right.


The second way, I believe, would be to just create two different infoboxs that are side-by-side. Have the first one set to $char(1)R and the other as $char(1)L ...
Title: foo_uie_trackinfo
Post by: vonmeth on 2006-04-10 01:03:27
Code: [Select]
$puts(a,%album%)
$puts(t,%_time_elapsed% / %_time_total%)
$padcut($get(a),25)
$padcut_right($get(t),50)


There ya go.

Edit: Yeah, as you can see, I wasn't thinking when I wrote the prior post. Still really rusty on my coding lol. It is just mostly trial and error =\
Title: foo_uie_trackinfo
Post by: analoglife on 2006-04-10 06:07:03
Thanks for your response.
I tried out the idea with your code, and realized that it is kind of hard to line up since my font is not fixed width... It's a good idea, and I am still trying to tweak it...

Anyone know why $tab() or $char(9) won't work?
Title: foo_uie_trackinfo
Post by: gfngfgf on 2006-04-10 06:41:11
Anyone know why $tab() or $char(9) won't work?

It's been a request/issue even with the 0.8.3 version.
Title: foo_uie_trackinfo
Post by: Chri5peed on 2006-04-10 14:04:09
All I want is how many times a song has been played and what date it was played last. 

Another thing, do the play records start from now or from when I started using Foobar 0.9?


Anyone?
Title: foo_uie_trackinfo
Post by: lav-chan on 2006-04-10 18:28:51
http://www.foobar2000.org/components/index.html (http://www.foobar2000.org/components/index.html)

Download Playback Statistics. Use %play_count% and %last_played%. Statistics are kept from when you first install the plug-in.
Title: foo_uie_trackinfo
Post by: Chri5peed on 2006-04-10 21:50:24
[quote author=lav-chan link=msg=380947 date=1144690131]Download Playback Statistics. Use %play_count% and %last_played%. Statistics are kept from when you first install the plug-in.[/quote]

Thank you, thats perfect. 

All the albums I've played today(in my playlist) are in the log now too.


edit - Sorry to be a pain, I saw it somewhere. Whats the code for making the date:

24-04-06
If it were the 24th April 2006, English has day/month/year...
Title: foo_uie_trackinfo
Post by: Stratman on 2006-04-11 11:57:43
I'm using the following to display comments in a second instance of Track Info.
%comment%$char(10)
The problem is that the comments only show when the song is playing. When stopped, it only shows a "?".
Any ideas?

Thanks.
Title: foo_uie_trackinfo
Post by: start78 on 2006-04-11 12:05:40
What about "[%comment%]"?
Title: foo_uie_trackinfo
Post by: Stratman on 2006-04-11 12:52:42
What about "[%comment%]"?

Same problem only now it displays nothing when not playing.
Title: foo_uie_trackinfo
Post by: Birk on 2006-04-11 12:53:56
doubleclick on the panel
Title: foo_uie_trackinfo
Post by: drbeachboy on 2006-04-11 14:35:18

What about "[%comment%]"?

Same problem only now it displays nothing when not playing.

In "Track info" change "Mode:" from "Now playing" to "Follow cursor". This should make all of your tag info show when you click on a file.
Title: foo_uie_trackinfo
Post by: Stratman on 2006-04-12 02:57:48


What about "[%comment%]"?

Same problem only now it displays nothing when not playing.

In "Track info" change "Mode:" from "Now playing" to "Follow cursor". This should make all of your tag info show when you click on a file.

Thanks! After two years of this you'd think I could have figured that out. Geez.
Title: foo_uie_trackinfo
Post by: nlights on 2006-04-12 09:02:04

What about "[%comment%]"?

Same problem only now it displays nothing when not playing.


I use the following code, maybe it helps
Code: [Select]
$puts(noinf,$get(red)'(n/a)')

$puts(artistinfo,$get(blue-light)Artist: $get(grey)$if2(%artist%,$get(noinf)))
... same for album, title etc.

$if(
$strcmp(%_trackinfo_mode%,Now playing),
$if(
$or(%isplaying%,%ispaused%),
$get(artistinfo),
$get(grey-light)Artist:
),
$get(artistinfo)
)

$char(10)
... same for album, title etc.

when i selcect "follow cursor" or now playing mode and play the file it looks like this:
[a href="http://img135.imageshack.us/my.php?image=play3nz.jpg" target="_blank"]  )

greetings
nlights
Title: foo_uie_trackinfo
Post by: vlada on 2006-04-12 11:18:46


What about "[%comment%]"?

Same problem only now it displays nothing when not playing.

In "Track info" change "Mode:" from "Now playing" to "Follow cursor". This should make all of your tag info show when you click on a file.


Where can I change this? I read the first post, but I don't understand how to set the mode to "Follow cursor". Thanks.

P.S. I'm using fb2k 0.9 and track_info 0.5
Title: foo_uie_trackinfo
Post by: Seldaek on 2006-04-12 11:21:47
Just double-click or middle-click on the panel, it should change it's mode.
Title: foo_uie_trackinfo
Post by: cbsantos on 2006-04-13 13:52:32
Sorry if this had been answered before but after two days looking for it I couldn't find anything.
Is it possible to code font size so that I can have several font sizes inside the same trackinfo window?
Title: foo_uie_trackinfo
Post by: Seldaek on 2006-04-13 19:05:49
I fear you can't do that, at least I don't know how and have never seen that kind of effect in anyone's screenshot.
Title: foo_uie_trackinfo
Post by: Habla on 2006-04-13 23:38:08
Sorry if this had been answered before but after two days looking for it I couldn't find anything.
Is it possible to code font size so that I can have several font sizes inside the same trackinfo window?

no.
Title: foo_uie_trackinfo
Post by: cbsantos on 2006-04-14 00:08:54
Well, I must say that I was convinced I would get this answer.
Thanks anyway.
At least I can stop searching for it.
Now, can you please tell me where can I get a more complete information about TAGZ? I’ve found some tutorials but not a real document with all the tags and functions.
Title: foo_uie_trackinfo
Post by: Shade[ST] on 2006-04-14 00:18:30
You're probably looking for this (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Titleformat_Reference)
Title: foo_uie_trackinfo
Post by: Erich w/ an h on 2006-04-14 06:44:11
Well, a new version of my trackinfo-string. (See code for changes)


wouldnt it be easier for the spacer to put:

$puts(spacer,d6d6d6$repeat(-,90)$char(10))
Title: foo_uie_trackinfo
Post by: Lycox on 2006-04-14 08:37:13
Well, a new version of my trackinfo-string. (See code for changes)


wouldnt it be easier for the spacer to put:

$puts(spacer,d6d6d6$repeat(-,90)$char(10))


Thanks man. I'll change it in my next release. 
Title: foo_uie_trackinfo
Post by: cbsantos on 2006-04-14 11:18:34
Quote
' date='Apr 13 2006, 11:18 PM' post='382182']
You're probably looking for this (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Titleformat_Reference)


Thanks Shade[ST].
Foobar2000 is the best but I was lost!!
Not anymore.
Title: foo_uie_trackinfo
Post by: Borbus on 2006-04-16 21:35:15
It fails to load for me with foobar 0.9, columns UI 0.1.3 pre-alpha 17v6. I'm also using foo_browser. Are there any other dependancies?
Title: foo_uie_trackinfo
Post by: mil3s on 2006-04-18 19:10:33
Please make it possible to align both left and right on the same line.
Title: foo_uie_trackinfo
Post by: Stratman on 2006-04-20 02:10:57
[quote author=lav-chan link=msg=380947 date=1144690131]http://www.foobar2000.org/components/index.html (http://www.foobar2000.org/components/index.html)

Download Playback Statistics. Use %play_count% and %last_played%. Statistics are kept from when you first install the plug-in.[/quote]

I have downloaded Playback Statistics but using the code below in my Track Info panel nothing shows! Also, the data is not written to the tag. What am I missing here?

$puts(play_count)
$puts(last_played)
Title: foo_uie_trackinfo
Post by: Habla on 2006-04-20 02:26:16
use:

$meta(play_count)
$meta(last_played)

or

%play_count%
%last_played%

or

$add(%play_count%,%play_counter%) <-----for compatibility
%last_played%

or, if you want your time stamp to look fancy:
Code: [Select]
// 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))
If you use the above code for %last_played%, replace %last_played% with
Code: [Select]
Last played on $get(time_of_year) at $get(time_of_day)
Title: foo_uie_trackinfo
Post by: Stratman on 2006-04-20 03:36:32
Actually none of that works as the tags aren't showing a play_count or  last_played. They do show play_counter and play_date tags generated from the old play counter dll from 0.8.3
Title: foo_uie_trackinfo
Post by: Habla on 2006-04-20 04:57:19
ok, then. Replace all %last_played%'s with %play_date%'s, and all %play_counter%'s with %play_count%'s.
Title: foo_uie_trackinfo
Post by: .zolder on 2006-04-20 11:11:09
Hi, i've got a question concerning certain titleformat-fields. I want to show the  playlist index of a track and the total number of tracks in that playlist, eg:
"Track 9 of 45"

i've looked into this (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Titleformat_Reference#.25_playlist_number.25) titleformatting wiki, which suggests the use of  %_playlist_number% (either with or without a prior underscore) and  %_playlist_total%. Both fields return a "?" however... I also found this (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Titleformat_Reference#.25playlist_number.25):
Code: [Select]
Defined as $num(%_playlist_number%,$len(%_playlist_total%)). Returns the position of the track as index into the playlist. The first track has index 1. The index is padded from the left with zeroes to the same number of digits as the last track.

when i copy that string into my trackinfo panel all i get is a "0". I tried everything in both 0.8.3 and 0.9, I'm at loss. Can someone please help me out?
Title: foo_uie_trackinfo
Post by: Stratman on 2006-04-20 11:32:24
ok, then. Replace all %last_played%'s with %play_date%'s, and all %play_counter%'s with %play_count%'s.


The problem with that is that Play Statistics doesn't update those tags. Thanks for trying to help though!
Title: foo_uie_trackinfo
Post by: Generalverdacht on 2006-04-20 16:07:08
hi, i got a problem, i took some code from this thread and tried my luck, but there is an error in it, and probably was before.

Code: [Select]
$if(%rating%,
//Rating
$char(1)C$transition($repeat(─═,2),6c5037,$get(color2))$get(color2) Rating $transition($repeat(═─,2),$get(color2),6c5037)$char(10)
$char(1)C$select(%rating%,
$get(color2)□$get(color1)□□□□,
$get(color2)□□$get(color1)□□□,
$get(color2)□□□$get(color1)□□,
$get(color2)□□□□$get(color1)□,
$get(color2)□□□□ )$char(10)
$char(1)C$get(color1)Song Rated $get(color2)$select(%rating%,One,Two,Three,Four,Five) $get(color1)out of Five$char(10)$char(10)$char(10),$char(10)$get(color1)You Have Not Rated This Song.$char(10)$char(10)$char(10)$char(10))

the problem is: when there is an unrated file, id like to have "zero out of five", and there shoulnd be any symbols, when i rate a file =1, there should be one symbol, two=two and so forth. when i rate 2,3,4 there are all 5 symbols, when i rate 5 the fifth disappears... thats shitty. hope can figure my error out, i cant see it really.
Title: foo_uie_trackinfo
Post by: Shade[ST] on 2006-04-20 16:41:56
the problem is: when there is an unrated file, id like to have "zero out of five", and there shoulnd be any symbols, when i rate a file =1, there should be one symbol, two=two and so forth. when i rate 2,3,4 there are all 5 symbols, when i rate 5 the fifth disappears... thats shitty. hope can figure my error out, i cant see it really.

Why not use
Code: [Select]
$progress(%rating%,5,'$get(color1)*','$get(color2)*')
?
Title: foo_uie_trackinfo
Post by: Synthetic Soul on 2006-04-20 16:56:06
[quote author=Shade[ST} link=msg=384435 date=1145547716]Why not use
Code: [Select]
$progress(%rating%,5,'$get(color1)*','$get(color2)*')
?[/quote]Umm, because it won't work? 

Code: [Select]
$progress2(%rating%,5,5,$get(color1)*,$get(color2)*)

... should though.
Title: foo_uie_trackinfo
Post by: Generalverdacht on 2006-04-20 17:01:22
sadly your purpose doesnt either... for me at least
Title: foo_uie_trackinfo
Post by: Synthetic Soul on 2006-04-20 17:30:11
Works fine here. What result do you get?  Have you defined color1 and color2? I get an effect like this:

(http://synthetic-soul.co.uk/temp/rating.gif)
Title: foo_uie_trackinfo
Post by: jt32470 on 2006-04-20 18:47:00
Here's mine, i used one of your guy's configs..I really appreciate it, as it was one of the last things to make my foobar perfect  muchas gracias

(http://img524.imageshack.us/img524/7128/foo22ni.th.jpg) (http://img524.imageshack.us/img524/7128/foo22ni.jpg)
Title: foo_uie_trackinfo
Post by: mil3s on 2006-04-20 19:37:25
I'd like to use different font sizes on texts. That would be a nice feature.
Title: foo_uie_trackinfo
Post by: Lycox on 2006-04-20 19:39:33
Here's mine, i used one of your guy's configs..I really appreciate it, as it was one of the last things to make my foobar perfect  muchas gracias

(http://img524.imageshack.us/img524/7128/foo22ni.th.jpg) (http://img524.imageshack.us/img524/7128/foo22ni.jpg)


Which one do you use? I'd like to know how to create your "Panel Stack" in fb2k 0.9.
Title: foo_uie_trackinfo
Post by: mortuusrex on 2006-04-21 05:15:25
Quick Question, Whats the code for if the file was submitted to last.fm?
Title: foo_uie_trackinfo
Post by: .zolder on 2006-04-21 11:47:10
Quick Question, Whats the code for if the file was submitted to last.fm?

afaik, there's no real code to see last.fm submissions. the plugin submits after playing for 4 minutes, or 50% so you'll have to create a string that works like that as well. Because i had nothing to do myself, and liked the idea for my own trackinfopanel, i created one:

Code: [Select]
$if(%_isplaying%,$ifgreater(%_time_elapsed_seconds%,240,Scrobbled,$ifgreater($muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%),50,
Scrobbled,Non-scrobbled)))


This approach does not detect when you skip tracks, so it isnt 100% accurate
Title: foo_uie_trackinfo
Post by: mortuusrex on 2006-04-21 15:31:03

Quick Question, Whats the code for if the file was submitted to last.fm?

afaik, there's no real code to see last.fm submissions. the plugin submits after playing for 3 minutes, or 50% so you'll have to create a string that works like that as well. Because i had nothing to do myself, and liked the idea for my own trackinfopanel, i created one:

Code: [Select]
$if(%_isplaying%,$ifgreater(%_time_elapsed_seconds%,240,Scrobbled,$ifgreater($muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%),50,
Scrobbled,Non-scrobbled)))


This approach does not detect when you skip tracks, so it isnt 100% accurate



thanks for the info and the code!
Title: foo_uie_trackinfo
Post by: 4nt1 on 2006-04-22 04:29:28
an idea/feature

would it be possible to have alternate line colours like in columns ui

ie each line of a song has a colour then colour2 for next line, then back to colour 1 for next line etc..

would also love to be able to use $tab() and $char(9) as well...
i just wish i could make my track info look like my track info like my columns ui... guess im a dreamer
Title: foo_uie_trackinfo
Post by: Fishy Joe on 2006-04-25 12:58:03
Please make it possible to align both left and right on the same line.


I'd like to use different font sizes on texts. That would be a nice feature.


These are the two features I'd like most to see in this plugin. I'm really surprised more people aren't asking for it. It's really hard to make efficient use of space when you can't align text left and right on the same line. Sure you can use a fixed width font, but they're ugly in comparison
Title: foo_uie_trackinfo
Post by: mil3s on 2006-04-25 14:28:14
This is my current layout. I use 8 Track Info panels.  It would be cool if I could use only 1 panel on the first line though, having the Filename and track length in the same box, with the length aligned to the right.
(http://img285.imageshack.us/img285/8510/trackinfo7pg.jpg) (http://imageshack.us)
Title: foo_uie_trackinfo
Post by: FreakingNeo on 2006-04-25 15:44:28
edit: nevermind, I'm stupid
Title: foo_uie_trackinfo
Post by: fade on 2006-04-27 00:20:25
Could someone post the default trackinfo string?

Heh, I seem to have nuked it
Title: foo_uie_trackinfo
Post by: Bobjua on 2006-04-27 00:32:52
Could someone post the default trackinfo string?

Heh, I seem to have nuked it


Code: [Select]
Mode: %_trackinfo_mode%$char(10)$char(10)$if(%_trackinfo_notrack%,No track,Artist: %artist%$char(10)Title: %title%$char(10)Album: %album%)


thats what mine is, and i just got a fresh install so that should be it.
Title: foo_uie_trackinfo
Post by: fade on 2006-04-27 01:53:47

Could someone post the default trackinfo string?

Heh, I seem to have nuked it


Code: [Select]
Mode: %_trackinfo_mode%$char(10)$char(10)$if(%_trackinfo_notrack%,No track,Artist: %artist%$char(10)Title: %title%$char(10)Album: %album%)


thats what mine is, and i just got a fresh install so that should be it.


Thanks for that.
Title: foo_uie_trackinfo
Post by: fade on 2006-04-27 02:14:39
1) [Edit - WHOOPS I should have RTFM.]

2)Is it possible to get the current width of the panel as a variable, so I can do some code to trim the lengths of the strings I'm displaying accordingly?  I have a very simple but fairly big 1 line track panel info, and I dont want it to be allowed to get bigger than the width of the track panel OR spill onto a new line.

Thanks!
Title: foo_uie_trackinfo
Post by: gfngfgf on 2006-04-27 05:46:25
2)Is it possible to get the current width of the panel as a variable, so I can do some code to trim the lengths of the strings I'm displaying accordingly?  I have a very simple but fairly big 1 line track panel info, and I dont want it to be allowed to get bigger than the width of the track panel OR spill onto a new line.

No, this isn't possible.  What I've been doing, and I'm sure others as well, is using a fixed-width font and just finding out how many characters wide the panel is by trial and error.
Title: foo_uie_trackinfo
Post by: G-Lite on 2006-04-27 15:55:01
Since vis_projectM isn't going anywhere soon, I decided to hack on this for a bit.
A new version is up, same location:
http://stephan.kochen.nl/proj/foobar2000.html#trackinfo (http://stephan.kochen.nl/proj/foobar2000.html#trackinfo)

It now has an option for what to do when text is too long to fit; you can wrap like before, but also have it cut off and paste an ellipsis at the end, or scroll the text (like a marquee, great for single line trackinfos if you ask me. )
Title: foo_uie_trackinfo
Post by: mobyduck on 2006-04-27 16:54:44
[quote author=G-Lite link=msg=386937 date=1146149701]Since vis_projectM isn't going anywhere soon, I decided to hack on this for a bit.
A new version is up, same location:
http://stephan.kochen.nl/proj/foobar2000.html#trackinfo (http://stephan.kochen.nl/proj/foobar2000.html#trackinfo)

It now has an option for what to do when text is too long to fit; you can wrap like before, but also have it cut off and paste an ellipsis at the end, or scroll the text (like a marquee, great for single line trackinfos if you ask me. )[/quote]Thanks for the update. When you have time, drop down menus in the settings aren't working correctly on Win2k (I have to use the keyboard to make a selection).

Alessandro
Title: foo_uie_trackinfo
Post by: spex04 on 2006-04-27 17:13:04
[quote author=G-Lite link=msg=386937 date=1146149701]Since vis_projectM isn't going anywhere soon, I decided to hack on this for a bit.
A new version is up, same location:
http://stephan.kochen.nl/proj/foobar2000.html#trackinfo (http://stephan.kochen.nl/proj/foobar2000.html#trackinfo)

It now has an option for what to do when text is too long to fit; you can wrap like before, but also have it cut off and paste an ellipsis at the end, or scroll the text (like a marquee, great for single line trackinfos if you ask me. )[/quote]

Good news..
Title: foo_uie_trackinfo
Post by: 4nt1 on 2006-04-27 17:52:15
great work g-lite, any chance of getting the panel to work with $tab() and $char(9) or a right align type thing?

also how do you keep your config when upgrading to your newest version cause it just wiped mine.

lucky i backed mine up.

perhaps you can make an option to save the config to a file somewhere??
Title: foo_uie_trackinfo
Post by: G-Lite on 2006-04-27 18:03:41
Thanks for the update. When you have time, drop down menus in the settings aren't working correctly on Win2k (I have to use the keyboard to make a selection).

Alessandro

That's odd. I'm on XP, but even in the classic theme I can't reproduce this. I don't really have a 2k box on hand. :/

great work g-lite, any chance of getting the panel to work with $tab() and $char(9) or a right align type thing?

also how do you keep your config when upgrading to your newest version cause it just wiped mine.

lucky i backed mine up.

perhaps you can make an option to save the config to a file somewhere??

That's rather odd aswell, I added some code to import from the old configuration, and tested it, which worked fine for me. :/

I'll look into the $tab() thing. I'm not sure how it's supposed to behave though: should tabs works like regular tabs, or should I have them 'jump forward' in text alignment (left -> center and center -> right, so you can have multiple alignments on a single line.)

Problem is, I can't think of a good way to combine regular tabs with changing alignment on a single line, so right now I'm thinking it's one or the other. Multiple alignments on a single line seem to be the most useful for a trackinfo panel IMO.
Title: foo_uie_trackinfo
Post by: mobyduck on 2006-04-27 18:13:19
[quote author=G-Lite link=msg=386976 date=1146157421]
Thanks for the update. When you have time, drop down menus in the settings aren't working correctly on Win2k (I have to use the keyboard to make a selection).

Alessandro

That's odd. I'm on XP, but even in the classic theme I can't reproduce this. I don't really have a 2k box on hand. :/[/quote]Yeah, I know. It seems to be a recurring problem with Win2k: I experienced it with other plug-ins as well (namely foo_pod and foo_browser, IIRC). Not that this is of any help to you...

Anyway, I can live with it.

Alessandro
Title: foo_uie_trackinfo
Post by: foosion on 2006-04-27 19:17:05
I remember that this problem already occurred long before (with components for  0.6/0.7). I think it was related to explicitly setting the size of the combobox in its poup state. You can do this in the resource editor by selecting the combobox and clicking on the down arrow part. I hope I remember this correctly.
Title: foo_uie_trackinfo
Post by: fade on 2006-04-27 19:25:05
No, this isn't possible.  What I've been doing, and I'm sure others as well, is using a fixed-width font and just finding out how many characters wide the panel is by trial and error.


Interesting, I thought since UI columns playlist did it (trimmed everything as as the window width is resisized) there would be a function somewhere in TAGZ.

At the moment I'm just trimming everything with an arbitary value to make it appear like it's being resized like UI columns...ie...

Code: [Select]
 $ifgreater($len(%artist%),23,$cut(%artist%,20)...,[%artist%])


If I have the player really small the album name might spill over from the first line, but since my track info is just 1 line deep, it looks like it gets cut off
Title: foo_uie_trackinfo
Post by: gfngfgf on 2006-04-28 00:09:40
Interesting, I thought since UI columns playlist did it (trimmed everything as as the window width is resisized) there would be a function somewhere in TAGZ.

Well, the good news is that G-Lite's updated version (see a few posts before this one) supposedly has what you're looking for now supported.  I'm going to try it out now and see if I can retire my scrolling code :-P
Title: foo_uie_trackinfo
Post by: Shade[ST] on 2006-04-28 00:36:28
You _COULD_ make tabs behave like in columnsUI :
TEXT $tab() CENTERED_TEXT $tab() RIGHT_ALIGN
TEXT $tab()$tab() 2/3_CENTER_ALIGNED_TEXT $tab() RIGHT_ALIGNED_TEXT

basically, you count the number of tabs, and place the text at fractions of the full width based on that.
Title: foo_uie_trackinfo
Post by: foosion on 2006-04-28 00:40:38
Hint: That's what uTextOutTabbed does if you pass it the right parameters.
Title: foo_uie_trackinfo
Post by: Shade[ST] on 2006-04-28 00:54:38
Hint: That's what uTextOutTabbed does if you pass it the right parameters.
will it also automatically trim strings that are too long?
Title: foo_uie_trackinfo
Post by: mrmin123 on 2006-04-28 06:33:39
Just an aside... is it possible to have two track info panels with different information on it?

Like being able to show the big horizontal information bars like in this one (at least I think that's trackinfo) http://img84.imageshack.us/my.php?image=ca...061805250xj.png (http://img84.imageshack.us/my.php?image=capture042620061805250xj.png)

And another panel like in this one:
http://img524.imageshack.us/img524/7128/foo22ni.jpg (http://img524.imageshack.us/img524/7128/foo22ni.jpg)
Title: foo_uie_trackinfo
Post by: Habla on 2006-04-28 07:20:11
Yes.
Title: foo_uie_trackinfo
Post by: G-Lite on 2006-04-28 15:45:23
Alright, new version again:
http://stephan.kochen.nl/proj/foobar2000.html#trackinfo (http://stephan.kochen.nl/proj/foobar2000.html#trackinfo)

Changes:
Title: foo_uie_trackinfo
Post by: Stuart60611 on 2006-04-28 16:09:44
Will this new version of Track info work with the new Columns UI beta 1 plugin?
Title: foo_uie_trackinfo
Post by: acedriver on 2006-04-28 16:17:58
doesn't work with beta 1
Title: foo_uie_trackinfo
Post by: mil3s on 2006-04-28 16:22:53
The new $tab() function doesn't work... sort of, or it's just me being stupid. It works if i only put static text after the $tab() but not with either %_time_elapsed% or %_time_total%, the return from these are "?".

EDIT: Here is my code, if it helps.
Code: [Select]
$if(%isplaying%,
$if($meta_test(artist),%artist%,$substr(%_filename%,1,$sub($strstr(%_filename%, - ),1)))
$if($or($meta_test(artist,title),$strstr(%_filename%, - )), - )
$if($or($meta_test(title),$not($strstr(%_filename%, - ))),
%title%,$substr(%_filename%,$add($strstr(%_filename%, - ),3),$len(%_filename%)))
$tab()
[%_time_elapsed% / $if2(%_time_total%,Stream)]
)
Title: foo_uie_trackinfo
Post by: Schinkentoni on 2006-04-28 16:30:59
you string works for me, No '?'
Title: foo_uie_trackinfo
Post by: mil3s on 2006-04-28 16:35:11
^Really? Do you see the timer on the right then? I can't test this any longer. Just installed Columns Beta 1.
Title: foo_uie_trackinfo
Post by: G-Lite on 2006-04-28 18:06:15
Compiled and uploaded a Columns UI 0.1.3 beta 1 compatible version:
http://stephan.kochen.nl/proj/foobar2000.html#trackinfo (http://stephan.kochen.nl/proj/foobar2000.html#trackinfo)

@mil3s: works for me.
Title: foo_uie_trackinfo
Post by: JzE on 2006-04-28 18:25:18
[quote author=G-Lite link=msg=387264 date=1146243975]Compiled and uploaded a Columns UI 0.1.3 beta 1 compatible version:
http://stephan.kochen.nl/proj/foobar2000.html#trackinfo (http://stephan.kochen.nl/proj/foobar2000.html#trackinfo)

@mil3s: works for me.[/quote]

This works fine

~JzE
Title: foo_uie_trackinfo
Post by: mil3s on 2006-04-28 18:40:17
It works now. Thanks
Title: foo_uie_trackinfo
Post by: randal1013 on 2006-04-28 18:45:23
why does the new version not show up in preferences?
Title: foo_uie_trackinfo
Post by: Shade[ST] on 2006-04-28 19:01:13
Is there any way the scrolling could wrap?  That would be REAAALY great.  I don't even know if you can do this.. maybe by creating a double instance of the string, and truncating it after it fits twice or something...
Title: foo_uie_trackinfo
Post by: PiezoTransducer on 2006-04-28 19:02:50
Oh wow. back up your title strings before upgrading. I didn't and lost 'em. I went back to the old version to rewrite 'em. And I was *this* close to posting it too.  ::sigh::

This is what I managed to throw together in 5 minutes, still has work to go. The only really original thing in it is that I put the percent progress inside the progress bar instead of outside.
(http://angrysock.com/ha/trackinfo_ss_me.png)
Code: [Select]

// Original code by necropimp, modified by AstreaEdge, final by KockRoach
// Appearance changed by Habla. Muchas gracias to those above!
// Changed again by PiezoTransducer
// font: Arial Narrow 8pt, background: 0,0,16

// !!!!BEGIN USER CONFIGURATION!!!!
// Info Heading Color e.g. "Title:"
$puts(head,$rgb(61,129,193))
// Info Color e.g. "Black Dog"
$puts(info,$rgb(255,255,255))
// Info Color e.g. "Black Dog"
$puts(info2,$rgb(212,212,212))
// Info Color e.g. "Black Dog"
$puts(info3,$rgb(170,170,170))
// Info Annotation Color (e.g. kbps is the annotation)
$puts(anno,$rgb(128,255,16))
// Info Annotation Color (e.g. kbps is the annotation)
$puts(nota,$rgb(255,170,16))

// Separator
// the separators (Song,Play,Tech info) will change to a different color if the panel mode is set to Follow cursor.
// change "followcursorcol" to change this color. It is currently set to flash orange.
$puts(followcursorcol,$rgb(200,150,50))
$puts(text2,$rgb(255,255,255))
$puts(text1,$if(%_trackinfo_nowplaying%,$rgb(61,129,193))$if(%_trackinfo_followcursor%,$get(followcursorcol)))
$puts(fadeend,$rgb(0,0,0))
$puts(seplen,29)
$puts(sepchar,'_')

// Set Rating character
$puts(ratingchar,'●')

// !!!!END USER CONFIGURATION!!!!

// 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))

// 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(yy))

$char(1)C$get(anno)'['$get(head)$progress(%_time_elapsed_seconds%,%_time_total_seconds%,100,
$get(info)$muldiv(%_time_elapsed_seconds%,100,%_length_seconds%)'%'$get(head),
'|')$get(anno)']'$char(10)

// SONG INFO SEPARATOR
$char(1)R$transition($repeat($get(sepchar),$get(seplen)),$get(fadeend),$get(text1))$get(text1)'[' $get(text2)S o n g I n f o $get(text1)']'$char(10)

$if(%title%,$char(1)C$if(%tracknumber%,$get(anno)'['%tracknumber%'] ')$get(info)%title%$char(10))
$if(%artist%,$char(1)C$get(info2)%artist%$char(10))
$if(%album%,$char(1)C$get(info3)%album% $if(%disc%,$get(nota)'[disc '%disc%']' )$if(%date%,$get(anno)'('%date%')')$char(10))

$if(%genre%,$char(1)C$get(info)%genre%$char(10))
$if(%rating%,
$char(1)C
$repeat($get(info)$get(ratingchar),%rating%)
$repeat($rgb(70,70,70)$get(ratingchar),$sub(5,%rating%))$tab()$char(10)
)
// TECH INFO SEPARATOR
$char(1)R$transition($repeat($get(sepchar),$get(seplen)),$get(fadeend),$get(text1))$get(text1)'[' $get(text2)T e c h I n f o $get(text1)']'$char(10)

$get(head)Length: $get(info)$if(%_isplaying%,%_time_elapsed%$get(anno)$if(%_length%, / %_length%,)$if(%_length%, / -%_time_remaining%),%_length%)$char(10)
$get(head)Type:$if(%__codec%, $get(info)%__codec%) $get(info)
$if2(%__bitrate_dynamic%,%__bitrate%) $get(anno)Kb/s $if($stricmp(%__codec%,mp3),$if($stricmp(%__extrainfo%,vbr),VBR,CBR))
$char(10)
$if(%__lame_version%,$get(head)Preset: $get(info)$left(%__lame_version%,4) $right(%__lame_version%,4) [$upper(%__lame_profile%)]$char(10),)
$if(%__flac_vendor%,$get(head)Encoder: $get(info)$if($stricmp(%__flac_vendor%,reference libFLAC 1.1.2 20050205),FLAC 1.1.2 -8)$char(10),)
$if(%__mpc_profile%,$get(head)MPC Profile: $get(info)%__mpc_profile%$char(10),)
$get(head)Compression: $get(info)$div(1411,%__bitrate%).$substr($muldiv(1411,100,%__bitrate%),2,3):1 '('$get(info)$muldiv(%__bitrate%,100,1411)$get(anno)'%)'$char(10)
$get(head)Channels: $get(info)$if($stricmp($codec(),MP3),$get(space2)$caps(%__mp3_stereo_mode%),
$if(%__channels%,$ifgreater(%__channels%,1,Stereo,Mono),'?'))$char(10)
$if(%__bitspersample%,$get(head)Bitdepth: $get(info)%__bitspersample% bits/sample$char(10),)
$if(%__samplerate%,$get(head)Samplerate: $get(info)$div(%__samplerate%,1000).$substr(%__samplerate%,3,3) KHz $char(10))

$if(%last_played%,
// PLAY STATS SEPARATOR
$char(1)R$transition($repeat($get(sepchar),$get(seplen)),$get(fadeend),$get(text1))$get(text1)'[' $get(text2)P l a y I n f o $get(text1)']'
$char(10),)

$if(%play_count%,$get(head)Played $get(info)%play_count% times$char(10))
$if(%last_played%,$get(head)Last played on $get(info)$get(time_of_year) at $get(time_of_day)$char(10),)

Also, check out the wiki (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:0.9_Track_Info_Panel_%28foo_uie_trackinfo%29)
Title: foo_uie_trackinfo
Post by: G-Lite on 2006-04-28 19:33:58