HydrogenAudio

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
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):
  • Component DLL (http://stephan.kochen.nl/proj/foo_uie_trackinfo/foo_uie_trackinfo.dll)
  • Source code (http://stephan.kochen.nl/proj/foo_uie_trackinfo/)
  • Old source and DLL (http://stephan.kochen.nl/proj/foo_uie_trackinfo/old/)
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.
  • Fixed edge styles, should now more closely match other panel's edges.
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!


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
Download Playback Statistics. Use %play_count% and %last_played%. Statistics are kept from when you first install the plug-in.


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
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.


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
Why not use
Code: [Select]
$progress(%rating%,5,'$get(color1)*','$get(color2)*')
?
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
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. )
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
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. )


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
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. :/
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
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.


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
why does the new version not show up in preferences?

Wouldn't make sense for multiple instances.
Either right click -> settings, or the configure button in the columns-ui layout page.

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::

Settings have changed between 0.5 and 0.6, but not between 0.6 and 0.7. (And 0.6 should be able to read 0.5 settings)
Columns UI seems to wipe alot of panels when upgrading to 0.1.3 beta 1 though.
Title: foo_uie_trackinfo
Post by: cygn on 2006-04-28 23:23:08
some scrollbars would be neat.

I have a lot of mixes with tracklists that are stored in the comment field. I need to scroll to see the whole tracklist.

Should be very easy to implement. Please, please do it
Title: foo_uie_trackinfo
Post by: molnart on 2006-04-29 00:15:33
im trying to use this thingy to display the lyrics from my ID tags, but at the end of lines i'm getting some ugly characters. Is there a way to avoid them?

and a scrollbars would be appreciated too, although i can scroll the panel with mousewheel
Title: foo_uie_trackinfo
Post by: gob on 2006-04-29 04:32:59
how can text be centered in the panel? in older versions '$char(1)C' used to work..
Title: foo_uie_trackinfo
Post by: kalen3285 on 2006-04-29 05:08:44
how can text be centered in the panel? in older versions '$char(1)C' used to work..


I also have this question... before columns ui beta 1 and the new version of track info this worked fine for me but now just displays a symbol and capital C.
Title: foo_uie_trackinfo
Post by: Stuart60611 on 2006-04-29 05:14:07

how can text be centered in the panel? in older versions '$char(1)C' used to work..


I also have this question... before columns ui beta 1 and the new version of track info this worked fine for me but now just displays a symbol and capital C.


The new version requires you modify the string just slightly.  Instead of centering text with $char(1)C you now enclose the text between two $tab().
Title: foo_uie_trackinfo
Post by: kalen3285 on 2006-04-29 05:44:01
Thanks, that worked perfectly.
Title: foo_uie_trackinfo
Post by: gob on 2006-04-29 05:58:25
The new version requires you modify the string just slightly.  Instead of centering text with $char(1)C you now enclose the text between two $tab().


thanks man. i like how this works now.
the scrolling and ellipsize options are great.
Title: foo_uie_trackinfo
Post by: mobyduck on 2006-04-29 07:59:55
im trying to use this thingy to display the lyrics from my ID tags, but at the end of lines i'm getting some ugly characters. Is there a way to avoid them?
That's what I use (extremely simple, but it works):
Code: [Select]
80FFFF%title% by 80FFFF%artist%$char(10)$char(10)$replace(%lyrics%,$char(13),)
HTH.

Alessandro
Title: foo_uie_trackinfo
Post by: jlgallardo on 2006-04-29 09:17:55
Hello:
I new with Foobar 0.9. I just installed it with many (dll) components including trackinfo panel and all colums_UI (the 04/28 versions).

I started Foobar and ask me to display the standard or Columns view. I chose Columns. No errors!!! but I cannot see the Trackinfo listed in preferences. Help please.

Trackinfo is listed in the components loaded in preferences.

Thanks in advance.

Jw
Title: foo_uie_trackinfo
Post by: acedriver on 2006-04-29 09:32:30
You can access the configuration per panel from the right click menu, or using the configure button in the layout tab of columns ui's preferences.
Title: foo_uie_trackinfo
Post by: Squeller on 2006-04-29 10:53:48

why does the new version not show up in preferences?

Wouldn't make sense for multiple instances.
Wohooo! We can have multiple, independent instances then? Great! And the line end/wrap/scroll modes are a great improvement. No more need for a fixed width font and cutting strings.!

I guess we'll never finish tweaking our fb2k style. No time for listening to music
Title: foo_uie_trackinfo
Post by: molnart on 2006-04-29 10:59:47
And the line end/wrap/scroll modes are a great improvement. No more need for a fixed width font and cutting strings.!


Are they working at you? At me the're greyed out, i thought it is some unfinished function.
Title: foo_uie_trackinfo
Post by: Squeller on 2006-04-29 11:03:26
Are they working at you? At me the're greyed out, i thought it is some unfinished function.
Yes, working here. fb2k0.91on w2000sp4.

@G-lite
[snipped drop down display bug which has already been reported]

I've had a look on the scroll speed. You're using the wrong concept imho. There's no fixed speed, as the user can only define: n seconds for the whole line. If the line is getting longer, it's scrolling unreadably fast. I've got some pretty long tags sometimes...

A per line definition of scrolling/wrapping behaviour would be nice...
Title: foo_uie_trackinfo
Post by: G-Lite on 2006-04-29 13:21:18
I've had a look on the scroll speed. You're using the wrong concept imho. There's no fixed speed, as the user can only define: n seconds for the whole line. If the line is getting longer, it's scrolling unreadably fast. I've got some pretty long tags sometimes...

A per line definition of scrolling/wrapping behaviour would be nice...

I thought about that, but a problem would be that trackinfo can have multiple lines, and I'd have to keep track of scroll position for each of them.

It is possible, ofcourse. I guess I could also reinstate the $char(1) hack to get a per-line scrolling/wrapping/ellipsize option.
Title: foo_uie_trackinfo
Post by: Thief on 2006-04-29 14:36:25
I would like to see Ctrl+A working in the Formating string area. It's useful if one wants to completely replace some config with another.
Another improvement - nonmodal configuration window like main foobar options, if possible.

Thank for your great work on this plugin!
Title: foo_uie_trackinfo
Post by: foosion on 2006-04-29 16:30:15
It is possible, ofcourse. I guess I could also reinstate the $char(1) hack to get a per-line scrolling/wrapping/ellipsize option.
If you do that, I'd suggest to add custom functions for this, so the user doesn't have to remember those cryptic character codes.
Title: foo_uie_trackinfo
Post by: mazy on 2006-04-29 17:01:05
G-Lite, i've few problems with the changes in the latest version ...

1) using two $tab() to center long string (when using wrap line option), it's not possible to center each resulting line (like it used to work with $char(1)C). as it's now, it puts first tab on the first line and second on the last, resulting in first line aligned to the right and last to the left.

i would like to be able to center each resulting line ...

2) using negative line spacing, the new line clears anything there may have been drawn by previous lines. i.e. you're drawing not only text for each line, but also it's background (and not first background and then each line).

that wouldn't be issue for normal use, but i used high negative spacing together with $char(10)text to move the line up. some fonts have more space above upper alignment line than bellow the bottom one, so i used this hack to visually center them in vertical axis.

maybe allowing negative padding would help.

3) could you add support for columns_ui's global variables which is possible in the latest api? you can find more info about this in this (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=28647&view=findpost&p=387521) post.
Title: foo_uie_trackinfo
Post by: jlgallardo on 2006-04-29 21:06:29
Thanks Acedriver, I found it. A little bit hide in my opinion.

Best regards!

Jw
Title: foo_uie_trackinfo
Post by: G-Lite on 2006-04-29 21:41:32
New version is up:
http://stephan.kochen.nl/proj/foobar2000.html#trackinfo (http://stephan.kochen.nl/proj/foobar2000.html#trackinfo)

Changes:
As for the other things:
2) using negative line spacing, the new line clears anything there may have been drawn by previous lines. i.e. you're drawing not only text for each line, but also it's background (and not first background and then each line).

that wouldn't be issue for normal use, but i used high negative spacing together with $char(10)text to move the line up. some fonts have more space above upper alignment line than bellow the bottom one, so i used this hack to visually center them in vertical axis.

maybe allowing negative padding would help.

Doesn't look like I can fix this. The background is already transparent as far as the code is concerned. It might be possible, but I'd probably have to reimplement all of foobar's color parsing and whatnot.

Different font sizes might also be a tricky thing.

I'm wondering if this is getting too complicated for this plugin, and whether there should be a separate rich textfield based version, or even a full blown HTML panel.
Title: foo_uie_trackinfo
Post by: Stuart60611 on 2006-04-29 21:48:52
A full blown html panel would be cool.  I think it would be great to have a panel that could not only display track information from file tags, but which could also display web pages via tagz scripts such as artist biographies from wikipedia or allmusic.
Title: foo_uie_trackinfo
Post by: RavenSoft on 2006-04-29 23:36:20
can anyone look at this screenshot and then the code below and tell me why that code in front of the seekbar is showing and if someone can see if the code is pretty much all correct? its pissing me off seeing that white text like that.


(http://img101.imageshack.us/img101/2921/trackinfo2qz.th.jpg) (http://img101.imageshack.us/my.php?image=trackinfo2qz.jpg)

Code: [Select]
// _________________
// CONFIGURE COLORS
// *****************

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

$puts(background,000000)


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


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


// INFO HEADING COLOR > Ex: "Song Info"
// --------------------------------------------------
// $puts(head,$rgb(61,129,193))

$puts(head,0CEBA4)


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

$puts(info,D7B997)


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

$puts(result,F3EAE0)


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

$puts(high,FFFFFF)


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

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

$puts(progress_color1,$rgb(164,235,12))
$puts(progress_color2,$rgb(54,106,179))


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


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

$puts(accurate_char,●)


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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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





//
//
//


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

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

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

// end notrack info
)

[!--sizeo:1--][span style=\"font-size:8pt;line-height:100%\"][!--/sizeo--]moderation: Please use codebox for long code fragments.[/size]
Title: foo_uie_trackinfo
Post by: G-Lite on 2006-04-29 23:52:18
$char(1) is dead. Long live $tab().
Title: foo_uie_trackinfo
Post by: RavenSoft on 2006-04-30 00:06:50
$char(1) is dead. Long live $tab().

there are 9 $char(1) in that code and if I replace them all with $tab() the result is total mess, looks horrible.

If I leave it alone and remove from the following line of code $char(1)C then it is all fine. Unless I did something wrong updating the code as you suggested

$char(10)
$if(%_isplaying%,$char(1)C$get(head)  $get(progressbar)$char(10),)

to

$char(10)
$if(%_isplaying%,$get(head)  $get(progressbar)$char(10),)
Title: foo_uie_trackinfo
Post by: gfngfgf on 2006-04-30 03:17:21
To center text, you have to surround it with two $tab()'s, like

Code: [Select]
$tab()centered text goes here$tab()$char(10)
Title: foo_uie_trackinfo
Post by: mazy on 2006-04-30 03:35:15
G-Lite, thank you so much for the update.

there are still some problems though, please see this image (http://mazy.johanka.cz/my_pics/temp/foobar/track_info_pr-01.png). i'm also getting some metadb_handle leaks, but i'm not 100% sure they are related to track info panel.

global variables work as they should, though i had no success with exporting %playlist_name% as global variable. it's not available in track info panel, however it is in columns_ui. so i put it into global variable, but accessing this global in track info returned only '?' - i think that that's because the global string gets evaluated in track info's context, which hasn't %playlist_name% available.

could you, maybe, somehow support this? i would really like to display current playlist's name ...

as for more advanced formatting - well Phi had development version with support for changing font style (bold / italics / underline) (info here (http://www.hydrogenaudio.org/forums/index.php?showtopic=29363&st=225&p=282618&#entry282618)). other than that, size changing (like $font_size(+1) etc.) and possibly font changing would be ultimate (i'm sure that would be pretty hard to implement though).
Title: foo_uie_trackinfo
Post by: evo3 on 2006-04-30 05:11:17
i'm getting the leaks as well. 

thanks for working on this.
Title: foo_uie_trackinfo
Post by: Squeller on 2006-04-30 10:25:56
Thx first G-Lite for the update!


$char(1) is dead. Long live $tab().
there are 9 $char(1) in that code and if I replace them all with $tab() the result is total mess, looks horrible.

I found out it's not necessarily easy to replace the old center command with 2 $tab(). My TI panel is full of if constructs. Finally, I'll have to rewrite the code (use more variables) to introduce $tab(), to have it readable and working.

BTW ("puts(blah,%_globalvar%") didn't work: How can I access a global variable?
Title: foo_uie_trackinfo
Post by: Anas on 2006-04-30 10:44:21
You can access the global variables through $get_global, just like it is in the playlist view.
Title: foo_uie_trackinfo
Post by: marcelush on 2006-04-30 17:06:00
i got the "metadb_handle leaks: 1 object" problem... so what's up with that.
Title: foo_uie_trackinfo
Post by: mik007 on 2006-04-30 17:46:25
i can't make lyrics show in the track info
i've put [%LYRICS%] in the script but it makes nothing
Title: foo_uie_trackinfo
Post by: snively on 2006-04-30 19:04:53
thanks gfngfgf, that worked.
Title: foo_uie_trackinfo
Post by: DualBlade on 2006-04-30 20:36:17
I have Columns UI 013b1v5 and Trackinfo 0.8
I'm experiencing the "meta_db handle leaks..." error when I close foobar. But also, the foobar process is taking nearly the 98% of processor usage.
I deactivate the Trackinfo panel, and processor usage goes normal again.
Title: foo_uie_trackinfo
Post by: DruiD_ff on 2006-04-30 20:54:23
Quote
I'm experiencing the "meta_db handle leaks..." error when I close foobar. But also, the foobar process is taking nearly the 98% of processor usage.

You're not alone
Title: foo_uie_trackinfo
Post by: klez on 2006-04-30 20:54:56
I agree with the Error :/
Title: foo_uie_trackinfo
Post by: Mangix on 2006-04-30 22:52:40
i can't make lyrics show in the track info
i've put [%LYRICS%] in the script but it makes nothing

%lyrics% isn't implemented in 0.9. might wanna check this out.

http://wiki.hydrogenaudio.org/index.php?ti...ormat_Reference (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Titleformat_Reference)

also if you want it to display lyrics, you could probably do something like

Code: [Select]
$meta(lyrics)

or

$meta(unsynced lyrics)
i forgot what it really was.
Title: foo_uie_trackinfo
Post by: wackymorningdj on 2006-04-30 23:39:12
Quote
But also, the foobar process is taking nearly the 98% of processor usage.
I deactivate the Trackinfo panel, and processor usage goes normal again.


I've got a similar issue...  I think it's related to the scrolling function.
On a completely new layout with just an trackinfo panel and the playlist, foobar's CPU usage is generally between 20-40% with scroll on, and 0% with scroll off...
Title: foo_uie_trackinfo
Post by: DualBlade on 2006-05-01 00:13:02
Ok, I think I found a temporal fix for the high processor uses.
In my case, I used the WRAP option, and still I had the processor at 98%

To temporaly fix this, go to the Trackinfo options and configure the SCROLL STEPS to 0 (even if you are not using the scroll!!).
I think I found a Bug

With this, my foobar works as always (0 to 5% of processor usage)
Title: foo_uie_trackinfo
Post by: DruiD_ff on 2006-05-01 06:48:17
DualBlade, thx, it works for me.
But why
Quote
In my case, I used the WRAP option, and still I had the processor at 98%
Title: foo_uie_trackinfo
Post by: manudevil on 2006-05-01 11:33:42
Quote
I'm experiencing the "meta_db handle leaks..." error when I close foobar. But also, the foobar process is taking nearly the 98% of processor usage.

You're not alone

I have this error too. What could be done ?
Title: foo_uie_trackinfo
Post by: Dr.Death on 2006-05-01 13:24:16
still waiting bugs fix... 8\
Title: foo_uie_trackinfo
Post by: carmenm on 2006-05-01 13:36:41
still waiting bugs fix... 8\


Dont you think G-Lite know that?
Those kind of posts are useless. Moreover, what s strikes me is that it is your FIRST(corrected SECOND) post!!!
Could you just say thanks first....
Title: foo_uie_trackinfo
Post by: molnart on 2006-05-01 23:07:55

im trying to use this thingy to display the lyrics from my ID tags, but at the end of lines i'm getting some ugly characters. Is there a way to avoid them?
That's what I use (extremely simple, but it works):
Code: [Select]
80FFFF%title% by 80FFFF%artist%$char(10)$char(10)$replace(%lyrics%,$char(13),)
HTH.

Alessandro


thnx. hopefully your script is not copyrighted, so i can use it until i'll have enough time to do some tweaking 

did you experience problems with long lyrics? (around 50 lines, i don't know exactly) when trying to scroll them after a time they get messed up somehow
Title: foo_uie_trackinfo
Post by: lextune on 2006-05-02 04:48:23
did you experience problems with long lyrics? (around 50 lines, i don't know exactly) when trying to scroll them after a time they get messed up somehow
I get that too. Anyone know a fix? Besides making the font smaller, (which obviously does work, since you do not have to scroll down as much) because my font is already almost too small to read (Arial 7pt.)
Title: foo_uie_trackinfo
Post by: Squeller on 2006-05-02 06:42:56
Bug? When having $tab()text$tab() and text is long and the wrapping option is "ellipsize", text starts at 1/4 to the end... Centered text which exceeds line length and where ellipsize is set should be simply left alligned.

Feature suggestions:
1 - Set background with a command
2 - An option for scroll mode: Scroll only [n] times.

did you experience problems with long lyrics? (around 50 lines, i don't know exactly) when trying to scroll them after a time they get messed up somehow
I get that too. Anyone know a fix? Besides making the font smaller, (which obviously does work, since you do not have to scroll down as much) because my font is already almost too small to read (Arial 7pt.)
This is not a new problem. I've seen this in prior versions (for fb2k 0.83) as well.
Title: foo_uie_trackinfo
Post by: mobyduck on 2006-05-02 07:24:36
thnx. hopefully your script is not copyrighted, so i can use it until i'll have enough time to do some tweaking 

did you experience problems with long lyrics? (around 50 lines, i don't know exactly) when trying to scroll them after a time they get messed up somehow
Feel free to use that, for what it's worth...

And no, never had the problem you (and others) describe, although I definitely have lyrics longer than 50 lines. The only glitch I have seen every now and then was padding not correctly applied on the last line, but I think it was on the 0.8.3 version. Perhaps it depends on the height of your panel? Mine occupies the whole left side of the playlist.

Regards.

Alessandro
Title: foo_uie_trackinfo
Post by: waileongyeo on 2006-05-02 09:18:40

Quote
I'm experiencing the "meta_db handle leaks..." error when I close foobar. But also, the foobar process is taking nearly the 98% of processor usage.

You're not alone

I have this error too. What could be done ?

A quick test shows the number meta_db handle leaks equals to the number of song I played...

Something related to meta database update not working or variable not release when change of track?
Title: foo_uie_trackinfo
Post by: e2zippo on 2006-05-02 13:50:50
I can't get the panel to show, what i am doing wrong, can't seem to find any settings in preferences as well?
It's loaded in the components page and i'm using the latest Columns UI!
Title: foo_uie_trackinfo
Post by: lextune on 2006-05-02 15:23:01

did you experience problems with long lyrics? (around 50 lines, i don't know exactly) when trying to scroll them after a time they get messed up somehow
I get that too. Anyone know a fix? Besides making the font smaller, (which obviously does work, since you do not have to scroll down as much) because my font is already almost too small to read (Arial 7pt.)
This is not a new problem. I've seen this in prior versions (for fb2k 0.83) as well.

No one has come up with a fix?

And no, never had the problem you (and others) describe, although I definitely have lyrics longer than 50 lines. The only glitch I have seen every now and then was padding not correctly applied on the last line, but I think it was on the 0.8.3 version. Perhaps it depends on the height of your panel? Mine occupies the whole left side of the playlist.

Regards.

Alessandro

I don't think it has anything to do with how many lines, just how much scrolling down is done. Of course more lines equal more scrolling, but larger panel = less scrolling and smaller font = less scrolling.
Title: foo_uie_trackinfo
Post by: evil_hacler on 2006-05-02 16:07:47


Quote
I'm experiencing the "meta_db handle leaks..." error when I close foobar. But also, the foobar process is taking nearly the 98% of processor usage.

You're not alone

I have this error too. What could be done ?

A quick test shows the number meta_db handle leaks equals to the number of song I played...

Something related to meta database update not working or variable not release when change of track?

Also got this.. But not the 98% CPU usage though.
Title: foo_uie_trackinfo
Post by: mortuusrex on 2006-05-02 17:23:28
Could anyone tell me what the code is for the filesize in megabytes, also what i need to display the compression ratio?
thanks in advance
Title: foo_uie_trackinfo
Post by: mil3s on 2006-05-02 17:27:37
Could anyone tell me what the code is for the filesize in megabytes, also what i need to display the compression ratio?
thanks in advance

Filesize:
Code: [Select]
$div(%_filesize%,1048576).$num($div($mul($mod(%_filesize%,1048576),100),1048576),2) MB
Title: foo_uie_trackinfo
Post by: trance on 2006-05-02 19:37:30
I can't get any panels to show other with the new Column UI...
Title: foo_uie_trackinfo
Post by: Capricorn on 2006-05-02 19:54:18
I can't get any panels to show other with the new Column UI...


neither can i...if you figure it out please let me know.
thanks
Title: foo_uie_trackinfo
Post by: trance on 2006-05-02 20:05:37

I can't get any panels to show other with the new Column UI...


neither can i...if you figure it out please let me know.
thanks


After I dl/ed the new versions from this thread (http://www.hydrogenaudio.org/forums/index.php?showtopic=42730), the panels finally showed up!  Everything is done through teh Column UI preference menu.
Title: foo_uie_trackinfo
Post by: e2zippo on 2006-05-02 21:11:01
I have the most recent version of columns ui but i still can't see any panels or find any settings, help!
Title: foo_uie_trackinfo
Post by: trance on 2006-05-02 22:25:17
I have the most recent version of columns ui but i still can't see any panels or find any settings, help!


Its going to be under:

Preference ->
Display ->
Column UI ->
Layout tab -> right click on the Vertical Spliiter and there's are your options!!!
Title: foo_uie_trackinfo
Post by: AndersHu on 2006-05-03 00:24:51
First I must say that this is a great plugin, and I find I very useful.

But there seams to bee something wrong with the alignment in the $tab() code.
Code: [Select]
Text$tab()Text2A$tab()$crlf()
Longer Text$tab()Text2B$tab()$crlf()

“Text2A” and “Text2B” does not align.

Anders
Title: foo_uie_trackinfo
Post by: mortuusrex on 2006-05-03 02:20:23

Could anyone tell me what the code is for the filesize in megabytes, also what i need to display the compression ratio?
thanks in advance

Filesize:
Code: [Select]
$div(%_filesize%,1048576).$num($div($mul($mod(%_filesize%,1048576),100),1048576),2) MB


thank you
Title: foo_uie_trackinfo
Post by: waileongyeo on 2006-05-03 04:02:04
First I must say that this is a great plugin, and I find I very useful.

But there seams to bee something wrong with the alignment in the $tab() code.
Code: [Select]
Text$tab()Text2A$tab()$crlf()
Longer Text$tab()Text2B$tab()$crlf()

“Text2A” and “Text2B” does not align.

Anders

Tried to use other fonts (with same char width)? i.e. "Courier New"
Title: foo_uie_trackinfo
Post by: takt on 2006-05-03 06:33:57
I checked out this foo_uie_trackinfo formatting section (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:0.9_Track_Info_Panel_%28foo_uie_trackinfo%29 ) and I can seem to reproduce the right alignment.

Putting one $tab() just pushes the text in so it's indented.

Any ideas?
Title: foo_uie_trackinfo
Post by: PiezoTransducer on 2006-05-03 07:49:16
I checked out this foo_uie_trackinfo formatting section (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:0.9_Track_Info_Panel_%28foo_uie_trackinfo%29 ) and I can seem to reproduce the right alignment.

Putting one $tab() just pushes the text in so it's indented.

BTW, it would help if you posted example code.

It may be that you're using the older version of trackinfo that uses $char(1). Check the 1st post (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=29363&view=findpost&p=253518) to see how to use that.

$char(1) is dead. Long live $tab().
Title: foo_uie_trackinfo
Post by: takt on 2006-05-03 08:12:16
I checked out this foo_uie_trackinfo formatting section (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:0.9_Track_Info_Panel_%28foo_uie_trackinfo%29 ) and I can seem to reproduce the right alignment.

Putting one $tab() just pushes the text in so it's indented.

BTW, it would help if you posted example code.

It may be that you're using the older version of trackinfo that uses $char(1). Check the 1st post (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=29363&view=findpost&p=253518) to see how to use that.

$char(1) is dead. Long live $tab().




I'm using the latest of everything. So I'm not sure the first post would be relevant.

Also, the code isn't anything special.
$char(10)
$tab()$get(progressbar)

It's nothing than formatting some text like %album% or anything else that can be formatted.

Any ideas?
Title: foo_uie_trackinfo
Post by: foosion on 2006-05-03 10:17:13
The function from the foobar2000 SDK that draws colored text with tabs can work in two modes. Most components (including Default UI) use the column-based one. The latest foo_uie_trackinfo uses the alternate mode where unused space is distributed equally among tab characters. See this post (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=44088&view=findpost&p=387188) for an explanation of the two modes.
Title: foo_uie_trackinfo
Post by: takt on 2006-05-03 11:40:18
How would I know if use_columns is true?

I understand roughly what you're trying to say in that post. But it still does not right align?
Title: foo_uie_trackinfo
Post by: Thief on 2006-05-03 12:13:43
I would like to see Ctrl+A working in the Formating string area. It's useful if one wants to completely replace some config with another.
Another improvement - nonmodal configuration window like main foobar options, if possible.

any comments on this, G-Lite?
Title: foo_uie_trackinfo
Post by: G-Lite on 2006-05-03 16:27:29
Leak fix is up:
http://stephan.kochen.nl/proj/foobar2000.html#trackinfo (http://stephan.kochen.nl/proj/foobar2000.html#trackinfo)

I think it's strange that ctrl+a doesn't work by default, but I guess I find more things in windows strange.
Title: foo_uie_trackinfo
Post by: Seldaek on 2006-05-03 16:39:57
A viable replacement to ctrl+A is ctrl+Home then ctrl+shift+End.. But if you can fix it it's certainly better. Thanks for the update anyway, although I didn't have a lot of those leaks..
Title: foo_uie_trackinfo
Post by: manudevil on 2006-05-03 18:44:47
Leak fix is up:
http://stephan.kochen.nl/proj/foobar2000.html#trackinfo (http://stephan.kochen.nl/proj/foobar2000.html#trackinfo)

I think it's strange that ctrl+a doesn't work by default, but I guess I find more things in windows strange.

Yes ! It works ! Many thanks !

Ctrl + A works fine. It selects all, isn't it ?
Title: foo_uie_trackinfo
Post by: molnart on 2006-05-03 19:08:47
Leak fix is up:
http://stephan.kochen.nl/proj/foobar2000.html#trackinfo (http://stephan.kochen.nl/proj/foobar2000.html#trackinfo)

I think it's strange that ctrl+a doesn't work by default, but I guess I find more things in windows strange.


PLEASE update the component's reported version number when releasing a new build/fix. marking this for example as v0.81 or something is probably not much work. it would save me some time, as i'm using foobar on two computers, and sometimes it's difficult to check if i have the most up-to-date components (checking the component file's date is not too sexy, and often it doesn't tell me anything about the actual version)
Title: foo_uie_trackinfo
Post by: 1stdayonthejob on 2006-05-03 19:12:32
Found something strange with the new version.
The scroll settings used to be greyed out when the style is set to eclipse or wrap, but now its not and there seems to be an increased cpu usage from around 5% to 20% after I updated.  Dunno if there is any link with it tho.
(http://img430.imageshack.us/img430/9501/image1qu.th.jpg) (http://img430.imageshack.us/my.php?image=image1qu.jpg)
Title: foo_uie_trackinfo
Post by: evo3 on 2006-05-03 21:05:57
Leak fix is up:
http://stephan.kochen.nl/proj/foobar2000.html#trackinfo (http://stephan.kochen.nl/proj/foobar2000.html#trackinfo)

I think it's strange that ctrl+a doesn't work by default, but I guess I find more things in windows strange.



thanks for the fix
Title: foo_uie_trackinfo
Post by: Seldaek on 2006-05-03 23:02:37
Found something strange with the new version.
The scroll settings used to be greyed out when the style is set to eclipse or wrap, but now its not and there seems to be an increased cpu usage from around 5% to 20% after I updated.  Dunno if there is any link with it tho.

I believe you are right.. even though it's set to wrap or ellipsize, it seem to be refreshing as it would be scrolling. Try setting scroll steps to 1 and scroll end delay to 50000 (max). I think it just reduced my cpu usage by 10%, but it's quite hard to be 100% sure about this. Anyone else ?
Title: foo_uie_trackinfo
Post by: G-Lite on 2006-05-03 23:34:08
PLEASE update the component's reported version number when releasing a new build/fix. marking this for example as v0.81 or something is probably not much work. it would save me some time, as i'm using foobar on two computers, and sometimes it's difficult to check if i have the most up-to-date components (checking the component file's date is not too sexy, and often it doesn't tell me anything about the actual version)

Guess I forgot about that.

I believe you are right.. even though it's set to wrap or ellipsize, it seem to be refreshing as it would be scrolling. Try setting scroll steps to 1 and scroll end delay to 50000 (max). I think it just reduced my cpu usage by 10%, but it's quite hard to be 100% sure about this. Anyone else ?

That has to do with the ability to change line ending style per line. The timer is always on now.
That is a good workaround, but I should be able to change the code in a way that fixes this.
Title: foo_uie_trackinfo
Post by: Thief on 2006-05-04 13:20:51
Ctrl + A works fine. It selects all, isn't it ?

yes, it should work, but it doesn't, at least for me. seems this depends on something..
but nevermind, there is context menu item.
Title: foo_uie_trackinfo
Post by: eejadx on 2006-05-04 14:56:37
I believe you are right.. even though it's set to wrap or ellipsize, it seem to be refreshing as it would be scrolling. Try setting scroll steps to 1 and scroll end delay to 50000 (max). I think it just reduced my cpu usage by 10%, but it's quite hard to be 100% sure about this. Anyone else ?


It worked for me. Goes from 25% to 3% cpu usage.
Is that a bug or those new features commonly use alot of cpu power?
Title: foo_uie_trackinfo
Post by: waileongyeo on 2006-05-04 16:24:16
Setting "scroll steps" to min of 1 release my P4 2.4GHz CPU usage from 50-60% down to 6-10%!!!!!!!!!!!
Title: foo_uie_trackinfo
Post by: tintin814 on 2006-05-05 16:22:44
I'm using foobar v0.9.1 with the foo_uie_trackinfo 0.8 and Column UI v0.1.3 beta 1v5
but I cant find the trackinfo panel....
I even don't have the configuration panel in preference...
Title: foo_uie_trackinfo
Post by: Hakubo on 2006-05-05 16:46:51
Setting "scroll steps" to min of 1 release my P4 2.4GHz CPU usage from 50-60% down to 6-10%!!!!!!!!!!!
Is it really that bad?
Right now on my AthlonXP 1800+ with columns_ui pre-alpha 17v6, Trackinfo v0.1, Album Art v0.151 and Album List 0.2.1 beta 3 panels I'm getting about 1% general CPU usage with brief 15% peaks every 4 or so secons, when I'm just playing music with foobar maximized.

I'm almost afraid to update all them.

Oh, and thanks anyway for great component.
Title: foo_uie_trackinfo
Post by: Remedial Sound on 2006-05-05 17:46:12
I'm using foobar v0.9.1 with the foo_uie_trackinfo 0.8 and Column UI v0.1.3 beta 1v5
but I cant find the trackinfo panel....
I even don't have the configuration panel in preference...


It's changed in the new beta: Preferences > Display > Columns UI > Layout Tab.

Learn about it here: http://music.morbo.org/wiki/ (http://music.morbo.org/wiki/)

And please read through this thread before asking, I think this question was already answered! 
Title: foo_uie_trackinfo
Post by: FreakingNeo on 2006-05-05 19:30:59
How come centering my text doesnt work anymore (maybe I'm just using an old way of doing it). I just updated to the latest version of columns_ui and trackinfo, I used to use "$char(1)C" infront of the line that I wanted to center, I assume there is another way?


edit: nevermind, found out the new way is $tab()
Title: foo_uie_trackinfo
Post by: mefirst on 2006-05-06 05:19:14

I'm using foobar v0.9.1 with the foo_uie_trackinfo 0.8 and Column UI v0.1.3 beta 1v5
but I cant find the trackinfo panel....
I even don't have the configuration panel in preference...


It's changed in the new beta: Preferences > Display > Columns UI > Layout Tab.

Learn about it here: http://music.morbo.org/wiki/ (http://music.morbo.org/wiki/)

And please read through this thread before asking, I think this question was already answered! 


Im having the same problem as the guy above.  Track info is not an available panel option for me.  All I have available are playlist and album art
Title: foo_uie_trackinfo
Post by: tintin814 on 2006-05-06 05:32:51

I'm using foobar v0.9.1 with the foo_uie_trackinfo 0.8 and Column UI v0.1.3 beta 1v5
but I cant find the trackinfo panel....
I even don't have the configuration panel in preference...


It's changed in the new beta: Preferences > Display > Columns UI > Layout Tab.

Learn about it here: http://music.morbo.org/wiki/ (http://music.morbo.org/wiki/)

And please read through this thread before asking, I think this question was already answered! 


of coz I have looked up the thread and the layout tab
but the configure button is inactivated
and I cant find anywhere that I can configure the trackinfo
please refer to the image

(http://www.rphotobase.com/albums/userpics/18812/trackinfo.jpg)
Title: foo_uie_trackinfo
Post by: mefirst on 2006-05-06 06:11:54


I'm using foobar v0.9.1 with the foo_uie_trackinfo 0.8 and Column UI v0.1.3 beta 1v5
but I cant find the trackinfo panel....
I even don't have the configuration panel in preference...


It's changed in the new beta: Preferences > Display > Columns UI > Layout Tab.

Learn about it here: http://music.morbo.org/wiki/ (http://music.morbo.org/wiki/)

And please read through this thread before asking, I think this question was already answered! 


Im having the same problem as the guy above.  Track info is not an available panel option for me.  All I have available are playlist and album art



i didnt do any thing different but the panel option.  magically appeared as i was messing with the layout.  oh well, i guess my computer was playing with my head
Title: foo_uie_trackinfo
Post by: tintin814 on 2006-05-07 05:35:40



I'm using foobar v0.9.1 with the foo_uie_trackinfo 0.8 and Column UI v0.1.3 beta 1v5
but I cant find the trackinfo panel....
I even don't have the configuration panel in preference...


It's changed in the new beta: Preferences > Display > Columns UI > Layout Tab.

Learn about it here: http://music.morbo.org/wiki/ (http://music.morbo.org/wiki/)

And please read through this thread before asking, I think this question was already answered! 


Im having the same problem as the guy above.  Track info is not an available panel option for me.  All I have available are playlist and album art



i didnt do any thing different but the panel option.  magically appeared as i was messing with the layout.  oh well, i guess my computer was playing with my head


Then I think it may be the intergetion problem
Title: foo_uie_trackinfo
Post by: falconfox on 2006-05-07 17:27:15
is there a chance you can change "update every second" to update every X seconds? for streaming radio, i really wouldn't be able to tell a difference from 1 second to 5 seconds, but my cpu would.
Title: foo_uie_trackinfo
Post by: noip on 2006-05-08 03:16:30




I'm using foobar v0.9.1 with the foo_uie_trackinfo 0.8 and Column UI v0.1.3 beta 1v5
but I cant find the trackinfo panel....
I even don't have the configuration panel in preference...


It's changed in the new beta: Preferences > Display > Columns UI > Layout Tab.

Learn about it here: http://music.morbo.org/wiki/ (http://music.morbo.org/wiki/)

And please read through this thread before asking, I think this question was already answered! 


Im having the same problem as the guy above.  Track info is not an available panel option for me.  All I have available are playlist and album art



i didnt do any thing different but the panel option.  magically appeared as i was messing with the layout.  oh well, i guess my computer was playing with my head


Then I think it may be the intergetion problem


i'm having the same problem as the other guys,  anyone resolved this?
Title: foo_uie_trackinfo
Post by: Brainbug on 2006-05-08 12:35:41
got one question: would it be possible to code in the feature of using an background image?
Title: foo_uie_trackinfo
Post by: Squeller on 2006-05-08 12:54:36
$line_end(ellipsize) does not work here. BTW, I've got "wrap" as default.
If I use $line_end(ellipsize), TI_panel shows a Square and an E at that position in the panel.
Title: foo_uie_trackinfo
Post by: DeepDose on 2006-05-08 17:30:46
I have a question....i just updated the latest trackinfo dll....and my cpu usage went up a lot higher...is it because of this? or the latest albumart or columns ui?
Title: foo_uie_trackinfo
Post by: Gapkiller on 2006-05-08 21:40:31
Hi there,

I´m using this code for a while now and I hope that there´s someone who could help me out with my problem.....

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(0,176,176))

// Info Color
$puts(info,$rgb(192,192,192))

// Info Annotation Color (e.g. kbps is the annotation)
$puts(anno,$rgb(192,192,192))


// 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(255,0,0))
$puts(color2,$rgb(128,255,0))

// Separator
$puts(text1,$rgb(163,163,163))
$puts(text2,$rgb(128,255,0))
$puts(fadeend,$rgb(255,0,0))
$puts(sepw,16)
$puts(sepc,═)

$char(10)
// SONG INFO SEPARATOR
$char(1)C$transition($repeat($get(),$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(),$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%) $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(),$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),)


// PROGRESS BAR SEPARATOR

$if(%_length_seconds%,$char(10)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...)



If Foobar isn´t playing it looks like this:

http://img467.imageshack.us/img467/5394/trackinfo0cv.png (http://img467.imageshack.us/img467/5394/trackinfo0cv.png)


And it would be very nice if someone could post a fixed one or something that i could change that these Tech - Info´s aren´t included when foobar is stopped.

Thx in advance   

oh and sorry for my english...it could be better
Title: foo_uie_trackinfo
Post by: vonmeth on 2006-05-08 22:23:55
Hi there,

I´m using this code for a while now and I hope that there´s someone who could help me out with my problem.....

Code: [Select]
 <snip>



If Foobar isn´t playing it looks like this:

http://img467.imageshack.us/img467/5394/trackinfo0cv.png (http://img467.imageshack.us/img467/5394/trackinfo0cv.png)


And it would be very nice if someone could post a fixed one or something that i could change that these Tech - Info´s aren´t included when foobar is stopped.

Thx in advance   

oh and sorry for my english...it could be better


Took out the $char(1)C's, as you must use $tab() now to align text in the center. You must also put it on both sides. Though that was not causing it to not show.

I took out also some comma's and paranthesis.

Anyways, here it is, and it works find with my foobar now.

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(0,176,176))

// Info Color
$puts(info,$rgb(192,192,192))

// Info Annotation Color (e.g. kbps is the annotation)
$puts(anno,$rgb(192,192,192))


// 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(255,0,0))
$puts(color2,$rgb(128,255,0))

// Separator
$puts(text1,$rgb(163,163,163))
$puts(text2,$rgb(128,255,0))
$puts(fadeend,$rgb(255,0,0))
$puts(sepw,16)
$puts(sepc,?)

$char(10)
// SONG INFO SEPARATOR
$transition($repeat($get(),$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%,$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%,$char(1)C$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),)
$char(10)

// TECH INFO SEPARATOR
$transition($repeat($get(),$get(sepw)),$get(fadeend),$get(text1))$get(text2)                  TECH INFO $transition($repeat($get(sepc),$get(sepw)),$get(text1),$get(fadeend))$char(10)
$char(10)

$get(head)Length: $get(info)$if(%_isplaying%,%_time_elapsed%$get(anno)$if(%_length%,/%_length%,),%_length%)$char(10)
$get(head)Bitrate: $get(info)
$if2(,%__bitrate%) $get(anno)Kbps $if($stricmp(%__codec%,mp3),$if($stricmp(%__extrainfo%,vbr),VBR,CBR))$char(10)
$if(%__codec%,$get(head)Codec: $get(info)%__codec%$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%,$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),)

// PLAY STATS SEPARATOR

$char(10)
$transition($repeat($get(),$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%,$get(head)Last played on:   $get(info)$get(time_of_year) at $get(time_of_day)$char(10),)
$if(%play_counter%,$get(head)Number of times played: $get(info)%play_counter%$char(10),)



// PROGRESS BAR SEPARATOR

$if(%_length_seconds%,$get(head)Track Progress >$get(info)$pad_right($muldiv(%_time_elapsed_seconds%,100,%_length_seconds%),3)$get(anno)'%'$char(10)
$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: Gapkiller on 2006-05-08 23:16:37
Thx for your help but it don´t work for me.... 

New Screenshot

[a href="http://imageshack.us" target="_blank"]
Title: foo_uie_trackinfo
Post by: vonmeth on 2006-05-08 23:43:31
Thx for your help but it don´t work for me.... 

New Screenshot

(http://imageshack.us)


Have you updated with the right components of late? I'd wager it is because you do not have the correct ones.

Look back a page or two or three, and look for the new trackinfo, columns and playcount plug-ins. I think someone gave links to the correct ones to have that actually work together correctly.

Edit: [a href="http://stephan.kochen.nl/proj/foobar2000.html#trackinfo" target="_blank"]http://stephan.kochen.nl/proj/foobar2000.html#trackinfo[/url]

Download the updated version of columns that is listed under Trackinfo panel as (0.1.3 beta 1). I would also suggest redownloading the trackinfo panel, albumart panel, and playcount.

Further Edit: I'm an idiot, I was thinking it was not displaying correctly when PLAYING a song.

To correct the problem, just add a "$if(%isplaying%," infront of $get(head)Length ... and then a ")" at the end after  $get(anno)'MB'$char(10),
Title: foo_uie_trackinfo
Post by: Gapkiller on 2006-05-09 00:10:11
Thank you very much vonmeth!!
Problem is fixed.
I´m nearly done with my config now
Title: foo_uie_trackinfo
Post by: vonmeth on 2006-05-09 07:51:04
To illustrate the problem some people where talking about earlier that now pops up with the use of $tab()

(http://img145.imageshack.us/img145/2390/notright4qj.th.jpg) (http://img145.imageshack.us/my.php?image=notright4qj.jpg)

Is with ellipsize on ..

Though if you use scroll, it displays correctly ...

(http://img145.imageshack.us/img145/5182/right7cm.th.jpg) (http://img145.imageshack.us/my.php?image=right7cm.jpg)

If you take a look at the line where it says "Born Into Trouble As The Sparks Fly Upward" you can see the
problem clearly. If it was simply moved all the way to the left, it would display fully and correctly, as it does in scroll mode. But when in the other modes, it is moved to near the center, and cuts off at the end.
Title: foo_uie_trackinfo
Post by: DXX on 2006-05-09 22:55:00
I updated Brumal's TrackInfo tagz (originally by necropimp, AstreaEdge and Kockroach).
- updated to use new TrackInfo for fb2k 0.9.x
- date formatting for history section updated (stole code from somebody... habla?)
- stole seekbar from Okupa
- stole the idea to change the seekbar color on pause from giri giri
- updated to work when %_trackinfo_notrack%

(http://img375.imageshack.us/img375/1536/fb2k9hp.th.jpg) (http://img375.imageshack.us/my.php?image=fb2k9hp.jpg)


Code: [Select]
// Original code by necropimp, modified by AstreaEdge, KockRoach
// modded by Brumal
// modded by Dxx (stole last played date formatting from somebody,
//                seekbar from Okupa, seekbar color change on pause
//                from giri giri)
// use Trebuchet MS 8pt

// Toggles
$puts(show_now_playing,1)
$puts(show_tech_info,0)
$puts(show_play_info,1)
$puts(show_audioscrobblered,1)

// Color Config
// 1 - Soundtrack to Your Escape        background: 16,40,46
// 2 - Reroute to Remain                background: 229,232,231
// 3 - Sandman2012                      background: 255,255,255
// 4 - Draconian Times                  background: 129,52,65
// 5 - Since the Day It All Came Down  background: 246,248,245
// 6 - Tales from the Thousand Lakes    background: 35,22,89
// 7 - Projector                        background: 0,0,0
// 8 - The Astral Sleep                background: 134,107,76
// 9 - Verisäkeet                      background: 64,76,61
// 10 - Haunted                        background: 0,0,16
// 11 - Ghost Reveries                  background: 29,20,15
// 12 - Rain Without End                background: 34,27,67
// 13 - Arte Novecento                  background: 240,240,240
// 14 - Ghosts of Loss                  background: 87,111,117
// 15 - The Truth Inside the Shades    background: 16,20,23
// 16 - 00 Void                        background: 167,167,177
// 17 - Antimatter                      background: 0,0,0
// 18 - Frail Words Collapse            background: 202,184,122
// 19 - Am Universum                    background: 204,201,124
// 20 - Character                      background: 228,226,227
// 21 - From Mars to Sirius            background: 239,233,221
// 22 - Voice of Wilderness            background: 169,169,159
// 99 - Custom config
$puts(color_config,1)

// Custom color scheme
$puts(cc_text1,$rgb(70,07,16))
$puts(cc_text2,$rgb(10,10,10))
$puts(cc_section_title,$rgb(25,20,26))
$puts(cc_fade_inside,$rgb(10,27,26))
$puts(cc_fade_outside,$rgb(0,0,0))


// color schemes
$if($strcmp($get(color_config),99),
// User defined scheme
$puts(info,$get(cc_text1))
$puts(head,$get(cc_text2))
$puts(anno,$get(cc_text1))
$puts(text2,$get(cc_section_title))
$puts(text1,$get(cc_fade_inside))
$puts(fadeend,$get(cc_fade_outside))
,
$select($get(color_config),
// Soundtrack to Your Escape
$puts(head,$rgb(170,170,170))
$puts(info,$rgb(170,207,216))
$puts(anno,$rgb(98,114,121))
$puts(text1,$rgb(170,207,216))
$puts(text2,$rgb(255,250,216))
$puts(fadeend,$rgb(0,0,0)),
// Reroute to Remain
$puts(head,$rgb(0,0,0))
$puts(info,$rgb(100,106,102))
$puts(anno,$rgb(100,106,102))
$puts(text1,$rgb(179,181,180))
$puts(text2,$rgb(123,40,48))
$puts(fadeend,$rgb(0,0,0)),
// Sandman2012
$puts(head,$rgb(0,128,192))
$puts(info,$rgb(130,130,130))
$puts(anno,$rgb(100,106,102))
$puts(text1,$rgb(235,242,254))
$puts(text2,$rgb(0,128,64))
$puts(fadeend,$rgb(0,0,0)),
// Draconian Times
$puts(head,$rgb(201,193,146))
$puts(info,$rgb(217,219,206))
$puts(anno,$rgb(217,219,206))
$puts(text1,$rgb(157,51,67))
$puts(text2,$rgb(178,196,200))
$puts(fadeend,$rgb(176,107,68)),
// Since the Day It All Came Down
$puts(head,$rgb(3,46,41))
$puts(info,$rgb(104,104,94))
$puts(anno,$rgb(104,104,94))
$puts(text1,$rgb(76,107,106))
$puts(text2,$rgb(50,85,91))
$puts(fadeend,$rgb(0,0,0)),
// Tales from the Thousand Lakes
$puts(head,$rgb(98,167,162))
$puts(info,$rgb(203,203,210))
$puts(anno,$rgb(203,203,210))
$puts(text1,$rgb(78,112,173))
$puts(text2,$rgb(143,201,234))
$puts(fadeend,$rgb(62,67,171)),
// Projector
$puts(head,$rgb(227,122,76))
$puts(info,$rgb(170,134,98))
$puts(anno,$rgb(170,134,98))
$puts(text1,$rgb(132,55,40))
$puts(text2,$rgb(248,214,134))
$puts(fadeend,$rgb(0,0,0)),
// The Astral Sleep
$puts(head,$rgb(67,45,32))
$puts(info,$rgb(208,204,199))
$puts(anno,$rgb(208,204,199))
$puts(text1,$rgb(103,75,51))
$puts(text2,$rgb(214,200,168))
$puts(fadeend,$rgb(0,0,0)),
// Verisäkeet
$puts(head,$rgb(160,146,117))
$puts(info,$rgb(208,194,165))
$puts(anno,$rgb(208,194,165))
$puts(text1,$rgb(113,52,47))
$puts(text2,$rgb(244,244,244))
$puts(fadeend,$rgb(0,0,0)),
// Haunted
$puts(head,$rgb(119,119,136))
$puts(info,$rgb(160,176,184))
$puts(anno,$rgb(208,194,165))
$puts(text1,$rgb(216,88,16))
$puts(text2,$rgb(228,228,232))
$puts(fadeend,$rgb(0,0,0)),
// Ghost Reveries
$puts(head,$rgb(145,113,54))
$puts(info,$rgb(238,219,135))
$puts(anno,$rgb(162,144,88))
$puts(text1,$rgb(172,148,76))
$puts(text2,$rgb(241,238,205))
$puts(fadeend,$rgb(35,27,16)),
// Rain Without End
$puts(head,$rgb(83,119,171))
$puts(info,$rgb(204,204,204))
$puts(anno,$rgb(194,194,194))
$puts(text1,$rgb(70,102,149))
$puts(text2,$rgb(244,244,244))
$puts(fadeend,$rgb(0,0,0)),
// Arte Novecento
$puts(head,$rgb(122,116,128))
$puts(info,$rgb(115,106,111))
$puts(anno,$rgb(115,106,111))
$puts(text1,$rgb(106,100,128))
$puts(text2,$rgb(130,139,148))
$puts(fadeend,$rgb(122,116,128)),
// Ghosts of Loss
$puts(head,$rgb(151,174,180))
$puts(info,$rgb(197,207,216))
$puts(anno,$rgb(197,207,216))
$puts(text1,$rgb(93,116,122))
$puts(text2,$rgb(237,233,228))
$puts(fadeend,$rgb(0,0,0)),
// The Truth Inside the Shades
$puts(head,$rgb(191,195,168))
$puts(info,$rgb(246,242,155))
$puts(anno,$rgb(246,242,155))
$puts(text1,$rgb(244,163,107))
$puts(text2,$rgb(251,251,251))
$puts(fadeend,$rgb(0,0,0)),
// 00 Void
$puts(head,$rgb(55,54,72))
$puts(info,$rgb(0,0,0))
$puts(anno,$rgb(0,0,0))
$puts(text1,$rgb(145,68,63))
$puts(text2,$rgb(244,241,234))
$puts(fadeend,$rgb(0,0,0)),
// Antimatter
$puts(head,$rgb(107,111,122))
$puts(info,$rgb(204,204,204))
$puts(anno,$rgb(184,184,184))
$puts(text1,$rgb(206,158,66))
$puts(text2,$rgb(204,204,204))
$puts(fadeend,$rgb(0,0,0)),
// Frail Words Collapse
$puts(head,$rgb(77,40,22))
$puts(info,$rgb(0,0,0))
$puts(anno,$rgb(0,0,0))
$puts(text1,$rgb(187,155,103))
$puts(text2,$rgb(128,83,62))
$puts(fadeend,$rgb(0,0,0)),
// Am Universum
$puts(head,$rgb(122,100,40))
$puts(info,$rgb(0,0,0))
$puts(anno,$rgb(0,0,0))
$puts(text1,$rgb(122,100,40))
$puts(text2,$rgb(107,70,13))
$puts(fadeend,$rgb(235,229,143)),
// Character
$puts(head,$rgb(98,100,97))
$puts(info,$rgb(0,0,0))
$puts(anno,$rgb(0,0,0))
$puts(text1,$rgb(160,66,35))
$puts(text2,$rgb(115,39,23))
$puts(fadeend,$rgb(221,162,88)),
// From Mars to Sirius
$puts(head,$rgb(159,143,127))
$puts(info,$rgb(0,0,0))
$puts(anno,$rgb(0,0,0))
$puts(text1,$rgb(159,143,127))
$puts(text2,$rgb(111,89,66))
$puts(fadeend,$rgb(0,0,0)),
// Voice of Wilderness
$puts(head,$rgb(0,0,4))
$puts(info,$rgb(77,75,63))
$puts(anno,$rgb(77,75,63))
$puts(text1,$rgb(0,0,0))
$puts(text2,$rgb(89,87,71))
$puts(fadeend,$rgb(199,197,181)),
))

// 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))

// PROGRESS BAR CONFIG
$if(%_ispaused%,$puts(progress_color1,$rgb(255,0,0)),$puts(progress_color1,$rgb(164,235,12)))
$puts(progress_color2,$rgb(54,106,179))
// $puts(progress_char,$char(9642))
// $puts(progress_char,█)
$puts(progress_char,●)
$puts(progress_length,20)

// Separator
$puts(sepw,7)
//$puts(sepc,―)
$puts(sepc,Φ )

$if($and($strcmp($get(show_now_playing),1),$not(%_trackinfo_notrack%)),
// SONG INFO SEPARATOR
$tab()$transition($repeat($get(sepc),$get(sepw)),$get(fadeend),$get(text1))$get(text2)
$if(%_isplaying%,Now Playing,Selected Track) $transition($repeat($get(sepc),$get(sepw)),$get(text1),$get(fadeend))$tab()$char(10)

$if($and($strstr(%genre%,Classical),$not($strcmp(%title%,%album%))),$tab()$get(info)%album%$tab()$char(10))
$if($strcmp(1,1),$if(%title%,$tab()$get(head)$get(info)%title%$tab()$char(10),),)
$if($strcmp(1,1),$if(%artist%,$tab()$get(head)by$tab()$char(10)$tab()$get(info)%artist%$tab()$char(10),),)
$ifgreater($meta_num(performer),0,$tab()$get(info)%performer%$tab()$char(10),
$if($strcmp(1,1),$if(%album%,$tab()$get(head)track #$get(info)%tracknumber% $get(head)from$tab()$char(10)$tab()$get(info)$if($meta(%album artist%),%album artist% - ,)%album% ,),)
$if(%date%,$get(head)$get(info) '('%date%')'$tab()$char(10),))
$if(%genre%,$tab()$get(head)$get(info)%genre%$tab()$char(10),)
$char(10))

$if($and($strcmp($get(show_tech_info),1),$not(%_trackinfo_notrack%)),
// TECH INFO SEPARATOR
$tab()$transition($repeat($get(sepc),$get(sepw)),$get(fadeend),$get(text1))$get(text2) Tech Info $transition($repeat($get(sepc),$get(sepw)),$get(text1),$get(fadeend))$tab()$char(10)

$tab()$get(head)$get(info)$if(%_isplaying%,%_time_elapsed%$get(anno)$if(%_length%, $get(head)/$get(info) %_length%,),%_length%)$tab()$char(10)
$tab()$get(head)$get(info)
$if2(%__bitrate_dynamic%,%__bitrate%) $get(head)kb $if($stricmp(%__codec%,mp3),$if($stricmp(%__extrainfo%,vbr),VBR,CBR))
$if(%__codec%,$get(head) $get(info)%__codec%$tab()$char(10),)
$if(%__lame_version%,$tab()$get(head)Preset: $get(info)$left(%__lame_version%,4) $right(%__lame_version%,4) [$upper(%__lame_profile%)]$tab()$char(10),)
$if(%__flac_vendor%,$tab()$get(head)Encoder: $get(info)$if($stricmp(%__flac_vendor%,reference libFLAC 1.1.2 20050205),FLAC 1.1.2 -8)$tab()$char(10),)
$if(%__mpc_profile%,$tab()$get(head)MPC Profile: $get(info)%__mpc_profile%$tab()$char(10),)
$if(%__samplerate%,$tab()$get(head)$get(info)$div(%__samplerate%,1000).$substr(%__samplerate%,3,3) KHz )
$get(head)$get(info)$if($stricmp($codec(),MP3),$get(space2)$caps(%__mp3_stereo_mode%),
$if(%__channels%,$ifgreater(%__channels%,1,Stereo,Mono),'?'))$tab()$char(10)
$if(%__bitspersample%,$tab()$get(head)Bitdepth: $get(info)%__bitspersample%$tab()$char(10),)
$if(%_filesize%,$tab()$get(head)$get(info)
$div(%_filesize%,1048576).$left($num($muldiv($mod(%_filesize%,1048576),100,1048576),2),2) $get(head)'MB',)
$get(head) ~ $get(info)$div(1411,%__bitrate%).$substr($muldiv(1411,100,%__bitrate%),2,3):1 $get(head)'('$muldiv(%__bitrate%,100,1411)$get(head)'%)'$tab()$char(10)$char(10))

$if($and($strcmp($get(show_play_info),1),$not(%_trackinfo_notrack%)),
// PLAY STATS SEPARATOR
$tab()$transition($repeat($get(sepc),$get(sepw)),$get(fadeend),$get(text1))$get(text2) History $transition($repeat($get(sepc),$get(sepw)),$get(text1),$get(fadeend))
$tab()$char(10)

$if(%last_played%,$tab()$get(head)Last played on $get(info)$get(time_of_year) $get(head)at$get(info) $get(time_of_day)$tab()$char(10),)
$if(%play_count%,$tab()$get(head)Track played
$if($strcmp(%play_count%,1),$get(info)only once$tab()$char(10),
$if($strcmp(%play_count%,2),$get(info)twice$tab()$char(10),
$get(info)%play_count% times$tab()$char(10))),$tab()$get(info)Never been played$tab()$char(10))

// Audioscrobblered?
$if($strcmp($get(show_audioscrobblered),1),
$if(%_isplaying%,
$puts(half_length,$div(%_length_seconds%,2))
$ifgreater($get(half_length),%_time_remaining_seconds%,$tab()$get(info)Audioscrobblered$tab(),),),))

$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(info)$pad_right($muldiv(%_time_elapsed_seconds%,100,%_length_seconds%),3)'%'
,Streaming...
)
)

// PROGRESS BAR
// ------------------
$if(%_time_total%,
$char(10)
$if(%_isplaying%,$tab()$get(head) $get(progressbar)$tab()$char(10),)
,)
// end progress bar


Got a question though. How does the Drag and Drop (for %_trackinfo_dropped%) on Track Info panel work? My column UI doesn't seem to let me drag any track onto Track Info panel (or to any where else). When I try to drag on a track, it just changes the focus (selected track) to whatever track the cursor is on after I finished dragging.

Thanks,
Dxx
Title: foo_uie_trackinfo
Post by: gfngfgf on 2006-05-10 01:05:46
Got a question though. How does the Drag and Drop (for %_trackinfo_dropped%) on Track Info panel work? My column UI doesn't seem to let me drag any track onto Track Info panel (or to any where else). When I try to drag on a track, it just changes the focus (selected track) to whatever track the cursor is on after I finished dragging.

Thanks,
Dxx

Try holding CTRL while dragging.
Title: foo_uie_trackinfo
Post by: Nait on 2006-05-10 14:08:04
I have a question....i just updated the latest trackinfo dll....and my cpu usage went up a lot higher...is it because of this? or the latest albumart or columns ui?

i am having the same problems, my cpu usage spikes up to 30%+ when using the latest trackinfo
Title: foo_uie_trackinfo
Post by: mobyduck on 2006-05-10 15:30:09

I have a question....i just updated the latest trackinfo dll....and my cpu usage went up a lot higher...is it because of this? or the latest albumart or columns ui?

i am having the same problems, my cpu usage spikes up to 30%+ when using the latest trackinfo
Confirmed. Even when foobar is stopped, its CPU usage ranges from 0 to 30%; simply hiding the item in ColumnsUI Layout usage goes down to 0 - 3%.

HTH.

Alessandro
Title: foo_uie_trackinfo
Post by: DustMagnet on 2006-05-10 16:00:09

I have a question....i just updated the latest trackinfo dll....and my cpu usage went up a lot higher...is it because of this? or the latest albumart or columns ui?

i am having the same problems, my cpu usage spikes up to 30%+ when using the latest trackinfo


In configuration, set Scroll Steps to 1. Usage on my pc dropped to normal, wavering between 0 and 2%.
Title: foo_uie_trackinfo
Post by: DXX on 2006-05-10 16:02:18
Try holding CTRL while dragging.


Thanks. So the Drag and Drop only works in now playing mode. I guess it's not really necessary in follow cursor mode.
Title: foo_uie_trackinfo
Post by: Nait on 2006-05-10 16:08:35


I have a question....i just updated the latest trackinfo dll....and my cpu usage went up a lot higher...is it because of this? or the latest albumart or columns ui?

i am having the same problems, my cpu usage spikes up to 30%+ when using the latest trackinfo


In configuration, set Scroll Steps to 1. Usage on my pc dropped to normal, wavering between 0 and 2%.


thanks, that did the trick. cpu usage is back to normal with steps @ 1
Title: foo_uie_trackinfo
Post by: mp_audio on 2006-05-11 09:27:30
Hi,
My question: Can I use different font sizes in one Track info panel? For example to increase the size of title and artists?
Title: foo_uie_trackinfo
Post by: Fridge on 2006-05-11 11:00:37
******EDIT: PROBLEM SOLVED*******

Sorry if I'm posting something that's been dealt with already, I scanned back through everything since 0.9 release, but at 8 or 9 pages of text I might've missed something.

Anyway, I'm just switching over from .8.3, and currently basically just porting over what I had there, get everything working before I start trying to update for new capabilities.  I ran into a couple snags with this panel though.  First of all, whenever I'm not actually playing a track, it can seem to get any data, I get basically the same thing as Gapkiller - but his appeared to be due to asking for dynamic data, which I think I've got if's preventing.

Screenshot:
Title: foo_uie_trackinfo
Post by: acedriver on 2006-05-11 11:21:47
Sorry if I'm posting something that's been dealt with already, I scanned back through everything since 0.9 release, but at 8 or 9 pages of text I might've missed something.

Anyway, I'm just switching over from .8.3, and currently basically just porting over what I had there, get everything working before I start trying to update for new capabilities.  I ran into a couple snags with this panel though.  First of all, whenever I'm not actually playing a track, it can seem to get any data, I get basically the same thing as Gapkiller - but his appeared to be due to asking for dynamic data, which I think I've got if's preventing.

Anyway, other question's much simpler - Is there some way I'm missing to go back to the old way of following the curser?  It seems that now it always displays the playing track's info, and I can't find an option for it.  Anyway, thanks to anyone who can help me with any of this

If I understand it correctly, you want to make it not display anything when you're not actually playing any track. Correct? In that case, use this:

Code: [Select]
$if(%_trackinfo_notrack%,No track playing,
$if(%_trackinfo_nowplaying%,Now Playing:,
$if(%_trackinfo_followcursor%,Selected Track Info:,
))

** put you code here **

)


The panel will display No track playing when nothing is played.

As for the second question, just double-click the track info panel. My code will show it switch to Selected Track Info
Title: foo_uie_trackinfo
Post by: Fridge on 2006-05-11 12:06:49
As for the second question, just double-click the track info panel.


Ahhh, excellent, that actually answers both questions.  My first question was trying to get it to still show the data when it wasn't playing, which I guess it doesn't do when not in "follow curser" mode or whatever.  Thanks a lot
Title: foo_uie_trackinfo
Post by: carmenm on 2006-05-11 19:40:07
I have a problem with the Ellipsize mode,
instead of looking like this :
title
album...
artist

there s a new line between album... and artist :
title
album...

artist

EDIT: solved, the tag had a problem .... :$
Title: foo_uie_trackinfo
Post by: Sihkih on 2006-05-12 08:29:23
i have a question. Is it posible to put in track info playlist number... i have a lot of problems doing that...
Title: foo_uie_trackinfo
Post by: BrilliantGreen on 2006-05-12 11:35:08
Well heres mines :P
(http://img97.imageshack.us/img97/5046/bgtinfo8lv.png)

Code: [Select]
// Original code by necropimp, modified by AstreaEdge, final by KockRoach
// Appearance changed by Habla. Muchas gracias to those above!
// This Appearance changed by bG :P..
// Text Used Corbel bold 9pt, Default Padding, bg color used = 12 38 58
// Added Toggles(script fm DXX), Mode Info, VA, Screaming, Scrobbled, foosic..& progress bar change & title heading..

// !!!!BEGIN USER CONFIGURATION!!!!

// Toggles (1 = show, 0 = don't show)
$puts(mode_info,1)
$puts(song_info,1)
$puts(scream_info,1)

$puts(arts,0)
$puts(albs,0)
$puts(tils,0)

$puts(tech_info,0)
$puts(play_info,1)
$puts(scrob_foosic,1)
$puts(progress_bar,1)

// Info Heading Color e.g. "Title:"
$puts(head2,0072dd)
$puts(head0,FEB13A)

$puts(follow1,7C7C7CFEB13A)
$puts(test1,$if(%_trackinfo_nowplaying%,FEB13A7C7C7C)$if(%_trackinfo_followcursor%,$get(follow1)))

$puts(follow2,FEB13A7C7C7C)
$puts(test2,$if(%_trackinfo_nowplaying%,7C7C7CFEB13A)$if(%_trackinfo_followcursor%,$get(follow2)))

$puts(head1,$get(test2)* $get(test1))

// Info Color e.g. "Black Dog"
$puts(info,E5EDED)

// Info Annotation Color (e.g. kbps is the annotation)
$puts(anno,FFFFFF)

// 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,ff99000072dd)
$puts(text3,7C7C7C)
$puts(text2, E5EDED)
$puts(text1,$if(%_trackinfo_nowplaying%,0072ddFEB13A)$if(%_trackinfo_followcursor%,$get(followcursorcol)))
$puts(fadeend,400000)
$puts(seplenAA,12)
$puts(seplenA,13)
$puts(seplenB,7)
$puts(seplenC,5)
$puts(seplenD,4)
$puts(sepchar,'*')

// Set Rating character
$puts(ratingchar,'???')

// Progress bar Config
$puts(pbarcol1,400000)
$puts(pbarcol2,0072dd)
$puts(pbarchar,' ;)')
$puts(pbarlen,16)

// !!!!END OF 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))

// !!!!END OF TIME/DATE.. CONFIGURATIONS!!!!

$if($and($strcmp($get(mode_info),1),$not(%_trackinfo_notrack%)),
// MODE INFO
$if(%isplaying%,$if(%_trackinfo_nowplaying%,
$transition($repeat($get(sepchar),$get(seplenC)),$get(fadeend),$get(text1)) $get(text1)'[' $get(text3) N o w P l a y i n g $get(text1) ']'
$transition($repeat($get(sepchar),$get(seplenC)),$get(text1),$get(fadeend)),))

$if(%_trackinfo_followcursor%,
$transition($repeat($get(sepchar),$get(seplenD)),$get(fadeend),$get(text1)) $get(text1)'[' $get(text3) F o l l o w C u r s o r $get(text1) ']'
$transition($repeat($get(sepchar),$get(seplenD)),$get(text1),$get(fadeend)),)

$if(%_trackinfo_notrack%,
$transition($repeat($get(sepchar),$get(seplenB)),$get(fadeend),$get(text1)) $get(text1)'[' $get(text3) N o T r a c k $get(text1) ']'
$transition($repeat($get(sepchar),$get(seplenB)),$get(text1),$get(fadeend)),)$char(10))

$if($and($strcmp($get(song_info),1),$not(%_trackinfo_notrack%),$not($stricmp($left(%_path%,7),'http://'))),
// SONG INFO SEPARATOR
$transition($repeat($get(sepchar),$get(seplenA)),$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(head1)Title$get(head2): $if(%title%,$get(info)$cut(%title%,45)
$ifgreater($len(%title%),45,'...',))$char(10),$get(info)%_filename%$char(10)),)
$if($strcmp(1,$get(arts)),$if(%artist%,$get(head1)Artist$get(head2): $get(info)%artist%$char(10),),)
$if($strcmp(1,$get(albs)),$if(%album%,$get(head1)Album$get(head2): $get(info)$cut(%album%,37)
$ifgreater($len(%album%),37,'...',)$char(10),),)
$if($meta_test(album artist),$get(head1)Album Artist$get(head2): $get(info)%album artist%$char(10))
$if(%tracknumber%,$get(head1)Track #$get(head2): $get(info)%tracknumber%$char(10))
$if(%date%,$get(head1)Year$get(head2): $get(info)%date%$char(10))
$if(%genre%,$get(head1)Genre$get(head2): $get(info)%genre%$char(10)),)

$if($and($strcmp($get(scream_info),1),$not(%_trackinfo_notrack%)),
$if($stricmp($left(%_path%,7),'http://'),
// SCREAMING INFO SEPARATOR
$transition($repeat($get(sepchar),$get(seplenAA)),$get(fadeend),$get(text1)) $get(text1)'[' $get(text2) S c r e a m i n g $get(text1) ']'$char(10)

$if(%title%,$get(head1)Title$get(head2): $if(%title%,$get(info)$cut(%title%,45)
$ifgreater($len(%title%),45,'...',))$char(10),$get(info)%_filename%$char(10))
$if(%artist%,$get(head1)Artist$get(head2): $get(info)%artist%$char(10))
$if(%album%,$get(head1)Album$get(head2): $get(info)$cut(%album%,37)
$ifgreater($len(%album%),37,'...',)$char(10))
$if(%genre%,$get(head1)Genre$get(head2): $get(info)%genre%$char(10))
$if(%url%,$get(head1)Url$get(head2): $get(info)%url%$char(10))
,),)

$if($and($strcmp($get(tech_info),1),$not(%_trackinfo_notrack%),$not($stricmp($left(%_path%,7),'http://'))),
// TECH INFO SEPARATOR
$transition($repeat($get(sepchar),$get(seplenA)),$get(fadeend),$get(text1)) $get(text1)'[' $get(text2) T e c h I n f o $get(text1) ']'$char(10)

$get(head1)Length$get(head2): $get(info)$if(%_isplaying%,%_time_elapsed%$get(anno)$if(%_length%, / %_length%,)$if(%_time_elapsed%, / $muldiv(%_time_elapsed_seconds%,100,%_length_seconds%)'%')$if(%_length%, / -%_time_remaining%),%_length%)$char(10)
$get(head1)Quality$get(head2): $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(head1)Encoder$get(head2): $get(info)$left(%__lame_version%,4) $right(%__lame_version%,4) [$upper(%__lame_profile%)]$char(10),)
$if(%__flac_vendor%,$get(head1)Encoder$get(head2): $get(info)$if($stricmp(%__flac_vendor%,reference libFLAC 1.1.2 20050205),FLAC 1.1.2 -8)$char(10),)
$if(%__mpc_profile%,$get(head1)MPC Profile$get(head2): $get(info)%__mpc_profile%$char(10),)
$get(head1)Compression$get(head2): $get(info)$div(1411,%__bitrate%).$substr($muldiv(1411,100,%__bitrate%),2,3):1 '('$get(info)$muldiv(%__bitrate%,100,1411)$get(anno)'% of original quality)'$char(10)
$get(head1)Channel Mode$get(head2): $get(info)$if($stricmp($codec(),MP3),$get(space2)$caps(%__mp3_stereo_mode%),
$if(%__channels%,$ifgreater(%__channels%,1,Stereo,Mono),'?'))$char(10)
$if(%__bitspersample%,$get(head1)Bitdepth$get(head2): $get(info)%__bitspersample% bits/sample$char(10),)
$if(%__samplerate%,$get(head1)Samplerate$get(head2): $get(info)$div(%__samplerate%,1000).$substr(%__samplerate%,3,3) KHz $char(10))
$if(%_filesize%,$get(head1)Filesize$get(head2): $get(info)
$div(%_filesize%,1048576).$left($num($muldiv($mod(%_filesize%,1048576),100,1048576),2),2) $get(anno)'MB'$char(10),),)

$if($and($strcmp($get(play_info),1),$not(%_trackinfo_notrack%),$not($stricmp($left(%_path%,7),'http://'))),
$if(%last_played%,
// PLAY STATS SEPARATOR
$transition($repeat($get(sepchar),$get(seplenA)),$get(fadeend),$get(text1))$get(text1)' [' $get(text2) P l a y S t a t s $get(text1) ']'$char(10)

$if(%play_counter%,$get(head1)Played$get(head2): $get(info)%play_counter% times total$char(10),)
$if(%last_played%,$get(head1)Last played on$get(head2): $get(info)$get(time_of_year) at $get(time_of_day)$char(10),),),)

$if($and($strcmp($get(scrob_foosic),1),$not(%_trackinfo_notrack%),$not($stricmp($left(%_path%,7),'http://'))),
// Scrobbled & Foosic
$if(%isplaying%,$get(head1)$ifgreater(%_time_elapsed_seconds%,240,Scrobbled,$ifgreater($muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%),50,Scrobbled ?$get(head2): $get(info)Yes,Scrobbled ?$get(head2): $get(info)No))$char(10))
$if(%isplaying%,$get(head1)$ifgreater(%_time_elapsed_seconds%,60,Foosic`d,$ifgreater($muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%),50,Foosic ?$get(head2): $get(info)Yes,Foosic ?$get(head2): $get(info)No))$char(10))
,)

$if($and($strcmp($get(progress_bar),1),$not(%_trackinfo_notrack%),$not($stricmp($left(%_path%,7),'http://'))),

$if(%isplaying%,
// PROGRESS BAR WIDTH
// if you want to change the length, there are two "99"s you'll have to find and replace
$puts(len1,$muldiv(%_time_elapsed_seconds%,$get(pbarlen),%_time_total_seconds%))
$puts(len2, $get(info)$muldiv(%_time_elapsed_seconds%,100,%_length_seconds%)'%')
// BAR
$transition($repeat($get(pbarchar),$get(len1)),$get(pbarcol1),$get(pbarcol2))
$get(len2)$get(head0)$repeat($get(pbarchar),$sub($get(pbarlen),$get(len1)))
$char(10),),)
Title: foo_uie_trackinfo
Post by: BaronLSN on 2006-05-13 01:38:35
How is it that some people's Track info boxes have different fonts, and how would I do that?

Great plugin BTW. Very useful =)

Edit: Nvm, I got it. Another question though - how to center or justify text within the panel, and also, I have a rectangular [longer than it is tall] trackinfo box, and is it possible to display Song Info, track info etc. acrossways, instead of downwards?
Title: foo_uie_trackinfo
Post by: 4nt1 on 2006-05-14 05:20:34
to right aligh use $tab()
if you want it centered its $tab()insert text  here$tab()
Title: foo_uie_trackinfo
Post by: ANT on 2006-05-14 17:51:14
center aligning with text ellipsis doesn't work so good, or am I wrong ?
the text goes on the right
Title: foo_uie_trackinfo
Post by: hyyam85 on 2006-05-17 09:44:30
i can't find the Scroll Steps in Preference... i m using version 0.9.1
Title: foo_uie_trackinfo
Post by: R@M on 2006-05-17 14:59:31
// Added Toggles(script fm DXX), Mode Info, VA, Screaming ...

  Screaming is nice. Didn't know, that foobar can scream 

hyyam85: Do a right mouseclick in the panel and select Settings.
Title: foo_uie_trackinfo
Post by: BobsRevenge on 2006-05-18 03:08:09
Okay, I noticed my foobar started taking up a huge amount of CPU (between 5% and 35% in cycles of about 3-4 seconds) since I started pimping it out.  I decided to figure out which component was doing this, and it turned out to be this one.  Is anyone else getting this problem?  This thing is taking up a space that I can't fill with another component, so I'd have to reorder my UI.

So, yeah... why would this component be such a hog?  I turned off the update every second thing and it still kills my CPU in that cyclic way.  Any ideas?

edit: I found a post about the scroll stuff fix thing.  That killed the hogginess.
Title: foo_uie_trackinfo
Post by: aereogramme on 2006-05-18 03:17:12
where is the link for the latest version of this component, and does it work with 0.9.1 foobar.  thanks.  don't mean to insert a random post.
Title: foo_uie_trackinfo
Post by: acedriver on 2006-05-18 03:29:11
where is the link for the latest version of this component, and does it work with 0.9.1 foobar.  thanks.  don't mean to insert a random post.

http://stephan.kochen.nl/proj/foobar2000.html#trackinfo (http://stephan.kochen.nl/proj/foobar2000.html#trackinfo) for v0.9.1
Title: foo_uie_trackinfo
Post by: aereogramme on 2006-05-18 04:37:51
THANKS!
Title: foo_uie_trackinfo
Post by: ladiko on 2006-05-21 11:19:58
is it also possible to set something like this:
variable name left-aligned, but the value centered to a special point valid for all lines?

Code: [Select]
Artist:   LongBlubb
Title:      Blubb
Track:       01
Genre:      Blubb

Samplerate:       44kHz
File:           Blubb.mp3
Path:        D:\Blubb\blubb


edit:
ok artist: $tag()%artist%$tag() will do this =)

so how to scroll not Artist: but LongBlubb ???
Title: foo_uie_trackinfo
Post by: Purple Monkey on 2006-05-21 13:15:21
so how to scroll not Artist: but LongBlubb ???


The only think that I can think of is to stick two track info panels in a horizontal splitter, one with Artist:, Title:, etc and the other with the info.  I don't think its currently possible in one panel.
Title: foo_uie_trackinfo
Post by: HEPB on 2006-05-21 13:57:04
Quote
Trackinfo Panel is a panel for Columns UI that displays info (via TAGZ) about the currently playing or currently selected track.


Displays info where ? 
Title: foo_uie_trackinfo
Post by: shane 4 sure on 2006-05-21 14:10:46
Quote
Displays info where ? 

You've got to insert the panel first, just like I've mentioned in the other post mate.
Title: foo_uie_trackinfo
Post by: Squeller on 2006-05-21 14:15:02
Displays info where ? 
To where you added it to your columns ui layout.

I recommend to first fix bugs.

a) Panel does not refresh when changing the playlist (when in follow cursor mode).
b) $line_end(ellipsize) does not seem to work (mine shows 'E', wrap is default, OS is W2K)
c) Lines should be left alligned, if mode is "centered" and line exceeds the panel width.

EDIT:

d) If you drag an unsupported file format over the trackinfo panel, the error console comes up immediately: "Could not load info (Unsupported file format) from: blah..."
Title: foo_uie_trackinfo
Post by: HEPB on 2006-05-21 14:31:56
Aha, so I must add it manually, ok, now help me to do this properly, I've replied here (http://www.hydrogenaudio.org/forums/index.php?showtopic=39924&st=375&gopid=394458�entry394458). Thanks.
Title: foo_uie_trackinfo
Post by: bangbang023 on 2006-05-27 03:45:47
Is there anyway to change the font size of some text while leaving the rest at default size?
Title: foo_uie_trackinfo
Post by: lextune on 2006-05-27 04:25:25
Is there anyway to change the font size of some text while leaving the rest at default size?

No.
Title: foo_uie_trackinfo
Post by: bangbang023 on 2006-05-27 05:17:40

Is there anyway to change the font size of some text while leaving the rest at default size?

No.

damn, thanks.
Title: foo_uie_trackinfo
Post by: tintin814 on 2006-05-27 09:38:15
Just think about a question

Is it possible to make those shown in the trackinfo panel becomes selectable, so can be copied?

Thanks
Title: foo_uie_trackinfo
Post by: Squeller on 2006-05-28 11:44:34
For whatever reason, I'm not able to show %list_total% and %list_index% in trackinfo panel. Is there any way to use these? I also failed with $set_global/$get_global...
Title: foo_uie_trackinfo
Post by: 4nt1 on 2006-05-28 11:52:57
REQUEST

can someone please implement a save/load/reset/delete feature for configs, like in columns ui. then having multiple configs will be easy to manage and can be saved and shared properly..
Title: foo_uie_trackinfo
Post by: DualBlade on 2006-05-28 14:57:34
For whatever reason, I'm not able to show %list_total% and %list_index% in trackinfo panel. Is there any way to use these? I also failed with $set_global/$get_global...


I found this answer from Foosion

Quote from: foosion link=msg=0 date=
The SDK clearly states that methods of play_manager may only be called from the main thread.
The restriction of %list_index% and other playlist specific fields to the playlist is by design.
Title: foo_uie_trackinfo
Post by: PHOYO on 2006-05-28 15:52:39
Part of artist, album and title names are blue, when they should be red. Why?

Here's the screenshot:
http://img105.imageshack.us/img105/7601/why3ch.gif (http://img105.imageshack.us/img105/7601/why3ch.gif)

Here's the settings:
Code: [Select]
$if(%_trackinfo_notrack%,
$char(10)$char(10)$char(1)CNo track playing,
$char(1)Ca0caf3%_trackinfo_mode%$char(10)
$char(1)C$if(%_isplaying%,$select($add(1,
$mod(%_time_remaining_seconds%,5)), ,.,..,...,....),)$char(10)
dcab50Artist: $tab()4040ff%artist%$char(10)
dcab50Title: $tab()4040ff%title%$char(10)
dcab50Album: $tab()4040ff%album%$char(10)
dcab50Year: $tab()4040ff%date%$char(10)
dcab50Track #: $tab()4040ff$if(%tracknumber%,%tracknumber%,00)$char(10)
dcab50Bitrate: $tab()4040ff%__bitrate%kbps$char(10)$char(10)
dcab50Played 4040ff%play_count%dcab50 time$char(40)s$char(41))
Title: foo_uie_trackinfo
Post by: Squeller on 2006-05-28 15:56:01
I found this answer from Foosion

Quote from: foosion link=msg=0 date=

The SDK clearly states that methods of play_manager may only be called from the main thread.
The restriction of %list_index% and other playlist specific fields to the playlist is by design.
Thanks for finding. Unfortunately it is by design. From the users point of view I do not understand the difference why e.g. %playback_time_seconds% is accessible, but %list_index% isn't.
Title: foo_uie_trackinfo
Post by: PHOYO on 2006-05-28 19:25:11
Part of artist, album and title names are blue, when they should be red. Why?

Here's the screenshot:
http://img105.imageshack.us/img105/7601/why3ch.gif (http://img105.imageshack.us/img105/7601/why3ch.gif)

Here's the settings:
Code: [Select]
$if(%_trackinfo_notrack%,
$char(10)$char(10)$char(1)CNo track playing,
$char(1)Ca0caf3%_trackinfo_mode%$char(10)
$char(1)C$if(%_isplaying%,$select($add(1,
$mod(%_time_remaining_seconds%,5)), ,.,..,...,....),)$char(10)
dcab50Artist: $tab()4040ff%artist%$char(10)
dcab50Title: $tab()4040ff%title%$char(10)
dcab50Album: $tab()4040ff%album%$char(10)
dcab50Year: $tab()4040ff%date%$char(10)
dcab50Track #: $tab()4040ff$if(%tracknumber%,%tracknumber%,00)$char(10)
dcab50Bitrate: $tab()4040ff%__bitrate%kbps$char(10)$char(10)
dcab50Played 4040ff%play_count%dcab50 time$char(40)s$char(41))


Anyone? Plz, this is making me crazy 
Title: foo_uie_trackinfo
Post by: Schinkentoni on 2006-05-28 20:15:34
try that

Code: [Select]
$if(%_trackinfo_notrack%,
$char(10)$char(10)$char(1)CNo track playing,
$char(1)Ca0caf3%_trackinfo_mode%$char(10)
$char(1)C$if(%_isplaying%,$select($add(1,
$mod(%_time_remaining_seconds%,5)), ,.,..,...,....),)$char(10)
dcab50Artist: 4040ff$tab()%artist%$char(10)
dcab50Title: 4040ff$tab()%title%$char(10)
dcab50Album: 4040ff$tab()%album%$char(10)
dcab50Year: 4040ff$tab()%date%$char(10)
dcab50Track #: 4040ff$tab()$if(%tracknumber%,%tracknumber%,00)$char(10)
dcab50Bitrate: 4040ff$tab()%__bitrate%kbps$char(10)$char(10)
dcab50Played 4040ff%play_count%dcab50 time$char(40)s$char(41))
Title: foo_uie_trackinfo
Post by: parive3 on 2006-05-29 10:31:50
(http://img62.imageshack.us/img62/3669/foobar8uw.th.jpg) (http://img62.imageshack.us/my.php?image=foobar8uw.jpg)

Anyone know what is the track info code for bottom panel on the above setup?

Is there some gallery for Track Info like Columns UI?
Title: foo_uie_trackinfo
Post by: PHOYO on 2006-05-29 15:03:43
try that

Code: [Select]
$if(%_trackinfo_notrack%,
$char(10)$char(10)$char(1)CNo track playing,
$char(1)Ca0caf3%_trackinfo_mode%$char(10)
$char(1)C$if(%_isplaying%,$select($add(1,
$mod(%_time_remaining_seconds%,5)), ,.,..,...,....),)$char(10)
dcab50Artist: 4040ff$tab()%artist%$char(10)
dcab50Title: 4040ff$tab()%title%$char(10)
dcab50Album: 4040ff$tab()%album%$char(10)
dcab50Year: 4040ff$tab()%date%$char(10)
dcab50Track #: 4040ff$tab()$if(%tracknumber%,%tracknumber%,00)$char(10)
dcab50Bitrate: 4040ff$tab()%__bitrate%kbps$char(10)$char(10)
dcab50Played 4040ff%play_count%dcab50 time$char(40)s$char(41))


Thanks! It almost worked. I tweaked it a little bit and now it works flawlessy!

Here's the code:
Code: [Select]
$if(%_trackinfo_notrack%,
$char(10)$char(10)$char(1)CNo track playing,
$char(1)Ca0caf3%_trackinfo_mode%$char(10)
$char(1)C$if(%_isplaying%,$select($add(1,
$mod(%_time_remaining_seconds%,5)), ,.,..,...,....),)$char(10)
dcab50Artist: 4040ff$tab()4040ff%artist%$char(10)
dcab50Title: 4040ff$tab()4040ff%title%$char(10)
dcab50Album: 4040ff$tab()4040ff%album%$char(10)
dcab50Year: 4040ff$tab()4040ff%date%$char(10)
dcab50Track #: 4040ff$tab()4040ff$if(%tracknumber%,%tracknumber%,00)$char(10)
dcab50Bitrate: 4040ff$tab()4040ff%__bitrate%kbps$char(10)$char(10)
dcab50Played 4040ff%play_count%dcab50 time$char(40)s$char(41))
Title: foo_uie_trackinfo
Post by: SuperPhly on 2006-05-30 06:50:29
Guys, I've been on this forum for a LONG time. I've been an avid user of foobar2000 for about 3 years now, maybe 2 1/2... I have a HUGE gripe about this forum... I cannot for the life of me FIND A WORKING LINK for foo_uie_trackinfo. The first page on here is outdated and links to an old 0.8.3 version. The post above this one says to look at some URL which tells me to look in this thread. Then a page back it says to look 3-4 pages back for a working link, but as of page 26, I wasn't able to find it.

I'm seriously frustrated because it shouldn't be so hard to fricken get an updated piece of software. Am I going to have to setup some sorta foobar2000emporium.com website to house all this crap? It's rediculous ya know...
Title: foo_uie_trackinfo
Post by: acedriver on 2006-05-30 07:57:57
Guys, I've been on this forum for a LONG time. I've been an avid user of foobar2000 for about 3 years now, maybe 2 1/2... I have a HUGE gripe about this forum... I cannot for the life of me FIND A WORKING LINK for foo_uie_trackinfo. The first page on here is outdated and links to an old 0.8.3 version. The post above this one says to look at some URL which tells me to look in this thread. Then a page back it says to look 3-4 pages back for a working link, but as of page 26, I wasn't able to find it.

I'm seriously frustrated because it shouldn't be so hard to fricken get an updated piece of software. Am I going to have to setup some sorta foobar2000emporium.com website to house all this crap? It's rediculous ya know...

http://stephan.kochen.nl/proj/foobar2000.html#trackinfo (http://stephan.kochen.nl/proj/foobar2000.html#trackinfo)
Title: foo_uie_trackinfo
Post by: Squeller on 2006-05-30 10:18:59
I cannot for the life of me FIND A WORKING LINK for foo_uie_trackinfo. The first page on here is outdated and links to an old 0.8.3 version. The post above this one says to look at some URL which tells me to look in this thread. Then a page back it says to look 3-4 pages back for a working link, but as of page 26, I wasn't able to find it.

I can understand you.
The most important page for you should be "wanted 0.9 plugin ports" http://www.hydrogenaudio.org/forums/index....showtopic=42730 (http://www.hydrogenaudio.org/forums/index.php?showtopic=42730)

If the original poster is not available, maybe an admin could edit the first posting and add a link to the 0.9 version?
Title: foo_uie_trackinfo
Post by: gfngfgf on 2006-05-31 00:51:39
The first post of the Wanted 0.9 plugin ports (http://www.hydrogenaudio.org/forums/index.php?showtopic=42730) thread has a pretty good listing, that's kept up-to-date as far as I can tell.

You can also check the wiki's 0.9 Components (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components_0.9) page.

edit: one of these days, I will learn to check for more pages in a thread before I hit reply :-P
Title: foo_uie_trackinfo
Post by: Sphix on 2006-05-31 18:23:00
[a href="http://img62.imageshack.us/my.php?image=foobar8uw.jpg" target="_blank"]

What the user used for making that "painting"?! 
Title: foo_uie_trackinfo
Post by: manudevil on 2006-05-31 18:58:26

[a href="http://img62.imageshack.us/my.php?image=foobar8uw.jpg" target="_blank"]

What the user used for making that "painting"?! 

I guess it is just a no-cover image for AlbumArt.
Title: foo_uie_trackinfo
Post by: Alvis on 2006-06-01 22:49:46
Guys, is it possible to centre align the text inside this panel?
Title: foo_uie_trackinfo
Post by: upNorth on 2006-06-01 23:09:04
Guys, is it possible to centre align the text inside this panel?
Code: [Select]
$tab()%artist%$tab()
Title: foo_uie_trackinfo
Post by: Yotsuya on 2006-06-02 04:59:46

(http://img62.imageshack.us/img62/3669/foobar8uw.th.jpg) (http://img62.imageshack.us/my.php?image=foobar8uw.jpg)

Anyone know what is the track info code for bottom panel on the above setup?

Is there some gallery for Track Info like Columns UI?


:blink:

What the user used for making that "painting"?!  :huh:


It looks like perhaps they used an albumart panel, with no border, no caption, and set a specific image file as the only source.  As for the original question I found that use of trackinfo inspiring and this is what I came up with:

(http://img19.imageshack.us/img19/4342/fooyotsuya1kv.th.png) (http://img19.imageshack.us/my.php?image=fooyotsuya1kv.png)

The code I used was:

Code: [Select]
*E9E9E9*$if(%album artist%,%album artist%*FF8000* $char(47)*E9E9E9*  ,)$if2(%title%,)
$tab()$if(%playback_time%,%playback_time% $char(47) %length% ,)$char(10)
*E9E9E9*$if2(%album%,)$if(%date%, *FF8000*$char(40)*E9E9E9*%date%*FF8000*$char(41),)
$tab()$progress2(%playback_time_seconds%,%length_seconds%,30,*FF8000*'?',*CA0000*'?')


* EDIT: Color escape codes were causing issues with the code markup box, replaced with asterisks '*' you'll probably want to adjust the colors to suit your own tastes anyway.
Title: foo_uie_trackinfo
Post by: BrilliantGreen on 2006-06-02 21:04:24
See Above Post :P..
mines a mod of both of yours + the Mini-Visualisation.. :P
font used: Segoe UI bold 11pt

(http://img199.imageshack.us/img199/691/bgminitinfo4ds.png)

Code: [Select]
$puts(BU,FEB13A)
$puts(ORN,0072dd)
$puts(OW,E5EDED)
$puts(GRY2,7C7C7C)
$puts(GRY,A3A3A3)
$put(GRY1,C0C0C0)


$upper($if(%_trackinfo_notrack%,Foobar music player,$get(ow)%title% $get(gry2)'//' $get(bu)%artist%))
$tab(100)

// Mini-Visualisation
$if(%_isplaying%,
FFFFFF|0261FD
$select($add(1,$mod(%_time_elapsed_seconds%,10)),
$get(ow)i$get(gry)':'$get(gry2).$get(bu)i$get(gry)':'$get(gry2).,
$get(gry)':'$get(ow)i$get(gry)'::'$get(gry2).$get(gry)':',
$get(gry2).$get(gry)':'$get(gry2)..$get(gry)'::',
$get(gry)':'$get(ow)i$get(gry)':'$get(gry2).$get(gry)':'$get(gry2).,
$get(bu)ii$get(gry)'::'$get(gry2).$get(gry)':',
$get(gry2).$get(ow)i$get(gry)':'$get(gry2).$get(gry)':'$get(gry2).,
$get(gry)'::'$get(gry2).$get(gry)':'$get(bu)i$get(gry)':',
$get(gry2).$get(gry)'::'$get(bu)i$get(gry)'::',
$get(gry)':'$get(gry2).$get(gry)':'$get(bu)i$get(gry)':'$get(gry2).,
$get(gry2).$get(gry)':'$get(bu)i$get(gry)':'$get(gry2).$get(ow)i))
// End Mini-Visualisation
$char(10)

$if(%_trackinfo_notrack%,,
$get(gry1)$if2(%album%,)$if(%date%, $get(gry2)'('$get(gry1)%date%$get(gry2)')',)
$tab()%playback_time% $get(gry2)/ $get(gry1)%length%$char(10)
$get(gry2)%genre%)
$tab()

// progress bar
$if(%isPaused%, o 0342fcpaused,
$if(%IsPlaying%,$ifgreater(2,%_time_remaining_seconds%,starting next track,
$if(%IsPlaying%,$ifgreater(5,%_time_remaining_seconds%,loading next track,

$progress2(%_time_elapsed_seconds%, %_time_total_seconds%, 20,$get(bu)Ϟ,
$get(gry2)Ϟ)

), no track loaded))
,$char(10)$tab() o no track loaded))
Title: foo_uie_trackinfo
Post by: topdownjimmy on 2006-06-04 20:35:28
I would love to see this panel revert to "follow cursor" mode when nothing is playing, like the albumart panel.
Title: foo_uie_trackinfo
Post by: rec_kris on 2006-06-08 01:49:52
Is there any way to enable antialiasing/font smoothing within this panel ?

i  have it enabled in winxpsp2, but the fonts inside the panel still have jaggies ?
Title: foo_uie_trackinfo
Post by: Squeller on 2006-06-08 04:10:26
Is there any way to enable antialiasing/font smoothing within this panel ?

i  have it enabled in winxpsp2, but the fonts inside the panel still have jaggies ?

Are you sure? Are your fonts too small? It has to work with the windows font smoothing. Works here on W2K.
Title: foo_uie_trackinfo
Post by: roentgen on 2006-06-08 04:48:04
Is there any way to enable antialiasing/font smoothing within this panel ?

i  have it enabled in winxpsp2, but the fonts inside the panel still have jaggies ?

same here using winxpsp2
Title: foo_uie_trackinfo
Post by: rendom on 2006-06-08 19:02:31
i have this error message when i quit foobar2000
(http://private.rendom.net/errorfoobar.gif)
Title: foo_uie_trackinfo
Post by: Silversight on 2006-06-08 19:20:56
i have this error message when i quit foobar2000
(http://private.rendom.net/errorfoobar.gif)

Do you have the latest version installed? metadb_handle_leaks were an issue with an earlier version of foo_uie_trackinfo.
Title: foo_uie_trackinfo
Post by: Crissaegrim on 2006-06-08 19:49:35
I would love to see this panel revert to "follow cursor" mode when nothing is playing, like the albumart panel.
You can just middle-dlick to switch to follow cursor.....
Title: foo_uie_trackinfo
Post by: rec_kris on 2006-06-09 04:03:21
negative on the font smoothing in xpsp2 . . .

i'll work on a screeny.

(http://img132.imageshack.us/img132/8013/untitled40nv.th.jpg) (http://img132.imageshack.us/my.php?image=untitled40nv.jpg)

it's not terrible, but it's there. . .

or am i crazy ?
Title: foo_uie_trackinfo
Post by: Silversight on 2006-06-09 05:44:32
or am i crazy ?


On that screenshot the font in the trackinfo panel is definitely smoothed. (Wow, optical placebo effect really works)


I've made a comparison screenshot to remind you guys how ugly non-smoothed fonts can look. Works like a charm on my WinXP SP2.
(http://img113.imageshack.us/img113/2677/fontsmoothing8uh.th.png) (http://img113.imageshack.us/my.php?image=fontsmoothing8uh.png)
Title: foo_uie_trackinfo
Post by: Toppy on 2006-06-09 15:30:48
I extracted the dll into the components dir, and now Foobar shows Track Info Panel under components,
but nowhere I can find the actual option/editting screens

(http://img144.imageshack.us/img144/3986/foobar0dv.jpg)
Title: foo_uie_trackinfo
Post by: acedriver on 2006-06-09 15:40:14
use the layout tab to add the panel, refer to guide (http://eolindel.free.fr/foobar0.9/UIcolumns.shtml)

to configure track info, right click the panel
Title: foo_uie_trackinfo
Post by: Toppy on 2006-06-09 16:31:50
Thanks acedriver, got it working.

P.S. The foobar menuing system is extremely clumsy.
Title: foo_uie_trackinfo
Post by: Generalverdacht on 2006-06-09 18:09:10
no it isnt, if you´ve seen the menu order in winamp and/or the older fb2k versions you wouldnt claim that.
Title: foo_uie_trackinfo
Post by: Great Jay on 2006-06-14 09:50:45
hmm, I can't download the dll-file. it stops at 81%. does anyone have the newest version and could mail it to me info[at]platta.com ? would be really nice.

thx

gReat jAy
Title: foo_uie_trackinfo
Post by: Mr. Fix It on 2006-06-14 10:18:16
I was wondering if there was any way to make it so this plug-in wouldn't take up any or less resources when foobar is minimized?  Seems kind of silly for it to take up CPU time when it's not at all visible, but then again I know very little about coding.
Title: foo_uie_trackinfo
Post by: Yotsuya on 2006-06-14 10:26:11
Is this plugin still being actively developed? The initial post and corresponding download link has not been updated in ages and it does not appear in the Verified components for foobar2000 (http://www.hydrogenaudio.org/forums/index.php?showtopic=42916) thread. This is an extremely popular and flexible component and has become a vital part of many of our layouts, but there are some resource issues that should continue to be debugged.
Title: foo_uie_trackinfo
Post by: Great Jay on 2006-06-14 10:50:04
the newest version is from the third of may. so it's not really "old". but the download doesn't work for me.
Title: foo_uie_trackinfo
Post by: Yotsuya on 2006-06-14 11:05:14
http://stephan.kochen.nl/proj/foo_uie_trac...e_trackinfo.dll (http://stephan.kochen.nl/proj/foo_uie_trackinfo/foo_uie_trackinfo.dll)

Have you tried the above link from this (http://stephan.kochen.nl/proj/foobar2000.html) page? I just double checked and it works for me.
Title: foo_uie_trackinfo
Post by: machekku on 2006-06-14 15:40:49
Bug report: It seems that changing a playlist does not trigger update (in follow cursor mode).
Title: foo_uie_trackinfo
Post by: rosshmusic on 2006-06-14 15:54:57
is it supposed to... I would think that until you actually click on a track that there is no update because the cursor has not moved... (btw, the "cursor" would be the actively selected item in the "collumns playlist" not the "playlist switcher" - it's trackinfo not playlist info)...
Title: foo_uie_trackinfo
Post by: machekku on 2006-06-14 16:09:18
Let's say: when I change playlist, album art changes, but track info does not.
Title: foo_uie_trackinfo
Post by: Yotsuya on 2006-06-14 16:10:16
re: machekku

I dont use multiple playlists so I might be missing something, but when I update my dynamic playlist there is no entry selected until I click on one.  Is there perhaps a way to have your foobar auto-select an item from your new playlist when you change to it? It stands to reason that if you can cause that to happen, then that would trigger the trackinfo to "follow your cursor" onto your new playlist and result in the behavior you expected.  As rosshmusic indicated I dont really think it's a bug because your not moving the cursor anywhere for the component to follow.
Title: foo_uie_trackinfo
Post by: rosshmusic on 2006-06-14 16:18:12
Let's say: when I change playlist, album art changes, but track info does not.

hmmm, that is just a difference in how the two panels were coded to work... and if your playlist had multiple albums in it how would the albumart panel know which artwork to display...? just wondering since that seems like it would be an issue with both of these panels if your expected bahavior was implemented...
Title: foo_uie_trackinfo
Post by: machekku on 2006-06-14 16:29:12
When I change playlists, every playlist "remembers" its selected item. Even if I turn foobar off and run it again, every playlist remembers its selected item.
And if I create new playlist (which cannot have any item selected, of course) album art displays nothing, but track info keeps displaying item from previous playlist.
Title: foo_uie_trackinfo
Post by: rosshmusic on 2006-06-14 16:41:35
remembering the selected item is an "inactive" selection which is why trackinfo doesn't update...

maybe if trackinfo used:
Playlist > selection (inactive or active) when in "follow cursor" mode would fit your needs... and I would call that a feature request rather then a bug...
Title: foo_uie_trackinfo
Post by: machekku on 2006-06-14 16:53:51
I'd say it is a bit like a bug, because even playing the "inactive" track after changing the playlist does not trigger update for me.

But ok, let's say I have a request for a more-like-albumart mode.
Title: foo_uie_trackinfo
Post by: rosshmusic on 2006-06-14 17:24:36
if I'm understanding you correctly, mine works fine in that example...

I'm playing some track (trackinfo panel in follow cursor mode)... I click on a different playlist in my playlist switcher window... when I click on that track to play it my trackinfo panel updates with that track information... am I not following you or is yours behaving differently then mine...?
Title: foo_uie_trackinfo
Post by: machekku on 2006-06-14 22:55:59
Try clicking on the already selected (but - as you say - "inactive") track. Or click "play" button. Then it does not work for me.

So if (for some funny reason) I have a playlist with just one item, I'm really unable to display it in trackinfo panel.

Hmm.. I'm using version 0.8. Maybe there is a newer one?
Title: foo_uie_trackinfo
Post by: Squeller on 2006-06-15 12:23:29
Bug report: It seems that changing a playlist does not trigger update (in follow cursor mode).

Yep, this has already been reported. The misbehaviour in follow cursor mode unfortunately appeared with the latest verison. Before it has always been as you expected and as it was good.
There was no higher will behind the change, no new concept, this is probably simply a programmers mistake.

On one computer I change playlists with a remote control (keyboard shortcuts), I always have to press arrow keys or whatever to make the track info panel refresh.

Most likely the error is somewhere in foo_uie_trackinfo.cpp in void uie_trackinfo::on_item_focus_change, but I cannot tell exactly. I'm not into c and pointers...

EDIT: typo
Title: foo_uie_trackinfo
Post by: rosshmusic on 2006-06-15 14:30:10
thanks for clarifying that...
Title: foo_uie_trackinfo
Post by: Alex_v_g on 2006-06-15 15:22:21
hi !
I find that this plugin eat with period - every seconds up to 25% of my processor's power and even in pauses . When foobar run without this plugin - only 3% when playing and 0% when pause(of course).
And my computer is Pentium4 - so it's not weak.

So the question - Can the author to decrease the appetite of the plugin OR include some checking procedure - if the foobar is paused and sit in the sistem tray - to not run the procedure of updating the plugin.
because I working with very CPU consumptiong program and I think that it isn't right that plugin even without playing the music and opening foobar consump the CPU power.

Anyway-it's a really good plugin - thank's to author !!!!!!!!!!!!
Title: foo_uie_trackinfo
Post by: rosshmusic on 2006-06-15 16:05:51
I noticed this when I was first using this plugin... I'm not sure exactly what it means, but I was told to change the settings I've circled on the attatched image... I haven't had a problem since... try it and see if it helps your situation...

settings to change are:
Scroll speed (ms): 50000
Scroll steps: 1

here is a screen capture of mine:
trackinfo settings image (http://inthejourney.com/temp/trackinfo.PNG)
Title: foo_uie_trackinfo
Post by: Alex_v_g on 2006-06-16 07:10:15
ohhh - thanks ! It really works !
now in pauses - 0% CPU ! Cool !
Title: foo_uie_trackinfo
Post by: machekku on 2006-06-16 23:09:04
Most likely the error is somewhere in foo_uie_trackinfo.cpp in void uie_trackinfo::on_item_focus_change, but I cannot tell exactly. I'm not into c and pointers...
I took a look at the code, and at album art's code. It seems that foo_uie_albumart has additional handlers for actions like playlist changed, but also adding/removing items in current playlist. I guess it could be a good idea to put this code in separate file and share between plugins.
Anyway, for starters I tried implementing playlist change handler. I (think I) did it, but then noticed that Visual Studio 2003 is not enough to compile, and I can't really upgrade to 2005 now...
So if someone has VS2005 and too much free time, this patch should work (but there may be some "spelling" mistakes - I had no chance to check):
Code: [Select]
diff -x ps.diff -u ..\src_trackinfo.orig/foo_uie_trackinfo.cpp ./foo_uie_trackinfo.cpp
--- ..\src_trackinfo.orig/foo_uie_trackinfo.cpp 2006-05-03 17:21:32.000000000 +0200
+++ ./foo_uie_trackinfo.cpp 2006-06-16 23:48:21.656250000 +0200
@@ -485,7 +485,7 @@
 
  static_api_ptr_t<play_callback_manager>()->register_callback(this, flag_on_playback_new_track|
  flag_on_playback_stop|flag_on_playback_pause|flag_on_playback_dynamic_info_track|flag_on_playback_ti
me, true);
- static_api_ptr_t<playlist_manager>()->register_callback(this, flag_on_item_focus_change);
+ static_api_ptr_t<playlist_manager>()->register_callback(this, flag_on_item_focus_change|flag_on_playlist_switch);
 
  // Can't just call reset_scroll_timer here, dialog is not set yet. :/
  scroll_pos = -1.0;
@@ -684,6 +684,26 @@
  }
 }
 
+void uie_trackinfo::on_playlist_switch()
+{
+ static_api_ptr_t<playlist_manager> t;
+ t_size focus_track = t->activeplaylist_get_focus_item();
+ if (focus_track == infinite)
+ focus_track = 0;
+
+ metadb_handle_ptr f;
+ if (t->activeplaylist_get_item_handle(f, focus_track))
+ {
+ set_handle(focused,f);
+        if (config.displaymode == DISPLAYMODE_FOCUSED)
+ {
+ display_top = 0;
+ reset_scroll_timer();
+ redraw();
+ }
+ }
+}
+
 void uie_trackinfo::on_playback_new_track(metadb_handle_ptr p_track)
 {
  set_handle(now_playing,p_track);
diff -x ps.diff -u ..\src_trackinfo.orig/foo_uie_trackinfo.h ./foo_uie_trackinfo.h
--- ..\src_trackinfo.orig/foo_uie_trackinfo.h 2006-04-29 22:35:28.000000000 +0200
+++ ./foo_uie_trackinfo.h 2006-06-16 00:03:55.609375000 +0200
@@ -145,7 +145,7 @@
  virtual void on_items_modified_fromplayback(const bit_array & p_mask,play_control::t_display_level p_level) {}
  virtual void on_items_replaced(const bit_array & p_mask,const pfc::list_base_const_t<playlist_callback::t_on_items_replaced_entry> & p_data) {}
  virtual void on_item_ensure_visible(t_size p_idx) {}
- virtual void on_playlist_switch() {}
+ virtual void on_playlist_switch();
  virtual void on_playlist_renamed(const char * p_new_name,t_size p_new_name_len) {}
  virtual void on_playlist_locked(bool p_locked) {}
  virtual void on_default_format_changed() {}
Title: foo_uie_trackinfo
Post by: HiFiRE on 2006-06-17 09:35:48
I can't get alignment to work. What's wrong with this code:

Code: [Select]
$char(1)Rb9afaf%artist% 000000 // b9afaf%album%000000 // b9afaf%title%$char(10)
Title: foo_uie_trackinfo
Post by: kockroach on 2006-06-17 13:34:22
I can't get alignment to work. What's wrong with this code:

Code: [Select]
$char(1)Rb9afaf%artist% 000000 // b9afaf%album%000000 // b9afaf%title%$char(10)

Use $tab() instead of $char(1)R
Title: foo_uie_trackinfo
Post by: ww2 on 2006-06-17 22:55:31
I'm sorry if this has been answered before, but I hope you can help me with this:

I have a Track info panel displaying %artist% followed by %title% and %album% tags. When foobar starts, since there's nothing being played, Track info shows only a question mark ("?") in place of the unavailable tags, or a custom text when I use $if2(%album%,Custom text) instead of just %album%, for instance.

I know this isn't really critical, but would it be possible to have Track info show the artist, title and album of the last played song? How?
Title: foo_uie_trackinfo
Post by: acedriver on 2006-06-18 06:32:44
ww2, use [%artist%] instead of %artist%. foobar will not show the tag if it's not available. Works with any tag.
Title: foo_uie_trackinfo
Post by: ww2 on 2006-06-18 19:28:15
ww2, use [%artist%] instead of %artist%. foobar will not show the tag if it's not available. Works with any tag.


Thanks acedriver, but that wasn't exactly what I meant. For showing nothing I could use $if2(%tag%,<blank_space>)... I just want to show the info relevant to the last played song...
Title: foo_uie_trackinfo
Post by: sunshine_man on 2006-06-18 19:47:37
maybe not quite in the place but, is there any variable that shows the play order (default,shuffle(tracks)....)? were should i look for it?
Title: foo_uie_trackinfo
Post by: PredUK on 2006-06-19 12:30:55
Can someone tell me what the syntax (right word? I mean the %artist% things) is for the following information (C&P from File Info Plugin) please?
Info:

encoding = lossy
channels = 2
extrainfo = VBR
mp3_stereo_mode = joint stereo
tagtype = id3v2|id3v1

EDIT:

ww2, I'd guess you'd have to either find a plugin that stores the last played song (and its information), or have someone make one yourself. That way you'd be able to call the information even when you've closed and reopened.
Title: foo_uie_trackinfo
Post by: kockroach on 2006-06-19 13:31:28
Can someone tell me what the syntax (right word? I mean the %artist% things) is for the following information (C&P from File Info Plugin) please?
Info:

encoding = lossy
channels = 2
extrainfo = VBR
mp3_stereo_mode = joint stereo
tagtype = id3v2|id3v1

You have the right phrases, you just need a double underscore "__" in front of the phrase.  So for encoding, it would be %__encoding%.
Title: foo_uie_trackinfo
Post by: PredUK on 2006-06-19 13:41:59
Thanks man.
Title: foo_uie_trackinfo
Post by: Ihmemies on 2006-06-20 20:23:53
An ability to show samplerate in KHz instead of Hz would be nice, in some distant future.

Since I didn't find any functions straight from http://wiki.hydrogenaudio.org/index.php?ti...ormat_Reference (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Titleformat_Reference) , I made this:

Code: [Select]
$div(%samplerate%,1000)','$div($mod(%samplerate%,1000),100)KHz


Because of the "I print only integrals" feature, that thing there calculates first the two numbers, and adds decimal (in case of 44,1KHz) after that

Now please tell me, that there is already a feature for this...
Title: foo_uie_trackinfo
Post by: kockroach on 2006-06-20 22:28:02
An ability to show samplerate in KHz instead of Hz would be nice, in some distant future.

Since I didn't find any functions straight from http://wiki.hydrogenaudio.org/index.php?ti...ormat_Reference (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Titleformat_Reference) , I made this:

Code: [Select]
$div(%samplerate%,1000)','$div($mod(%samplerate%,1000),100)KHz


Because of the "I print only integrals" feature, that thing there calculates first the two numbers, and adds decimal (in case of 44,1KHz) after that

Now please tell me, that there is already a feature for this...

This is the one that I use:
Code: [Select]
$if(%__samplerate%,$div(%__samplerate%,1000).$substr(%__samplerate%,3,3) KHz)


Still in 0.8.3 language but works for 0.9.2.
Title: foo_uie_trackinfo
Post by: Ihmemies on 2006-06-21 00:52:04
Heh, I forgot that it will print the ,0 with, for example, 96000Hz or 48000Hz signal too. I didn't want it, so I modified the script a bit further  Now it prints 96KHz or 48KHz etc. if the decimal afterwards would be 0.

Code: [Select]
$div(%samplerate%,1000)$ifequal($div($mod(%samplerate%,1000),100),0,,','$div($mod(%samplerate%,1000),100))KHz


At least I learn some basics of tagz when toying with this stuff.
Title: foo_uie_trackinfo
Post by: Yotsuya on 2006-06-22 17:01:54
You may want to change the ',' to just . because 44,1Khz doesnt make much sense but 44.1Khz does.

Code: [Select]
$div(%samplerate%,1000)$ifequal($div($mod(%samplerate%,1000),100),0,,.$div($mod(%samplerate%,1000),100))KHz
Title: foo_uie_trackinfo
Post by: kockroach on 2006-06-22 17:36:22
You may want to change the ',' to just . because 44,1Khz doesnt make much sense but 44.1Khz does.

That would depend on where Ihmemies is located.  Some areas of the world reverse the use of "." and "," where it comes to numbers.
Title: foo_uie_trackinfo
Post by: Infernus on 2006-06-28 10:59:06
is there a way to set the backgroundcolour via code?
Title: foo_uie_trackinfo
Post by: Lycox on 2006-06-28 11:36:10
is there a way to set the backgroundcolour via code?


No.
Title: foo_uie_trackinfo
Post by: Infernus on 2006-06-28 21:23:23
ok, another short question...
I want to display the actual Playlist-Tab-Name, but %playlist_name% doesn't work.
any solution?
Title: foo_uie_trackinfo
Post by: Generalverdacht on 2006-06-28 21:29:51
dont think this is actually possible. but never mind.
Title: foo_uie_trackinfo
Post by: Infernus on 2006-06-30 14:38:33
there is a little bug with "follow cursor mode" and "playlist-tabs".
When changing tabs, the trackinfo panel isn't updated automatically (like album-art-panel).
foobar 0.9.2
columns ui 0.1.3 beta 1v5
trackinfo panel 0.8 for fb0.9

can anyone confirme?
Title: foo_uie_trackinfo
Post by: Duble0Syx on 2006-06-30 16:33:08
there is a little bug with "follow cursor mode" and "playlist-tabs".
When changing tabs, the trackinfo panel isn't updated automatically (like album-art-panel).
foobar 0.9.2
columns ui 0.1.3 beta 1v5
trackinfo panel 0.8 for fb0.9

can anyone confirme?

Not sure if thats a bug or not, but I can confirm.  Funny thing I was just wondering about it myself.  Won't update after switching playlists until you change or select another track.
Title: foo_uie_trackinfo
Post by: widerock on 2006-07-01 05:25:12
I have one little question about trackinfo panel.

In track info panel, I want to see the infomation about the "Next song" in the playlist.

I tried to do this with %playlist_number% or %list_index%, etc.

But, it seems that it doesn't not work.

Any comments will be apprepreciated.
Title: foo_uie_trackinfo
Post by: metal_termite on 2006-07-03 23:34:12
With the comment tag displayed and word wrap on the cpu usage skyrockets, lagging foobar.

I read setting scroll steps to 1 will alleviate the problem but I found that only helps a little. It still lags foobars spectrum analyzer cyclically about every 4 seconds.
Title: foo_uie_trackinfo
Post by: pepoluan on 2006-07-04 00:06:10
To further press down on CPU time, make sure steps to 1 and scroll end delay to 50000.

If your trackinfo does not need to be updated regularly (i.e. no progress bar), you can also turn off the "Update every second" checkbox.
Title: foo_uie_trackinfo
Post by: staticwasabi on 2006-07-04 04:33:00
is there any way i can display all the information in caps?
Title: foo_uie_trackinfo
Post by: acedriver on 2006-07-04 04:35:32
is there any way i can display all the information in caps?

$upper(your formating string)
Title: foo_uie_trackinfo
Post by: staticwasabi on 2006-07-04 05:18:25

is there any way i can display all the information in caps?

$upper(your formating string)


thanks heaps
Title: foo_uie_trackinfo
Post by: Sebert on 2006-07-09 17:43:51
Track Info Panel seems to forget my configuration, it displays the one I
created but when i want to configure or edit it via Columns_UI/Layout
everything (Fontsize, formating string..) is reseted...
Title: foo_uie_trackinfo
Post by: Bachi-Bouzouk on 2006-07-10 15:49:22
I have read in the Wiki that a dropped mode existed:
http://wiki.hydrogenaudio.org/index.php?ti...ie_trackinfo%29 (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:0.9_Track_Info_Panel_%28foo_uie_trackinfo%29)

When is it activated and what is the purpose of this mode?
Title: foo_uie_trackinfo
Post by: spex04 on 2006-07-10 15:57:11
I have read in the Wiki that a dropped mode existed:
http://wiki.hydrogenaudio.org/index.php?ti...ie_trackinfo%29 (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:0.9_Track_Info_Panel_%28foo_uie_trackinfo%29)

When is it activated and what is the purpose of this mode?


It's when you drag a file over the track-info panel, I think.
Title: foo_uie_trackinfo
Post by: cyclönchen on 2006-07-12 00:57:00
Is there a way to tell the track info panel to get certain tags from the first item of the (active) playlist exclusively? What I want is an album part in the panel that updates as soon as tracks were sent to the playlist, for I want to see my album info before clicking on any particular track.
Title: foo_uie_trackinfo
Post by: PonasX on 2006-07-14 10:44:51
Is the way to change "Double Click" on TrackInfo function to change it's showing info ? I want to do this : TrackInfo shows "$num(%tracknumber%,2). %artist% - %title%" but after double click it changes to "%path%" ?
Title: foo_uie_trackinfo
Post by: 4nt1 on 2006-07-16 23:52:01
when oh when will track info have a save config option so we can save / load multiple configs like in columns ui

it simply makes sense and if a new version whipes our settings we simply have to reload the config files..
Title: foo_uie_trackinfo
Post by: pepoluan on 2006-07-17 15:07:13
I second that :-)

Even though I can backup the trackinfo tagz, it's a royal PITA to restore all the color, fonts, timing, etc. settings.
Title: foo_uie_trackinfo
Post by: tool++ on 2006-07-17 17:00:52
A lot more of foobar's settings could do with being exportable, continuing the trend. Layout, component settings, yadda yadda
Title: foo_uie_trackinfo
Post by: cvax on 2006-07-17 18:08:42
Is it possible to use the scrolling feature only on a certain portion of the trackinfo? Let us say I have a header that shows Artist-Title and Play Time on the same line. If the artist-title combination is too long it will push the Play Time onto the next line thus effectively breaking the style. If I set the Scroll feature on it will scroll the whole line including the Play Time. What I want to try doing is just being able to scroll the Artist-Title string and have the Play Time set in stone.

I know I can just make the Artist-Title string ellipse after a certain amount of characters, but then I won't be able to see the whole name of song. Thanks for any help.
Title: foo_uie_trackinfo
Post by: KouZ on 2006-07-19 00:49:34
Hi. I cannot get my Text centered or aligned right. The commands I expect to work simply have no effect on the output. the text always remains aligned left

I'm using foobar v0.9.3b1 with columnsUI 0.1.3b1v5 and uie_trackinfo v0.8.

The simple test code I'm using is
Code: [Select]
$char(1)C$if(%_trackinfo_notrack%,No track,%artist% - %title%
$char(10)Album: %album%)

Can enybody tell me my mistake?
Title: foo_uie_trackinfo
Post by: Frank Bicking on 2006-07-19 01:11:41
The commands to define the alignment have been changed to $tab().

Three lines:

Code: [Select]
$tab() right justify
$char(10) $tab() centered $tab()
$char(10) left justify

One line:

Code: [Select]
left justify $tab() centered $tab() right justify

(spaces are not necessary)
Title: foo_uie_trackinfo
Post by: cristina on 2006-07-28 04:00:07
hi. first post 
I really like this plugin. I´m using a nice code I found here, and works great, except for the playback statistics. It does not show the times played, or "last played on..."
I tried with some other codes and does not work either, so I assume that it´s the playcount component that fails. Can somebody point me to the good one? I saw there are two, official and unofficial, and I tried both but couldn't get the statistics to show right

any help?

by the way, this is the code, if someone can look it up and tell me if there's something wrong with the statistics part, I'd really appreciate it also

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,55)
$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(head)'o',$get(head)'-')
$get(info)$muldiv(%_time_elapsed_seconds%,100,%_length_seconds%)'%'$char(10)

thanks in advance. I'm loving foobar
Title: foo_uie_trackinfo
Post by: Squeller on 2006-07-28 08:06:47
[new user bashing snipped, mods please delete, sorry]
Title: foo_uie_trackinfo
Post by: Yotsuya on 2006-07-29 00:35:14
cristina:

I slapped your code into a trackinfo panel and it appears to be working for me with the exception of the play counter. Try using the official component (http://www.foobar2000.org/beta/components.html) and changing all instances of %play_counter% to %play_count% in your code.  To make things easier here is the modified code:

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,55)
$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_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),)
$get(head)$progress(%_time_elapsed_seconds%,%_time_total_seconds%,52,$get(head)'o',$get(head)'-')
$get(info)$muldiv(%_time_elapsed_seconds%,100,%_length_seconds%)'%'$char(10)
Title: foo_uie_trackinfo
Post by: M on 2006-07-29 16:48:52
Is it still possible to add Track Info to the toolbar? In a previous post (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=29363&view=findpost&p=253602) you said this could be accessed through "Preferences->Display->Columns UI->Other->List all toolbars," but in 0.9.2 I no longer have an "Other" tab. Am I just missing something obvious?

    - M.
Title: foo_uie_trackinfo
Post by: Yotsuya on 2006-07-29 16:54:14
I do not know of any way to embed a trackinfo panel into the foobar toolbar. You can, however, make your root splitter a vertical splitter then add a horizontal splitter as the first item. You can then add any toolbars or other panels such as trackinfo to that horizontal splitter. If you then disable the foobar toolbar the horizontal splitter you just created will appear to take it's place.  You can also place one at the bottom to replace the statusbar.

Edit: Type-O's
Title: foo_uie_trackinfo
Post by: Jaehong on 2006-07-30 14:20:57
These Track info source code occupy a lot of CPU Load.

Code: [Select]
$puts(LineWidth, 18)

$puts(Line_Col,$RGB(0,0,150))
$puts(Line_BGCol,$rgb(255,255,255))
$puts(Line_bgCol,$RGB(60,72,82))
$puts(Line_Col,$rgb(255,125,0))


// Seperator Line
$puts(Line_Col1,$blend($get(Line_Col),$get(Line_BGCol),20,100))
$puts(Line_Col2,$blend($get(Line_Col),$get(Line_BGCol),80,100))
$puts(PrintLIne,$transition($repeat($char(6),$get(LineWidth)),$get(Line_Col2),$get(Line_Col1))$transition($repeat($char(6),$get(LineWidth)),$get(Line_Col1),$get(Line_Col2))$char(10))



$get(PrintLine)
$get(PrintLine)
$get(PrintLine)
$get(PrintLine)
$get(PrintLine)
$get(PrintLine)
$get(PrintLine)
$get(PrintLine)
$get(PrintLine)

I don't understand why this code has problem.
If call $get(PrintLine) once then its CPU Load is small as normal.

[!--sizeo:1--][span style=\"font-size:8pt;line-height:100%\"][!--/sizeo--]Moderation: Changed [ code ] to [ codebox ] to preserve forum layout.[/size]
Title: foo_uie_trackinfo
Post by: cristina on 2006-07-30 17:08:07
cristina:

I slapped your code into a trackinfo panel and it appears to be working for me with the exception of the play counter. Try using the official component (http://www.foobar2000.org/beta/components.html) and changing all instances of %play_counter% to %play_count% in your code.  To make things easier here is the modified code:


it's working perfectly now. thanks so much youtsuya! very kind sir 
hopefully I will get enough skills soon to be able to fix these kind of things by myself...
Title: foo_uie_trackinfo
Post by: pepoluan on 2006-07-31 17:31:59
To mods: How about splitting this thread and moving all foo_uie_trackinfo_mod discussion to a new thread?
Title: foo_uie_trackinfo
Post by: foosion on 2006-07-31 18:07:10
To mods: How about splitting this thread and moving all foo_uie_trackinfo_mod discussion to a new thread?
Done, see here (http://www.hydrogenaudio.org/forums/index.php?showtopic=47044). I hope next time people are smart enough to start a new topic themselves.
Title: foo_uie_trackinfo
Post by: pepoluan on 2006-07-31 18:43:20
Ahahah thanks foosion. That was fast
Title: foo_uie_trackinfo
Post by: funKie on 2006-08-08 18:25:22
Well, I will probably get bashed for posting this here, but I was wondering..

a lot of people post their codes and stuff, but where am I supposed to paste that? o.O

I've been searchin' through Foobar and have found nothing that can help me;(.

Any help here would be awesome, thanks.


Edit: after more than 1 hour of trying, and like 15mins after I posted this I found out.

Sorry >.<
Title: foo_uie_trackinfo
Post by: Stuart60611 on 2006-08-08 18:54:45
Well, I will probably get bashed for posting this here, but I was wondering..

a lot of people post their codes and stuff, but where am I supposed to paste that? o.O

I've been searchin' through Foobar and have found nothing that can help me;(.

Any help here would be awesome, thanks.


Edit: after more than 1 hour of trying, and like 15mins after I posted this I found out.

Sorry >.<


You need to add an instance of the track info panel via the layout configuration menu of foobar.  After doing so, right click the resulting track info panel and select settings.  At the bottom of the screen for configuration of the track info panel you paste your desired track info code.  I hope this helps.
Title: foo_uie_trackinfo
Post by: Dead G on 2006-08-11 20:40:38
How can i put in the info track panel, the url from the URL tag field, and maybe so i can click on it and open it in the web browser? All my mp3s have the URL tag field written with a web address...
Title: foo_uie_trackinfo
Post by: roentgen on 2006-08-11 20:52:33
How can i put in the info track panel, the url from the URL tag field, and maybe so i can click on it and open it in the web browser? All my mp3s have the URL tag field written with a web address...

Although you may put it in there I don't think trackinfo panel supports such actions (as opening hyperlinks). As an alternate solution: try foo_run
Title: foo_uie_trackinfo
Post by: jayzer on 2006-08-11 23:06:22
I was just thinking today as I started to build a new foobar layout, "I don't like having my album art and track info in different panels."

Is there a way we could build a plugin with rudimentary html support? Or some way to integrate image support into the trackinfo plugin?
Title: foo_uie_trackinfo
Post by: Yotsuya on 2006-08-12 01:40:42
According to this (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=39924&view=findpost&p=402842) post, gfngfgf is already looking into adding support for URL sources to foo_uie_albumart (http://www.hydrogenaudio.org/forums/index.php?showtopic=39924).

According to this (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=47044&view=findpost&p=417183) post, terrestrial is working on adding images to foo_uie_trackinfo_mod (http://www.hydrogenaudio.org/forums/index.php?showtopic=47044).

Please search the forum before posting.
Title: foo_uie_trackinfo
Post by: jayzer on 2006-08-12 06:47:59
Please search the forum before posting.


Thanks for the info.

In my experience, the search function is relatively useless, as any search seems to pull up the entire forum as results.
Title: foo_uie_trackinfo
Post by: zytozid on 2006-08-13 18:28:17
hey,
today i updated foobar from 0.9.3 to 0.9.3.1 and also updated some components, e.g. foo_columns_ui (from 0.1.3 pre-alpha 17v6 to 0.1.3 beta 1v5 so i had to configure the layout all over again..) and foo_uie_trackinfo (from version 0.5 to 0.8). and with this trackinfo something seems to be wrong, cuz my taskman is saying foobar needs from approximately 5% (that should be normal) to more than 70% of cpu usage! its rising and falling from one to the other second all the time.
i know that trackinfo is causing this high usage, because i made tests with every single plugin..
when trackinfo is loaded it doesn't matter what the formatting string is saying, even if its empty or the trackinfo panel is hidden, i experience this high cpu usage.
the only solution for me is to remove the panel (or to remove the foo_uie_trackinfo.dll that would give the same effect )

has anyone experienced the same or similiar high(er) cpu usage with the latest foobar configuration?
or does anyone have a clue what could make foobar eat so much cpu ressources?

thanks for any help!
Title: foo_uie_trackinfo
Post by: PiezoTransducer on 2006-08-13 18:46:21
I noticed you are running foo_uie_trackinfo.dll. Which one are you using? The main version of that component has a known bug with scrolling text that causes CPU spikes. Try removing the component to see if it resolves your issue. If so, you should either update to one of the newer variants or search the forum for what settings to use to minimize the affects of the bug. If I remember correctly the desired settings were something like 50000,1,2000 on the right side of the config box. I personally switched to foo_uie_trackinfo_mod.dll

I also noticed you are using the albumart and prettypop components.. does the cpu spike occur only when you change tracks? If so you might want to narrow the scope of your sources lists.

There are many things that can cause cpu spiking. Try removing your components one by one and see if you can figure out which one is causing the problem.


Hey. Many people have had problems with foo_ui_trackinfo. the foobar wiki provides the solution (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Increasing_Performance)

Quote
Track Info Panel (foo_ui_trackinfo)

    * set Scroll Steps to 1
    * set Scroll end delay (ms) to 50000 (this is the max)



To further press down on CPU time, make sure steps to 1 and scroll end delay to 50000.

If your trackinfo does not need to be updated regularly (i.e. no progress bar), you can also turn off the "Update every second" checkbox.


Last I heard, the recommendation for trackinfo was to use the following settings (taken from the wiki's Increasing Performance (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Increasing_Performance) page):

Quote

set Scroll Steps to 1
set Scroll end delay (ms) to 50000 (this is the max)



I noticed this when I was first using this plugin... I'm not sure exactly what it means, but I was told to change the settings I've circled on the attatched image... I haven't had a problem since... try it and see if it helps your situation...

settings to change are:
Scroll speed (ms): 50000
Scroll steps: 1

here is a screen capture of mine:
trackinfo settings image (http://inthejourney.com/temp/trackinfo.PNG)


Most likely trackinfo is the culprit.  Do the following to every trackinfo instances you have.

Scroll steps -> 1
Scroll speed/scroll delay -> 50000 ms


etc...
Title: foo_uie_trackinfo
Post by: obsessor on 2006-08-16 20:40:37
hey...
sorry for my ultra newbie question, but..
how to paste these trackinfo codes to my foobar ?
it doesn't work ! 

(http://img73.imageshack.us/img73/8527/shittyom5.th.jpg) (http://img73.imageshack.us/my.php?image=shittyom5.jpg)
Title: foo_uie_trackinfo
Post by: Yotsuya on 2006-08-17 15:19:09
obsesser: from your screen shot it appears your code got mangled during the copy/paste process. I would suspect the reason you are not seeing anything in the panel is that the mangled code is not being processed.  The givaway is the // characters which are used to comment out text. If you copy/paste that code properly it should begin something like this:

Code: [Select]
//_______________________
// CONFIGURE COLORS
//***********************
//BACKGROUND




On another note, I came accross another thread by Tanka (http://www.hydrogenaudio.org/forums/index.php?showtopic=47472) who appears to have released an updated version of foo_uie_trackinfo which claims to correct the memory leak errors as long as you do not use scrolling text.
Title: foo_uie_trackinfo
Post by: Lesmo16 on 2006-08-31 19:32:10
I'm just modifying my foobar to suite my personal needs.
Therefore I have to place several trackinfo panels next to each other, but it should look like one big panel.

I thought that could be done with the edge style: None.
But it doesn't work - there's a thin frame remaining around each panel. 

To show this, I prepared a "very special version" only for the screenshot below:

[a href="http://img475.imageshack.us/my.php?image=foobartrackinfononeac7.png" target="_blank"]
Title: foo_uie_trackinfo
Post by: ...Just Elliott on 2006-08-31 19:34:08
I'm just modifying my foobar to suite my personal needs.
Therefore I have to place several trackinfo panels next to each other, but it should look like one big panel.

I thought that could be done with the edge style: None.
But it doesn't work - there's a thin frame remaining around each panel. 

To show this, I prepared a "very special version" only for the screenshot below:

[a href="http://img475.imageshack.us/my.php?image=foobartrackinfononeac7.png" target="_blank"]

Windows' fault, can't be fixed.
Title: foo_uie_trackinfo
Post by: Lesmo16 on 2006-08-31 19:52:39
Windows' fault, can't be fixed.

Elliott, thanks for your quick reply ...  but ... that's too hard to believe.
Title: foo_uie_trackinfo
Post by: Yotsuya on 2006-08-31 20:16:05
Lesmo:

This is a known issue with ColumnsUI. The current v0.1.3beta v1.5 ColumnsUI places a thin border between all panels and many of us hope this is corrected in a future release. In the meantime you can either change the color for windows 3d objects and blend those borders into your style.. or given your implementation I would suggest trying foo_uie_trackinfo_mod and combining all your data into a single trackinfo panel by using $alignabs() functions.
Title: foo_uie_trackinfo
Post by: Lesmo16 on 2006-08-31 20:59:17
Yotsuya, thanks for your detailed information and suggestion! 


This is a known issue with ColumnsUI. The current v0.1.3beta v1.5 ColumnsUI places a thin border between all panels and many of us hope this is corrected in a future release.

IMHO that fix should have highest priority!


In the meantime you can either change the color for windows 3d objects and blend those borders into your style.. or given your implementation I would suggest trying foo_uie_trackinfo_mod and combining all your data into a single trackinfo panel by using $alignabs() functions.

I think changing the Windows colors only for one application doesn't seem to be the way to go.
Perhaps I'll try to use foo_uie_trackinfo_mod, although it isn't able to scroll too long strings.
Title: foo_uie_trackinfo
Post by: Yotsuya on 2006-08-31 21:14:22
There are ways to make the text scroll but it's rather complicated.  You basically grab either the system time or playback time and use that as an offset. Then use that offset with a $substr() function.  Search the forum I believe there are a few examples already posted.
Title: foo_uie_trackinfo
Post by: Landus on 2006-09-01 07:04:48
Uh. Where do I add these codes?
Title: foo_uie_trackinfo
Post by: Landus on 2006-09-01 16:20:28
An answer would be nice.
Title: foo_uie_trackinfo
Post by: RevivalofHonor on 2006-09-01 16:24:35
An answer would be nice.


Right-click the panel and select "Settings..."
Title: foo_uie_trackinfo
Post by: Landus on 2006-09-01 18:11:40
Right-clicked on everything and didn't come across any "Settings" option.
Title: foo_uie_trackinfo
Post by: pepoluan on 2006-09-01 18:41:26
Landis: have you added trackinfo into your layout?
Title: foo_uie_trackinfo
Post by: Landus on 2006-09-02 02:12:29
I added the plugin in my componets folder.

That's about it.
Title: foo_uie_trackinfo
Post by: RevivalofHonor on 2006-09-02 02:23:49
I added the plugin in my componets folder.

That's about it.


This site will probably help you more.

Tutorial (http://eolindel.free.fr/foobar0.9/UIcolumns.shtml)
Title: foo_uie_trackinfo
Post by: Landus on 2006-09-02 12:38:32

I added the plugin in my componets folder.

That's about it.


This site will probably help you more.

Tutorial (http://eolindel.free.fr/foobar0.9/UIcolumns.shtml)

It's going to take forever to read and understand but thanks. I'm already learning a bunch.
Title: foo_uie_trackinfo
Post by: qaturn on 2006-09-06 06:14:31
Well heres mines
(http://img97.imageshack.us/img97/5046/bgtinfo8lv.png)



I cant seem to get the Tech Info to come up 



Ok after breaking down the code piece by piece, I found the culprit
$transition($repeat($get(sepchar),$get(seplenA)),
should be:
$transition($repeat($get(sepchar),$get(seplenAA)),
Title: foo_uie_trackinfo
Post by: Bachi-Bouzouk on 2006-09-08 20:27:51
sorry, wrong topic, my bad
Title: foo_uie_trackinfo
Post by: livedead13 on 2006-09-14 02:34:09
is there a way to hide the Mode display?

thanks
Title: foo_uie_trackinfo
Post by: Yotsuya on 2006-09-14 06:49:29
Just delete the %_trackinfo_mode% portion of your formatting string.  Right click on the panel and select settings from the popup menu.
Title: foo_uie_trackinfo
Post by: livedead13 on 2006-09-14 17:10:44
Just delete the %_trackinfo_mode% portion of your formatting string.  Right click on the panel and select settings from the popup menu.

worked great! thank you.
Title: foo_uie_trackinfo
Post by: odyssey on 2006-09-27 06:11:26
Failed to load DLL: foo_uie_trackinfo.dll
Reason: This component is missing a required dependency, or was made for different version of foobar2000.

Why do I get this with almost every plugin I try? Can it be ignored in foobar or do I have to wait for a compiled foo_uie_trackinfo.dll for this "very new" (3 month) version 0.9.4 of foobar??
Title: foo_uie_trackinfo
Post by: acedriver on 2006-09-27 06:17:03
@odyssey

get it from this site: http://stephan.kochen.nl/proj/foobar2000.html (http://stephan.kochen.nl/proj/foobar2000.html)
Title: foo_uie_trackinfo
Post by: odyssey on 2006-09-27 06:36:59
get it from this site: http://stephan.kochen.nl/proj/foobar2000.html (http://stephan.kochen.nl/proj/foobar2000.html)

Thanks. I'm new to foobar, and while it seems to be VERY extensible the world of extentions are confusing
Title: foo_uie_trackinfo
Post by: Jaehong on 2006-10-02 20:59:59

get it from this site: http://stephan.kochen.nl/proj/foobar2000.html (http://stephan.kochen.nl/proj/foobar2000.html)

Thanks. I'm new to foobar, and while it seems to be VERY extensible the world of extentions are confusing


Don't you have any problem with that stephan's trackinfo component ?

When I use it, it takes lot of CPU load.
it happens just loading.
Title: foo_uie_trackinfo
Post by: wrstarr on 2006-10-15 06:44:03
I have a question. My code to correctly display CBR or VBR isn't working anymore (not entirely sure when it stopped, but with one of the updates to foobar). It always shows CBR now, instead of showing VBR when it should be.

Here's what I had...
Code: [Select]
$get(head)Quality: $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)


Any help is appretiated.
Title: foo_uie_trackinfo
Post by: Yotsuya on 2006-10-15 06:52:24
wrstarr:

$info(extrainfo) was crippled a few versions ago. instead try using $info(codec_profile) like this:

$if($strstr($lower($info(codec_profile)),vbr),VBR,CBR)

Though it doesnt seem to work for everything, if anyone else has a better suggestion please post.
Title: foo_uie_trackinfo
Post by: acedriver on 2006-10-15 08:03:21
I use this

$if($strstr($lower($info(codec_profile)),vbr),VBR,%codec_profile%)
Title: foo_uie_trackinfo
Post by: mobyduck on 2006-10-15 08:28:41
I use this

$if($strstr($lower($info(codec_profile)),vbr),VBR,%codec_profile%)
%codec_profile% alone should be enough, or am I missing something?

Alessandro
Title: foo_uie_trackinfo
Post by: Russell777 on 2006-10-15 08:31:31
I use this

$if($strstr($lower($info(codec_profile)),vbr),VBR,%codec_profile%)
%codec_profile% alone should be enough, or am I missing something?

Alessandro

Only mp3's have that field,other formats don't have it,so it should be enough only for mp3's for other formats you'll need to figure it out.
Title: foo_uie_trackinfo
Post by: mobyduck on 2006-10-15 08:47:34
Russel,

thank you for your answer.

Indeed I'm only using MP3s, but that formula doesn't seem to me sufficient/appropriate for all other formats. What do you think?

Alessandro
Title: foo_uie_trackinfo
Post by: acedriver on 2006-10-15 09:23:42

I use this

$if($strstr($lower($info(codec_profile)),vbr),VBR,%codec_profile%)
%codec_profile% alone should be enough, or am I missing something?

Alessandro

Only mp3's have that field,other formats don't have it,so it should be enough only for mp3's for other formats you'll need to figure it out.

musepack has it too
Title: foo_uie_trackinfo
Post by: Russell777 on 2006-10-15 09:47:35
musepack has it too


Right,but it only states the encoding quality.
Title: foo_uie_trackinfo
Post by: wrstarr on 2006-10-15 16:26:53
Thank you for all the quick responeses.. the suggestions work great
Title: foo_uie_trackinfo
Post by: gdr on 2006-10-17 21:07:24
Is it possible to add an option to enable scroll bar?
Title: foo_uie_trackinfo
Post by: topdownjimmy on 2006-12-08 14:35:27
Does anybody know if this is still being developed?
Title: foo_uie_trackinfo
Post by: 2Pacalypse on 2006-12-08 14:38:16
not sure but check out track info mod:
http://www.hydrogenaudio.org/forums/index....showtopic=47044 (http://www.hydrogenaudio.org/forums/index.php?showtopic=47044)

its basically the same but much more advanced with colours images etc etc
Title: foo_uie_trackinfo
Post by: Hammered on 2007-02-16 20:03:13
Hello Guys.What code is it if i want to display in my track info panel the album full length,not only the track played and remaining length?
Title: foo_uie_trackinfo
Post by: Tigerix on 2007-04-16 02:02:04
You should ask Phi before you release that, you know.

Here's my current one:



Thanks in advance.
Title: foo_uie_trackinfo
Post by: Johncan on 2007-04-29 21:47:02
I like the sample shown in Post #478.  However, I am not a coder and can't figure out any of the coding.  I cut and pasted the code and it shows up the way it should in the Track Info Mod box.  However, I can't get the progress bar to change or length of song remaining to change.  All the items that are suppose to change as the song progresses remain static.  How do I fix this?

Please forgive my ignorance.

John
Title: foo_uie_trackinfo
Post by: cristox on 2007-04-30 20:51:30
Forget it...
Wrong forum...
Good move for my first post here i think. 
Title: foo_uie_trackinfo
Post by: zmur on 2007-06-14 19:29:57
i need help 

i use this code 

Code: [Select]
$if(%_trackinfo_notrack%,$char(10)$tab()no track,
$upper([%artist% $rgb(128,128,128)/ ]$rgb(52,101,164)
$if($and($strstr(%genre%,Classical),$not($strcmp(%album%,%title%))),
[%album%: ]
$select(%tracknumber%,I,II,III,IV,V,VI,VII,VIII,IX,X,XI,XII,XIII,XIV,XV,XVI,XVII,XVIII,XIX,XX,XXI,XXII,XXIII,XXIV,XXV,XXV
I,XXVII,XXVIII,XXIX,XXX).
)
[%title%])
$tab()
[- %playback_time_remaining% / ][%length%]$char(10)
$rgb(185,185,185)$if2([%performer%],[])$tab()
$rgb(70,70,70)[%codec% ][%bitrate% Kb/s ])


i don't need the part showing codec & bitrate anymore, can somebody please  remove it ?

thanks
Title: foo_uie_trackinfo
Post by: GrandInquisitor on 2007-06-15 04:46:00
uh, just delete the last line?  up to the ) ?
Title: foo_uie_trackinfo
Post by: zmur on 2007-06-15 13:12:07
i already tried that, after i do that everything disappears ...
Title: foo_uie_trackinfo
Post by: shakey_snake on 2007-06-15 13:44:24
i need help 
i don't need the part showing codec & bitrate anymore, can somebody please  remove it


Code: [Select]
$if(%_trackinfo_notrack%,$char(10)$tab()no track,
$upper([%artist% $rgb(128,128,128)/ ]$rgb(52,101,164)
$if($and($strstr(%genre%,Classical),$not($strcmp(%album%,%title%))),
[%album%: ]
$select(%tracknumber%,I,II,III,IV,V,VI,VII,VIII,IX,X,XI,XII,XIII,XIV,XV,XVI,XVII,XVIII,XIX,XX,XXI,XXII,XXIII,XXIV,XXV,XXV
I,XXVII,XXVIII,XXIX,XXX).
)
[%title%])
$tab()
[- %playback_time_remaining% / ][%length%]$char(10)
$rgb(185,185,185)$if2([%performer%],[])$tab()
$rgb(70,70,70))
Title: foo_uie_trackinfo
Post by: zmur on 2007-06-15 15:48:46
thank you sooo much shakey snake 

Title: foo_uie_trackinfo
Post by: SmilerSmiles on 2007-06-15 18:47:34
Don't know if this is the right place but here goes....
I'm trying to have a frame surround my album art. I have it working for when the window is maximised but if i restore the window the alb art shrinks with a awful border of nothing around it. I will post the code but it's off at the moment because every time I try to edit it now panels crashes. I have my window split in two with the track display on the left I want it in the centre of that.

Code: [Select]
$imageabs2($sub(%_width%,180),$sub(%_width%,180),,,,,$sub(%_width%,20),87,$getpvar(MyCoverPath),NOKEEPASPECT)
$imageabs2($sub(%_width%,20),$sub(%_width%,20),,,,,12,5,D:\Ohhh Two\black frame.png,NOKEEPASPECT)


How would i determine where the inside top left corner would be? <= that is what i really need to know.

Panels would crash when i would try to change $sub(%_width%,20) of the alb art line. I know one of you can help PLEASE.

[/font]
Title: foo_uie_trackinfo
Post by: shakey_snake on 2007-06-15 20:17:15
Don't know if this is the right place but here goes....
Your code has nothing to do with the plugin foo_uie_trackinfo

Your code applies to PanelsUI or the now defunct trackinfo_mod

So, If you need help you can create your own thread here in the 3rd Party Plugins section
Read the wiki (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components_0.9/Panels_UI_%28foo_ui_panels%29) if you haven't already.
Title: foo_uie_trackinfo
Post by: SmilerSmiles on 2007-06-16 01:20:54

Don't know if this is the right place but here goes....
Your code has nothing to do with the plugin foo_uie_trackinfo

Your code applies to PanelsUI or the now defunct trackinfo_mod

So, If you need help you can create your own thread here in the 3rd Party Plugins section
Read the wiki (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components_0.9/Panels_UI_%28foo_ui_panels%29) if you haven't already.


OK my bad sorry Ill go post it elsewhere. I have read the wiki, iread all the time just don't know which bit is wrong.
Title: foo_uie_trackinfo
Post by: chongy5 on 2007-09-29 12:36:51
The link to the dll is now dead. Is there a better way to display track info in a ColumnsUI config other than this, or a newer component that I am not aware of?

I know this is old, but I want the information like this screenshot of this old config by brumal:

http://img89.imageshack.us/my.php?image=br...81720064fo7.png (http://img89.imageshack.us/my.php?image=brumalscreenshot81720064fo7.png)

Cheers, I've tried to read the wikis but I don't quite understand them
Title: foo_uie_trackinfo
Post by: vlada on 2007-09-29 12:45:19
This component is now integrated in Panels UI, that's what you need.
Title: foo_uie_trackinfo
Post by: chongy5 on 2007-09-29 12:46:54
This component is now integrated in Panels UI, that's what you need.


Okay cheers, I had a feeling it was like that - is there any alternatives for ColumnsUI then, or is PanelsUI definitely the way to go? (With this whole terrestial situation I'm not too sure what to stick to, ColumnsUI seems safe at the moment!)

Thanks
Title: foo_uie_trackinfo
Post by: Purple Monkey on 2007-09-29 13:57:58
You don't have to set Panels as the UI, just install it and the "Track Display" and "Single Column Playlist" panels are available in Columns.
Title: foo_uie_trackinfo
Post by: chongy5 on 2007-09-29 14:00:09
You don't have to set Panels as the UI, just install it and the "Track Display" and "Single Column Playlist" panels are available in Columns.


Yeah, just seen this. Thanks for the help! Much appreciated.
Title: foo_uie_trackinfo
Post by: OnPoint on 2008-01-28 19:54:29
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.


How do you turn follow cursor off for this one?
Title: foo_uie_trackinfo
Post by: -Sacred- on 2008-02-21 01:27:06
hehe  i merged some of the codes posted here on this thread and made them work togther and i got this 
Code: [Select]
$select($add($mod($div(%playback_time_seconds%,10),2),1),// 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(80,80,80))

// Info Annotation Color (e.g. kbps is the annotation)
$puts(anno,$rgb(80,80,80))

// 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(80,80,80))
$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),)
$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)$progress2(%_time_elapsed_seconds%,%_time_total_seconds%,30,$get(info)'█',$get(head)'█')
$get(info)$muldiv(%_time_elapsed_seconds%,100,%_length_seconds%)'%'$char(10)

//Test
$puts(back_symbol,'● ')
$puts(back_color,C0C0C0)
$puts(fore_symbol,'● ')
$puts(fore_color,)
$puts(fragments,5)

$puts(time_total,$mul($sub($get(fragments),1),2))
$puts(time_mod,$mod(%playback_time_seconds%,$get(time_total)))

$if(%isplaying%,
$ifgreater($get(time_mod),$div($get(time_total),2),
$get(back_color)$repeat($get(back_symbol),$sub($get(time_total),$get(time_mod)))
$get(fore_color)$get(fore_symbol)
$get(back_color)$repeat($get(back_symbol),$add($sub($get(time_mod),$get(fragments)),1))
,
$get(back_color)$repeat($get(back_symbol),$get(time_mod))
$get(fore_color)$get(fore_symbol)
$get(back_color)$repeat($get(back_symbol),$sub($sub($get(fragments),1),$get(time_mod)))
),
)
//Test2
$select($add($mod($div(%playback_time_seconds%,5),2),1),%artist%,%album%)

//Test3

$blend(FFDA09|FFDA09,F909FF|F909FF,%playback_time_seconds%,10)
$select($add(1,$mod(%playback_time_seconds%,10)),
//●••••,•●•••,••●••,•••●•,••••●,•••●•,••●••,•●•••)
// '/////','\\\\','///','\\','/','\\','///','\\\\')
●••••,●●•••,●●●••,●●●●•,●●●●●,•●●●●,••●●●,•••●●,••••●,•••••)

//test4

$if($or(%_isplaying%,%_ispaused%),
$rgb(0,0,0)
$select($add(1,$mod(%_time_elapsed_seconds%,8)),←,↖,↑,↗,→,↘,↓,↙,)
)

//Test 5
$puts(Len,5)
$puts(PChar,•)
$puts(Cnt0,$mod(%_time_elapsed_seconds%,$add($get(Len),1)))

$puts(Phase,$add($div($mod(%_time_elapsed_seconds%,$mul($add($get(Len),1),2)),$mul($add($get(Len),1),1)),1))
$puts(Cycle1,$add($div($mod(%_time_elapsed_seconds%,$mul($add($get(Len),1),4)),$mul($add($get(Len),1),2)),1))
//from 1 to 7
$puts(Cycle2a,$add($div($mod(%_time_elapsed_seconds%,$mul($add($get(Len),1),28)),$mul($add($get(Len),1),4)),1))
$puts(Cycle2a,$add($get(Cycle2a),$select($get(Cycle1),0,1)))
$puts(Cycle2a,$ifgreater($get(Cycle2a),7,1,$get(Cycle2a)))
//from 1 to 6
$puts(Cycle2b,$add($div($mod(%_time_elapsed_seconds%,$mul($add($get(Len),1),24)),$mul($add($get(Len),1),4)),1))

$put(Cola,$select($get(Cycle2a)
,FFEBBF|FFEBBF
,4FA7FF|4FA7FF
,80FF80|80FF80
,FBAAFB|FBAAFB
,80FFFF|80FFFF
,FFD2D5|FFD2D5
,E1E1E1|E1E1E1
,FFFFFF|FFFFFF))
//$get(Cycle2a)

$put(Colb,$select($get(Cycle2b)
,E1E1E1|E1E1E1
,80FF80|80FF80
,FBAAFB|FBAAFB
,FFEBBF|FFEBBF
,80FFFF|80FFFF
,FFD2D5|FFD2D5
,4FA7FF|4FA7FF
,FFFFFF|FFFFFF))
//$get(Cycle2b)


//$puts(Colz,0000A0|008000)
$puts(Colz,006000|800000)
$puts(Col1,$select($get(Phase),$select($get(Cycle1),$get(Cola),$get(Colb)),$get(Colz)))
$puts(Col2a,$select($get(Phase),$get(Colz),$select($get(Cycle1),$get(Colb),$get(Cola))))
$puts(Col2b,$select($get(Phase),$get(Colz),$select($get(Cycle1),$get(Cola),$get(Colb))))


// Formatting
$if(%_isplaying%,$transition($repeat($get(PChar),$get(Cnt0)),$blend($get(Col1),$get(Col2a),$min($get(Cnt0),$sub($get(Len),1)),$get(Len)),$blend($get(Col1),$get(Col2a),1,$get(Len)))$get(Col1)$get(PChar)$transition($repeat($get(PChar),$sub($get(Len),$get(Cnt0))),$blend($get(Col1),$get(Col2b),1,$get(Len)),$blend($get(Col2b),$get(Col1),$max($get(Cnt0),1),$get(Len))),)



//Test 6
$if($or(%isplaying%,%ispaused%),
$select($add(1,$mod(%playback_time_seconds%,4)),$char(9835) ,$char(9835) $char(9835) ,$char(9835) $char(9835) $char(9835) ,$char(9835) $char(9835) $char(9835) $char(9835) ),
%playlist_number%)

//test 7

$rgb(80,80,80)$repeat($char(9679),%rating%)$repeat($char(9674),$sub(5,%rating%))$rgb(),
// !!!!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(80,80,80))

// Info Annotation Color (e.g. kbps is the annotation)
$puts(anno,$rgb(80,80,80))

// 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(80,80,80))
$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,'•')

// 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),)
)

It Should give u "2" views will switch between them every 10 seconds
1st view is >>
(http://img120.imageshack.us/img120/9997/10286006xe7.png)

2nd View is >>
(http://img103.imageshack.us/img103/6955/29436897gg8.png)
Title: foo_uie_trackinfo
Post by: Bobjua on 2008-03-05 22:33:18
$char(1)C is not working for centering.
Title: foo_uie_trackinfo
Post by: Dark_Angel on 2008-06-02 01:15:53
This component should be brought back, since now Panels UI is discontinued and since it is now unsupported, gives that nasty warning when starting up.

Having to add another complete UI plugin to foobar, unsupported and unmaintained just to have a panel to display some TAGZ seems a bit too much...
Title: foo_uie_trackinfo
Post by: blubbo on 2008-06-02 11:39:09
This component should be brought back, since now Panels UI is discontinued and since it is now unsupported, gives that nasty warning when starting up.

Having to add another complete UI plugin to foobar, unsupported and unmaintained just to have a panel to display some TAGZ seems a bit too much...


Version 0.8.1 (http://stephan.kochen.nl/proj/foo_uie_trackinfo/) works just fine.
Title: foo_uie_trackinfo
Post by: Dark_Angel on 2008-06-03 00:16:37

This component should be brought back, since now Panels UI is discontinued and since it is now unsupported, gives that nasty warning when starting up.

Having to add another complete UI plugin to foobar, unsupported and unmaintained just to have a panel to display some TAGZ seems a bit too much...


Version 0.8.1 (http://stephan.kochen.nl/proj/foo_uie_trackinfo/) works just fine.


Thank you, i checked the link available in the wiki:

http://stephan.kochen.nl/proj/foobar2000.html#trackinfo (http://stephan.kochen.nl/proj/foobar2000.html#trackinfo) and couln't find a download link 
Title: foo_uie_trackinfo
Post by: livedead13 on 2008-06-14 18:17:28
can anyone tell me how to write the format for bit depth?

i've tried using $info(bitspersample) as indicated HERE (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Titleformat_Reference), but it's not displaying anything.

thanks.
Title: foo_uie_trackinfo
Post by: Benji99 on 2008-06-16 09:51:27
I'm looking for something similar to this plugin that I can use with the Default UI as UI Element.

NOTE: I've tried foo_dockable_panels, while a neat idea, I'm really looking for for UI element that I would integrate within the Default UI, and especially, that I could have multiple tabbed elements.

Any suggestions?
Title: foo_uie_trackinfo
Post by: Hakubo on 2008-06-16 10:02:28
Any suggestions?
You can stop looking. Until public SDK with UI Elements specification is released, there will be no third-party UI Elements.
Title: foo_uie_trackinfo
Post by: Benji99 on 2008-06-16 10:15:36
Any suggestions?
You can stop looking. Until public SDK with UI Elements specification is released, there will be no third-party UI Elements.



Thanks for the reply, that would explain a few things.
However, if that's the case, how come the foo_facets plugin is compatible as an element for the Default UI?
Title: foo_uie_trackinfo
Post by: Hakubo on 2008-06-16 10:35:45
Facets is kind of semi-official component (the only one there is, AFAIK). Due to close interaction with core development, Frank Bicking has access to the closed part of SDK.
Title: foo_uie_trackinfo
Post by: livedead13 on 2008-06-16 16:16:52
can anyone tell me how to write the format for bit depth?

i've tried using $info(bitspersample) as indicated HERE (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Titleformat_Reference), but it's not displaying anything.

thanks.

anyone?
Title: foo_uie_trackinfo
Post by: shakey_snake on 2008-06-16 16:37:07

can anyone tell me how to write the format for bit depth?

i've tried using $info(bitspersample) as indicated HERE (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Titleformat_Reference), but it's not displaying anything.

thanks.

anyone?
I hope you're not trying to find the "bit depth" of lossy files. 
Title: foo_uie_trackinfo
Post by: livedead13 on 2008-06-16 17:01:02


can anyone tell me how to write the format for bit depth?

i've tried using $info(bitspersample) as indicated HERE (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Titleformat_Reference), but it's not displaying anything.

thanks.

anyone?
I hope you're not trying to find the "bit depth" of lossy files. 

i'm trying to emulate the properties window inside a track info panel, and it would be nice to display the bits per sample to distinguish 16-bit and 24-bit files.

so... is this possible?
Title: foo_uie_trackinfo
Post by: shakey_snake on 2008-06-16 17:06:04
With lossless files, yes.

By definition, Lossy files do not have bit depth.
Title: foo_uie_trackinfo
Post by: livedead13 on 2008-06-16 17:14:31
haha. i feel like an idiot. i was expecting to see 16-bit show up when playing an mp3 and just assumed the title format wasn't working.

i just played a couple lossless files and there it is. excellent.

thanks for pointing that out, shakey snake. apologies for being so dense.
Title: foo_uie_trackinfo
Post by: danny.d on 2008-06-20 10:40:47
Anyone knows how to blur the background color?

Also, is it possible to have different text font sizes, say bigger for the artist and smaller for the rest?

Thanks
Title: foo_uie_trackinfo
Post by: jgro on 2008-06-20 13:58:17
Anyone knows how to blur the background color?

Also, is it possible to have different text font sizes, say bigger for the artist and smaller for the rest?

Thanks



Here is what I'm using for some time now:

Code: [Select]
$drawrect(0,0,0,0,pencolor-null brushcolor-118-118-118)
$padding(2,4)$align(center,middle)

$font(,14,,225-225-225)
$if(%_trackinfo_notrack%,
    No Track
,

//// PAUSED
$align(left,bottom)

$char(10)
$font(@Arial Unicode MS,2,,118-118-118)....................

$font(,11, bold glow-250-178-120 glowexpand-1,25-55-45)$if(%_ispaused%,'< Paused >',)
////

$align(center,)

$char(10)$font(,4,,218-118-118).

$font(,1,,118-118-118)$char(10)

$iflonger(%album artist%,33,$font(,12,,231-231-235)[%album artist%],$font(,14,,231-231-235)[%album artist%])

$char(10)$font(,2,,218-118-118).
$char(10)

$iflonger(%album%,50,$font(,9,,229-229-232)[%album%],$font(,10,,229-229-232)[%album%])
$char(10)
$font(,6,,236-236-236)
? ? ?
//$char(10)
//$font(,1,,118-118-118)
//?
$char(10)
$iflonger(%title%,43,$font(,10,,242-198-130)[ %title% ],$font(,11,,242-198-130)[%title%])
))


// PerSecond

$font(@Arial Unicode MS,11,,236-236-239)

$align(center,bottom)[%playback_time_remaining% / %length%]


//$font(@Arial Unicode MS,11,,236-236-239)

$char(10)
$font(,2,,118-118-118).


cu
jgro
Title: foo_uie_trackinfo
Post by: danny.d on 2008-06-20 15:09:12
Hi jgro,

Thanks for the code.  Does this require panels ui?  Because I'm using the latest foobar version - which does not accept panels ui anymore, and I am trying to do font changes and background blur with foo_uie_trackinfo only...

EDIT:

I just stumbled upon trackinfo mod...  Sooo much stuff to keep track of...  Thanks again, jgro
Title: foo_uie_trackinfo
Post by: jgro on 2008-06-20 18:05:28
Hi jgro,

Thanks for the code.  Does this require panels ui?  Because I'm using the latest foobar version - which does not accept panels ui anymore, and I am trying to do font changes and background blur with foo_uie_trackinfo only...

EDIT:

I just stumbled upon trackinfo mod...  Sooo much stuff to keep track of...  Thanks again, jgro

jep, trackinfo mod 0.8.0 beta does it the same way in 0.9.5.3 as p*nels ui in pre-versions for me.
Btw., if you wonder, why I'm using

Code: [Select]
$char(10)
$font(,2,,118-118-118).

at the end: That is just a "dot" in background-color 118-118-118, so it is invisible. 
Depending on the fontsize (here: "2"), you can adjust the space between the displayed "%playback_time_remaining% / %length%" and bottom of the track info panel. 

Have a nice weekend 
jgro
Title: foo_uie_trackinfo
Post by: Falstaff on 2008-06-20 18:15:04
don't get confused with trackinfo panel and trackinfo_mod which are  different components.

this topic is for trackinfo panel only. 
Title: foo_uie_trackinfo
Post by: dutch109 on 2008-08-14 19:54:20
Hi,

Here is my script :

Code: [Select]
$tab()'[' Mode %_trackinfo_mode% ']'$tab()$crlf()$crlf()

$if(%_trackinfo_notrack%,$crlf()$crlf()No track,

$if($or($stricmp($info(codec),PCM),$stricmp($info(codec),CDDA)),$puts(isuncomp,1))

$puts(ratiocu,$muldiv(%bitrate%,100000,$mul(%samplerate%,$info(bitspersample),$info(channels))))

$if($meta_test(title),
$tab()808080______________ Tag ______________$tab()$crlf()
[Artist :  0000D9%artist%$crlf()]
[Album Artist :  0000D9$meta(album artist)$crlf()]
Title :  0000D9%title%$crlf()
[Track n° :  0000D9%tracknumber%[/%totaltracks%]$crlf()]
[Album :  0000D9%album%$crlf()]
[Disc n° :  0000D9%discnumber%[/%totaldiscs%] $crlf()]
[Date :  0000D9%date% $crlf()]
$crlf()
)

$tab()808080___________ File info ____________$tab()$crlf()
$if($stricmp($info(codec),CDDA),CD Audio,
File size :  0000D9$div(%_filesize%,1048576).$num($div($mul($mod(%_filesize%,1048576),100),1048576),2) MB$crlf()
Embedded cover :  0000D9$if($meta_test(ALBUMART),Yes,No)$crlf()
Full path :  0000D9%path%$crlf()
)

$crlf()$tab()808080___________ Tech info ___________$tab()$crlf()
Codec :  0000D9%codec%  '('$if($get(isuncomp),Uncompressed,$caps2($info(encoding)))')'$crlf()
[Codec settings :  0000D9$caps2(%codec_profile%)$crlf()]
[Encoder :  0000D9$info(tool)$crlf()]
Bitrate :  0000D9$info(bitrate) kb/s $if($and($stricmp($info(encoding),lossless),$not($get(isuncomp))),'('$get(ratiocu)'%)')$crlf()
[Tag type :  0000D9$caps2($replace($info(tagtype),'|',', '))$crlf()]
Length :  0000D9%length%$crlf()
Channels :  0000D9$info(channels) '('$caps2(%channels%)')'$crlf()
[Channel coupling :  0000D9$caps2($info(MP3_STEREO_MODE))$crlf()]
Sample rate :  0000D9%samplerate% Hz$crlf()
[Bits per sample :  0000D9$info(bitspersample)$crlf()]
$if($stricmp($info(encoding),lossless),MD5 :  0000D9$if($info(md5),Yes,No)$crlf())

$if($meta_test(MP3GAIN_UNDO),
$crlf()$tab()808080__________ MP3 Gain ___________$tab()$crlf()
Track min/max :  0000D9$meta(MP3GAIN_MINMAX)$crlf()
[Album min/max :  0000D9$meta(MP3GAIN_ALBUM_MINMAX)$crlf()]
Undo :  0000D9$meta(MP3GAIN_UNDO)$crlf()
)

$if(%replaygain_track_gain%,
$crlf()$tab()808080__________ Replay Gain__________$tab()$crlf()
[Track :  0000D9%replaygain_track_gain% '('peak : %replaygain_track_peak%')'$crlf()]
[Album :  0000D9%replaygain_album_gain% '('peak : %replaygain_album_peak%')'$crlf()]
)

)


I'm looking for a way to check if there is an embedded album art in the audio file, because what I did :
Code: [Select]
Embedded cover :  0000D9$if($meta_test(ALBUMART),Yes,No)

obviously don't work ... 

Any ideas ?
Title: foo_uie_trackinfo
Post by: navap on 2008-08-14 21:05:14
Mp3tag can display 3 values in regards to embedded covers:

Number of covers: %_covers%
Cover size: %_cover_size%
Mimetype: %_cover_mimetype%

Try that.


Edit: Looks like they are Mp3tag specific tags. Sorry.
Title: foo_uie_trackinfo
Post by: dutch109 on 2008-08-14 22:55:18
Looks like they are Mp3tag specific tags.

Yes, in the titleformat reference (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Titleformat_Reference), I found nothing about album art, so I guess what I'm looking for is something like $meta_test(NAME_OF_THE_TAG_FIELD). 
Title: foo_uie_trackinfo
Post by: mobyduck on 2008-10-20 11:09:47
Any plan for a 0.9.6 compatible version? Hopefully a compile against the latest SDK will suffice...

TIA.

Alessandro
Title: foo_uie_trackinfo
Post by: Zulithe on 2008-10-20 16:15:15
Any plan for a 0.9.6 compatible version? Hopefully a compile against the latest SDK will suffice...

TIA.

Alessandro

Yes please  Can't use Br3tt's columns UI themes (such as IBIZA) without this!!!
Title: foo_uie_trackinfo
Post by: elishnevsky on 2008-10-31 01:24:26
Can anyone recompile this plugin for foobar v0.9.6 beta 2 please?
Title: foo_uie_trackinfo
Post by: RavenSoft on 2008-11-01 07:36:13
http://theo.foobar2000.com.cn/projects/fb2...e_trackinfo.zip (http://theo.foobar2000.com.cn/projects/fb2k%2D0%5F9%5F6%2Dports/foo_uie_trackinfo.zip)

Credit to T.P Wang
Title: foo_uie_trackinfo
Post by: elishnevsky on 2008-11-01 16:15:59
http://theo.foobar2000.com.cn/projects/fb2...e_trackinfo.zip (http://theo.foobar2000.com.cn/projects/fb2k%2D0%5F9%5F6%2Dports/foo_uie_trackinfo.zip)

Credit to T.P Wang

Many thanks!!!
Title: foo_uie_trackinfo
Post by: pEar on 2009-01-12 21:12:37
pls help

need))
example

Civilization
Front Line Assembly
1:52/6:06 [if pause >] 1:52/6:06 (Paused)

3 line title

Domination (Unleashed)
(Remixed by Rhys
Fulber)
Front Line Assembly
1:52/6:06 [if pause >] 1:52/6:06 (Paused)
Title: foo_uie_trackinfo
Post by: chiwou on 2009-01-12 22:08:45
http://wiki.hydrogenaudio.org/index.php?ti...ie_trackinfo%29 (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components_0.9/Track_Info_Panel_%28foo_uie_trackinfo%29)
Title: foo_uie_trackinfo
Post by: velkrosmaak on 2009-01-22 16:55:13
Thanks for this fantastic panel! I wonder, do you have any plans for future releases? There's one thing I would absolutely love for foobar, and that is Last.fm artist info lookups. Your panel seems like the perfect place to display such a thing; what do you think? A lot of work? Too much work?
Title: foo_uie_trackinfo
Post by: shwick on 2009-01-31 17:34:03
I tried starting foobar2000 9.6.2 with the trackinfo compiled for 9.6.2 beta 2 and it worked but I couldn't find the settings to configure it.  I looked around, also in advanced -> tagging couldn't find where.

Ibiza also isn't working with this, it says track info not installed when I try to load the .fcl file.

I also tried with the latest track info, and when I started foobar it errored saying it wasn't configed properly.
Title: foo_uie_trackinfo
Post by: wojtek on 2009-08-23 13:11:50
I'v just installed windows7 x64 and run into truble with this component:
Quote
Failed to load DLL: foo_uie_trackinfo.dll
Reason: This component is not compatible with this version of Windows and needs to be recompiled with a newer version of the foobar2000 SDK; please contact the author of this component to obtain an updated version of this component.


I was working OK on XPsp3 x86...
Title: foo_uie_trackinfo
Post by: Remedial Sound on 2009-08-23 14:40:11
I'm pretty sure the "Item Details" panel (included by default with the latest versions of Columns UI) does everything this component used to do.  Perhaps you can try that instead?
Title: foo_uie_trackinfo
Post by: wojtek on 2009-08-23 20:24:13
Well, i've tried that but $tab() doesn't seem to work in "Item Details"
Title: foo_uie_trackinfo
Post by: Remedial Sound on 2009-08-24 09:45:51
Well, i've tried that but $tab() doesn't seem to work in "Item Details"

You're right, I guess I haven't noticed it before because I don't use tabs in my script.

Since development of foo_uie_trackinfo appears to be dead and the Item Details panel its de-facto replacement, maybe you could request that the developer of Columns UI (MusicMusic) add $tab() functionality in a future version.  The Columns UI discussion thread is here (http://www.hydrogenaudio.org/forums/index.php?showtopic=28647&view=getlastpost), and the developer is pretty accommodating of reasonable feature requests.
Title: foo_uie_trackinfo
Post by: wojtek on 2009-08-24 15:02:47
Quote
Since development of foo_uie_trackinfo appears to be dead and the Item Details panel its de-facto replacement, maybe you could request that the developer of Columns UI (MusicMusic) add $tab() functionality in a future version


AFAIR/AFAIK it's in the to-do list (;
For the moment i've used briliant $repeat( ,10) script xD tho it's not as flexible as $tab()
EOT on my part, thanks for refreshing my memory about Item Details panel!
Cheers