Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: foo_uie_trackinfo (Read 816884 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

foo_uie_trackinfo

Reply #125
Server seems fine now.

Temporary mirror here just in case they have some more work to do.

foo_uie_trackinfo

Reply #126
yeah,a good plugin,Thanks!
welcome to foobar2000 group of google :http://groups-beta.google.com/group/Foobar2000

foo_uie_trackinfo

Reply #127
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.

foo_uie_trackinfo

Reply #128
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]

foo_uie_trackinfo

Reply #129
Excellent! Thanks a lot

foo_uie_trackinfo

Reply #130
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

foo_uie_trackinfo

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

foo_uie_trackinfo

Reply #132
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...

foo_uie_trackinfo

Reply #133
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

foo_uie_trackinfo

Reply #134
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 ]

foo_uie_trackinfo

Reply #135
Thats awesome upnorth, simple yet very informative. Great job dude 
You're talking to my guy all wrong... It's the wrong tone. Say it again, and i'll stab you in the face with a soldering iron!

foo_uie_trackinfo

Reply #136
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...

foo_uie_trackinfo

Reply #137
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!

 

foo_uie_trackinfo

Reply #138
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

foo_uie_trackinfo

Reply #139
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

foo_uie_trackinfo

Reply #140
Yeah, that would be nice. I'll add it to the list.

foo_uie_trackinfo

Reply #141
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.

foo_uie_trackinfo

Reply #142
@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

foo_uie_trackinfo

Reply #143
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)
)
- FLAC/200GB external
- AAC 128 vbr/local
- iPod Nano 2G 8GB

foo_uie_trackinfo

Reply #144
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.... :-(

foo_uie_trackinfo

Reply #145
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

foo_uie_trackinfo

Reply #146
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

foo_uie_trackinfo

Reply #147
@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.

foo_uie_trackinfo

Reply #148
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. I've called it Foobar Neat.

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

foo_uie_trackinfo

Reply #149
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. I've called it Foobar Neat.

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.