Skip to main content
Topic: Foobar2000 format strings (Read 459364 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Foobar2000 format strings

Reply #50
put a tab in front of the length tag and put it at the end of your string, and it will always be on the right side of the playlist.

copy + paste this and replace yours with it:

Code: [Select]
[    %_length%]


edit: your talking about the 0.5 beta, right?
.

Foobar2000 format strings

Reply #51
Yeah I am! Beta 16 to be exact, shit to bad there isn't like a window size command, so you know how many characters wide the playlist is, then you can create a script with some math formulas that would auto resize itself dependeding on the size of the window!

Foobar2000 format strings

Reply #52
What would be better is to make parts take of a certain % of the playlist, that would then invlove allowing you to split the string into sections though, which would really be like virtual columns.

Anyway, copying and pasting that won't work because the forums don't seem to like tabs, its been replaced with a space. Since you can't press tab in the title formatting either, you'd have to do it in Notepad and copy + paste.
.

Foobar2000 format strings

Reply #53
Quote
Since you can't press tab in the title formatting either, you'd have to do it in Notepad and copy + paste.
ctrl + tab will/should work.
-------------------

my playlist for 0.5 beta 16:

$if(%_isplaying%,aa0000,5B5B5B)$padcut($if(%tracknumber%,%title% ,%_filename_ext% ),30) $if(%tracknumber%,5B5B5B$num(%tracknumber%,2),)$padcut($if(%artist%, - %artist%,),15) $if(%album%, - 5B5B5B/%album%/ ,)      *replaceme*    %_length%

where *replaceme* = ctrl + tab.
PANIC: CPU 1: Cache Error (unrecoverable - dcache data) Eframe = 0x90000000208cf3b8
NOTICE - cpu 0 didn't dump TLB, may be hung

Foobar2000 format strings

Reply #54
Quote
ctrl + tab will/should work.

thanks, that's quite useful 
.

Foobar2000 format strings

Reply #55
Playlist String

Quote
$ifgreater(%_isplaying%,0,00FFFF$num(%_playlist_number%,4). $if(%__replaygain_album_gain%,*,) $if(%artist%,%artist%,'Unknown Artist') - $if(%album%,%album%,'Unknown Album') - $if(%tracknumber%,'['$num(%tracknumber%,2)'] ',)- $if(%title%,%title%,%_filename%)[<TAB>%_length%],$num(%_playlist_number%,4). $if(%__replaygain_album_gain%,0000FF*,) $ifgreater($strstr($ext(%_filename_ext%),mpc),0,C4FFFF$if(%artist%,%artist%,'Unknown Artist') - $if(%album%,%album%,'Unknown Album') - $if(%tracknumber%,'['$num(%tracknumber%,2)'] ',)- $if(%title%,%title%,%_filename%),FFFFFF$if(%artist%,%artist%,'Unknown Artist') - $if(%album%,%album%,'Unknown Album') - $if(%tracknumber%,'['$num(%tracknumber%,2)'] ',)- $if(%title%,%title%,%_filename%))[<TAB>%_length%])


New format string....  detecting file format and showing mpc in different color.... detecting  playing song, detecting replaygain, etc.

Sort By... String

Quote
%ARTIST% - %ALBUM% - %_PATH% - $num(%TRACKNUMBER%,3)


http://www.bonustrack.net/images/foros/foobar-new.png

Font: Everson Mono Latin ( http://www.dafont.com/en/search.php?nq=1&q...Latin&Submit=Go )
Size: 8

Foobar Version: 0.53

sorry my english

Foobar2000 format strings

Reply #56
changed mine too, gave up with fixed-width fonts, now using trebuchet ms point 7 and pl string is:

Code: [Select]
c47F5e|ffAA80$ifgreater($len(%artist%),20,$cut(%artist%,18)..,%artist%) • $ifgreater($len(%title%),55,$cut(%title%,53)..,%title%)<TAB>c47F5e|ffAA80[$ifgreater($len(%album%),30,$cut(%album%,28)..,%album%)]


takes advantage of $len to use ".." if string too long, and title / artist and album is still clearly separated and it looks better too. replace <tab> with tab. prolly wont look right wid wrong bg colour.
.

Foobar2000 format strings

Reply #57
Quote
$puts(BYTE_RATE_COLOUR,$hex($puts(MIN_BYTE_RATE,96)$puts(MEAN_BYTE_RATE,192)$puts(MAX_BYTE_RATE,256)$ifgreater(%__bitrate%,$get(MAX_BYTE_RATE),32768,$ifgreater(%__bitrate%,$get(MEAN_BYTE_RATE),$sub(32896,$div($mul($sub(%__bitrate%,$get(MEAN_BYTE_RATE)),127),$sub($get(MAX_BYTE_RATE),$get(MEAN_BYTE_RATE)))),$ifgreater(%__bitrate%,$get(MIN_BYTE_RATE),$add(128,$mul($div($mul($sub(%__bitrate%,$get(MIN_BYTE_RATE)),127),$sub($get(MEAN_BYTE_RATE),$get(MIN_BYTE_RATE))),256)),128))),6))$get(BYTE_RATE_COLOUR)|$get(BYTE_RATE_COLOUR)$num(%_playlist_number%,3)$if(%__replaygain_album_gain%,000000'.',$if(%__replaygain_track_gain%,808080'.', )) $if(%_isplaying%,600060,202020)$padcut($caps2($if2(%artist%,$ifgreater($left(%_filename%,2),0,$if($strcmp($strchr(%_directoryname%,-),0),%_filename%,$cut(%_directoryname%,$sub($strchr(%_directoryname%,-),1))),$if($strcmp($strchr(%_filename%,-),0),%_filename%,$cut(%_filename%,$sub($strchr(%_filename%,-),1)))))),30) $if(%_isplaying%,4000B0,000060)$padcut($caps2($if2(%title%,$if($strcmp($strrchr(%_filename%,-),0),Unknown Title,$substr(%_filename%,$add(1,$strrchr(%_filename%,-)),$len(%_filename%))))),35) $if(%_isplaying%,208080,808040)$if(%tracknumber%,$num(%tracknumber%,2),$ifgreater($left(%_filename%,2),0,$num($cut(%_filename%,2),2),$ifgreater($cut($replace($substr(%_filename%,$add(1,$strchr(%_filename%,-)),$len(%_filename%)), ,),2),0,$num($cut($replace($substr(%_filename%,$add(1,$strchr(%_filename%,-)),$len(%_filename%)), ,),2),2),--))) $if(%_isplaying%,808000,004000)$puts(ALBUM,$pad($left($caps2($if2(%album%,$substr(%_directoryname%,$add(1,$strchr(%_directoryname%,-)),$len(%_directoryname%)))),$if(%date%,31,38))$if(%date%,' (',)$if(%_isplaying%,208080,808040)[%date%]$if(%date%,')',),50))$if($strcmp($cut($get(ALBUM),1), ),$substr($get(ALBUM),2,$len($get(ALBUM))),$get(ALBUM))[   $if(%_isplaying%,0000A0,)%_length% ]


All right it looks a little long and scary, but most of it is just guessing the artist, album, etc.. if the tag is missing.

The interesting part of this is the first part which defines a colour: $get(BYTE_RATE_COLOUR) which is continuously dependent on bitrate.
By changing the values of the *_BYTE_RATE variable you can adjust the scale to reflect your own prefference/file formats.
Also with a little work you should be able to shift the colours to the bright half of the spectum (for a dark background) or use the full spectum.

Looks best with a fixed-width font on a white background.

PS Has anyone been able to figure out a way to do recursion? I've come close a few times, but no luck yet.

EDIT: Screen Shot anyone?

Foobar2000 format strings

Reply #58
Here we go... here's my string...

Code: [Select]
$num(%_playlist_number%,4) 000000$if(%artist%,[$pad($cut(%artist%,25), 25) $pad($cut(%title%,40), 40) 808080$pad($cut(%album% ,35), 35) $if(%tracknumber%,C0C0C0#$num(%tracknumber%,2),'   ') 0080FF$pad_right(%_length%,5)],0000FFNOT TAGGED: "%_filename%_%_filename_ext%")


Playlist font: Andale Mono (8)
Playlist text color: #808080
Playlist background color: #E6ECEE
Playlist selection color: #C0C0C0
Selected item frame: #808080

(Screenshot)

Foobar2000 format strings

Reply #59
Quote
Here we go... here's my string...
(Screenshot)

First off: How'd you get that UI with the buttons and seekbar? Is there a plugin somewhere I'm missing out on?

And, here's my settings, which are meant to mimmic a program called "puTTY" which is an ssh shell for windows.
Code: [Select]
[$padcut(%artist%,20)] - [FF5555$padcut(%_directoryname%,20)] - [%title%][  - 00FF00%_length%]

Foobar2000 format strings

Reply #60
Code: [Select]
625122$num(%_playlist_number%,4) ' | ' $if(%title%,000000$padcut($if(%artist%,%artist%,),21)
 $if(%tracknumber%,$padcut(5C4736| $num(%tracknumber%,2) ,14),-   )
$padcut($if(%title%,5C4736| 9B5E3C%title%,),50) $if(%date%,$padcut(58513A
'['%date%']',18), '[    ]' ) $if(%album%,$padcut(5B5B5B$abbr(%album%,20),30),
$padcut('-   ',50)), $padcut(808080%_filename%BF408F,85)'NO TAGS FOUND!')  
$if(%comment%,%comment%,)[    %_length%]



Font: ProFont

screenshot

Foobar2000 format strings

Reply #61
Changed my foobar to more minimal style, like it better that way:

Code: [Select]
Playlist:
DBDBDB|CCCCCC$num(%_playlist_number%,4).$if(%mp3%,0000FF|0000FF,DBDBDB|CCCCCC)·$if(%__replaygain_track_gain%,DBDBDB|CCCCCC,0000FF|0000FF)· $if(%_isplaying%,0000FF|0000FF» ,)[535353|535353$abbr($if2(%performer%,%artist%),20) DBDBDB|DBDBDB- %title%] ['['%comment%']'] [    535353|535353%_length%]


NOTE: 1) I've got a %mp3% tag in every mp3PRO I have
2) I have a %performer% tag in every song from Various Artists' CD which indicates the performer, the %artist% tag in these songs is "Various Artists". With this kind of setup, I can have the Album list work well, as the Various Artists CDs don't mess it up.

Playlist font: ProFont (7)
Playlist text color: 219, 219, 219
Playlist background color: 0, 0, 0
Playlist selection color: 20, 20, 20
Selected item frame: 50, 50, 50

ScreenShot

Foobar2000 format strings

Reply #62
Code: [Select]
$if(%__replaygain_track_gain%,,0000FF'RG(0)')$if(%artist%,$pad(00FF00%artist%,$if(%__replaygain_track_gain%,38,33))$pad(800080'['$num(%tracknumber%,2)']  ',4)$pad(00FFFF%title%,42)A00000'['$if(%date%,%date%']',    ']')'   '408000%album%,$if(%tracknumber%,0000FF'CD TRACK  ['%tracknumber%']' ,$if(%__bitrate%,0000FF%_filename% '(No Tags)',0000FF'DEAD STREAM or UNINSERTED CD')))


Using at 800x600 res. Backround Black...Courier New is the font

Any non-replaygained track is listed as RG(0)

Simple setup...but works for me

Screenshot:
http://home.attbi.com/~billamral/2.PNG

Foobar2000 format strings

Reply #63
Code: [Select]
$if(%_isplaying%,FFFFFF$padcut($num(%_playlist_number%,4),4)$padcut(' ][ ',4)$padcut([%artist%],35)$padcut(' ][ ',4)$padcut([%album%],35)$padcut(' ][ ',4)$if(%tracknumber%,$padcut(-$num(%tracknumber%,2)-,5),'     ')$padcut($if(%title%,%title%,%_filename_ext%),45)$padcut(' ][ ',4)$pad(%__bitrate%kbps,7)$padcut(' ][ ',4) %_length%,FF8000|000000$padcut($num(%_playlist_number%,4),4)0080FF|000000$padcut(' ][ ',4)FF8000|000000$padcut([%artist%],35)0080FF|000000$padcut(' ][ ',4)FF8000|000000$padcut([%album%],35)0080FF|000000$padcut(' ][ ',4)FFCD9B|000000$if(%tracknumber%,$padcut(-$num(%tracknumber%,2)-,5),'     ')$padcut($if(%title%,%title%,%_filename_ext%),45)0080FF|000000$padcut(' ][ ',4)FF8000|000000$pad(%__bitrate%kbps,7)0080FF|000000$padcut(' ][ ',4)FF8000|000000[ %_length%])


Screenshot(1280x1024):

http://drds.free.fr/piti/foo4.JPG


Foobar2000 format strings

Reply #65
I also want to know how you got the UI to have the buttons and seekbar. Thanks in advance


Foobar2000 format strings

Reply #67
Quote
$puts(BYTE_RATE_COLOUR,$hex($puts(MIN_BYTE_RATE,96)$puts(MEAN_BYTE_RATE,192)$puts(MAX_BYTE_RATE,256)$ifgreater(%__bitrate%,$get(MAX_BYTE_RATE),32768,$ifgreater(%__bitrate%,$get(MEAN_BYTE_RATE),$sub(32896,$div($mul($sub(%__bitrate%,$get(MEAN_BYTE_RATE)),127),$sub($get(MAX_BYTE_RATE),$get(MEAN_BYTE_RATE)))),$ifgreater(%__bitrate%,$get(MIN_BYTE_RATE),$add(128,$mul($div($mul($sub(%__bitrate%,$get(MIN_BYTE_RATE)),127),$sub($get(MEAN_BYTE_RATE),$get(MIN_BYTE_RATE))),256)),128))),6))$get(BYTE_RATE_COLOUR)|$get(BYTE_RATE_COLOUR)$num(%_playlist_number%,3)$if(%__replaygain_album_gain%,000000'.',$if(%__replaygain_track_gain%,808080'.', )) $if(%_isplaying%,600060,202020)$padcut($caps2($if2(%artist%,$ifgreater($left(%_filename%,2),0,$if($strcmp($strchr(%_directoryname%,-),0),%_filename%,$cut(%_directoryname%,$sub($strchr(%_directoryname%,-),1))),$if($strcmp($strchr(%_filename%,-),0),%_filename%,$cut(%_filename%,$sub($strchr(%_filename%,-),1)))))),30) $if(%_isplaying%,4000B0,000060)$padcut($caps2($if2(%title%,$if($strcmp($strrchr(%_filename%,-),0),Unknown Title,$substr(%_filename%,$add(1,$strrchr(%_filename%,-)),$len(%_filename%))))),35) $if(%_isplaying%,208080,808040)$if(%tracknumber%,$num(%tracknumber%,2),$ifgreater($left(%_filename%,2),0,$num($cut(%_filename%,2),2),$ifgreater($cut($replace($substr(%_filename%,$add(1,$strchr(%_filename%,-)),$len(%_filename%)), ,),2),0,$num($cut($replace($substr(%_filename%,$add(1,$strchr(%_filename%,-)),$len(%_filename%)), ,),2),2),--))) $if(%_isplaying%,808000,004000)$puts(ALBUM,$pad($left($caps2($if2(%album%,$substr(%_directoryname%,$add(1,$strchr(%_directoryname%,-)),$len(%_directoryname%)))),$if(%date%,31,38))$if(%date%,' (',)$if(%_isplaying%,208080,808040)[%date%]$if(%date%,')',),50))$if($strcmp($cut($get(ALBUM),1), ),$substr($get(ALBUM),2,$len($get(ALBUM))),$get(ALBUM))[   $if(%_isplaying%,0000A0,)%_length% ]

Nice, but $put & $get was killed in 0.55 

Which has made my string stupidly long.. (not as much as yours though!):

Code: [Select]
c47F5e|ffAA80$ifgreater($len(%artist%),20,$cut(%artist%,18)..,%artist%) ▪ $ifgreater($len(%title%),55,$cut(%title%,53)..,%title%)<TAB>c47F5e|ffAA80$if(%album%,[$ifgreater($len(%album%),$sub(100,$len($ifgreater($len(%artist%),20,$cut(%artist%,18)..,%artist%)  $ifgreater($len(%title%),55,$cut(%title%,53)..,%title%))),$cut(%album%,$ifgreater($sub(100,$len($ifgreater($len(%artist%),20,$cut(%artist%,18)..,%artist%) ▪ $ifgreater($len(%title%),55,$cut(%title%,53)..,%title%))),40,39,$sub($sub(100,$len($ifgreater($len(%artist%),20,$cut(%artist%,18)..,%artist%) ▪ $ifgreater($len(%title%),55,$cut(%title%,53)..,%title%))),2)))..,%album%)],) <%_length%>


It basically resizes the album field (album is right aligned with length), depending on how long the "atrist - title" field is, and also putting ".." on any fields that are cut (the string is suited to the size i keep foobar). Im totally lost in parts of it now, i wont be changing it for a long time.. ▪ needs to be replaced with the character using character map (trebechut ms). This string is my substitution for colums/fixed width virtual columns, I find its got all the info i want, clearly separated, and not looking ugly either.

impulse/xamphear: those buttons where an "illegal" hack, they aren't allowed because they will cause foobar to mess up with new versions and such, as they do not use legal apis (as there arent any to do what they want, maybe with a future version who knows, but the ui was suposed to be seperated into a separate opensourced dll in a later version, so customised uis will be available when that happens.)
.

Foobar2000 format strings

Reply #68
ah, thanks for the explanation musicmusic

Foobar2000 format strings

Reply #69
Here's what I'm using, thanks to Bushwack's mega-script  .  I got rid of the puts and gets to work with .55.  Made to blend with the windows 2000/XP classic background



Code: [Select]
 $if(%_isplaying%,97FE5F,D6F8FE)$num(%_playlist_number%,3) $padcut($caps2($if2(%artist%,$ifgreater($left(%_filename%,2),0,$if($strcmp($strchr(%_directoryname%,-),0),%_filename%,$cut(%_directoryname%,$sub($strchr(%_directoryname%,-),1))),$if($strcmp($strchr(%_filename%,-),0),%_filename%,$cut(%_filename%,$sub($strchr(%_filename%,-),1)))))),30)$padcut($caps2($if2(%title%,$if($strcmp($strrchr(%_filename%,-),0),Unknown Title,$substr(%_filename%,$add(1,$strrchr(%_filename%,-)),$len(%_filename%))))),35) $if(%tracknumber%,$num(%tracknumber%,2),$ifgreater($left(%_filename%,2),0,$num($cut(%_filename%,2),2),$ifgreater($cut($replace($substr(%_filename%,$add(1,$strchr(%_filename%,-)),$len(%_filename%)), ,),2),0,$num($cut($replace($substr(%_filename%,$add(1,$strchr(%_filename%,-)),$len(%_filename%)), ,),2),2),--))) $if(%album%,[$ifgreater($len(%album%),$sub(100,$len($ifgreater($len(%artist%),20,$cut(%artist%,18)..,%artist%) 
$ifgreater($len(%title%),55,$cut(%title%,53)..,%title%))),$cut(%album%,$ifgreater($sub(100,$len($ifgreater($len(%artist%),20,$cut(%artist%,18)..,%artist%) $ifgreater($len(%title%),55,$cut(%title%,53)..,%title%))),40,39,$sub($sub(100,$len($ifgreater($len(%artist%),20,$cut(%artist%,18)..,%artist%) $ifgreater($len(%title%),55,$cut(%title%,53)..,%title%))),2)))..,%album%)],)$if(%date%,' (',)[%date%]$if(%date%,')',)<TAB> <%_length%>



Replace <TAB> (near end) with keyboard CTRL/TAB


Playlist font: Courier (8)
Playlist text color: 250, 233, 197
Playlist background color: 81, 124, 133
Playlist selection color: 250, 233, 197
Selected item frame: 0, 128, 255

Unselected non-playing tracks are shown as Cream (Playlist Color) on Teal Blue (Background)

Shows Now Playing in Red on Cream if selected and Bright Green on Teal Blue if not selected.

Selected, but not playing, shows as Black on Cream.

Columns shown are:

Playlist#___ Artist Name___Song Title___Album Track#___Album Name___Album Date___Track Time

All are justified for a neat display.


If someone can enhance it even more, please go for it and re-post
Master of Fate. By Fate Mastered

Foobar2000 format strings

Reply #70
Man, this stuff is so cool you can play around with it for hours!

I changed my colours to create a Borland Pascal IDE look-alike.

Playlist font: Lucida Console, 8pt
Playlist text color: 252,252,84 [span style='font-size:8pt;line-height:100%'](doesn't really matter since it's hardcoded in the playlist format string)[/span]
Playlist background color: 0,0,168
Playlist selection color: 0,168,168
Selected item frame: 192,192,192

Playlist formatting string (replace <TAB> with tab):

Quote
$if(%_isplaying%,FFFFFF|000000$padcut(%_playlist_number%,4),54FCFC|FFFFFF$padcut(%_playlist_number%,4)) A8A8A8|A8A8A8| $if(%_isplaying%,FFFFFF|000000$padcut($if(%artist%,%artist%,Unknown Artist),34),54FCFC|FFFFFF$padcut($if(%artist%,%artist%,Unknown Artist),34)) A8A8A8|A8A8A8| $if(%_isplaying%,FFFFFF|000000$padcut($if(%title%,%title%,%_filename_ext%),54),54FCFC|FFFFFF$padcut($if(%title%,%title%,%_filename_ext%),54)) A8A8A8|A8A8A8| $if(%_isplaying%,FFFFFF|000000$padcut([%album%],44),54FCFC|FFFFFF$padcut([%album%],44)) A8A8A8|A8A8A8| $if(%_isplaying%,FFFFFF|000000$padcut([%date%],4),54FCFC|FFFFFF$padcut([%date%],4)) A8A8A8|A8A8A8|$if(%_isplaying%,[<TAB>FFFFFF|000000%_length%],[<TAB>54FCFC|FFFFFF%_length%])


Ridiculously long, yeah... I wonder if there's any way to get the colors right without having to specify each command twice (because of the $if(%_isplaying%,...,...) statements)...?

Screenshot (1152*864, 44.7 KB) available here.

I wish you guys had used [QUOTE ]s instead of [CODE ]s, BTW...

Foobar2000 format strings

Reply #71
Quote
$put & $get was killed in 0.55


nooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo

Well there goes my dream of having recurrsion so I can do proper string processing 

Also without $put and $get my formatting string becomes pretty much just an unmangable mess.

Quote
$hex($ifgreater(%__bitrate%,256,32768,$ifgreater(%__bitrate%,192,$sub(32896,$div($mul($sub(%__bitrate%,192),127),$sub(256,192))),$ifgreater(%__bitrate%,$get(96),$add(128,$mul($div($mul($sub(%__bitrate%,96),127),$sub(192,96)),256)),128))),6)|$hex($ifgreater(%__bitrate%,256,32768,$ifgreater(%__bitrate%,192,$sub(32896,$div($mul($sub(%__bitrate%,192),127),$sub(256,192))),$ifgreater(%__bitrate%,96,$add(128,$mul($div($mul($sub(%__bitrate%,96),127),$sub(192,96)),256)),128))),6)$num(%_playlist_number%,3)$if(%__replaygain_album_gain%,000000'.',$if(%__replaygain_track_gain%,808080'.', )) $if(%_isplaying%,600060,202020)$padcut($caps2($if2(%artist%,$ifgreater($left(%_filename%,2),0,$if($strcmp($strchr(%_directoryname%,-),0),%_filename%,$cut(%_directoryname%,$sub($strchr(%_directoryname%,-),1))),$if($strcmp($strchr(%_filename%,-),0),%_filename%,$cut(%_filename%,$sub($strchr(%_filename%,-),1)))))),30) $if(%_isplaying%,4000B0,000060)$padcut($caps2($if2(%title%,$if($strcmp($strrchr(%_filename%,-),0),Unknown Title,$substr(%_filename%,$add(1,$strrchr(%_filename%,-)),$len(%_filename%))))),35) $if(%_isplaying%,208080,808040)$ifgreater($left(%_filename%,2),0,$num($cut(%_filename%,2),2),$ifgreater($cut($replace($substr(%_filename%,$add(1,$strchr(%_filename%,-)),$len(%_filename%)), ,),2),0,$num($cut($replace($substr(%_filename%,$add(1,$strchr(%_filename%,-)),$len(%_filename%)), ,),2),2),$if(%tracknumber%,$num(%tracknumber%,2),--)))  $if(%_isplaying%,808000,004000)$if($strcmp($cut($pad($left($caps2($if2(%album%,$substr(%_directoryname%,$add(1,$strchr(%_directoryname%,-)),$len(%_directoryname%)))),$if(%date%,31,38))$if(%date%,' (',)$if(%_isplaying%,208080,808040)[%date%]$if(%date%,')',),50),1), ),$substr($pad($left($caps2($if2(%album%,$substr(%_directoryname%,$add(1,$strchr(%_directoryname%,-)),$len(%_directoryname%)))),$if(%date%,31,38))$if(%date%,' (',)$if(%_isplaying%,208080,808040)[%date%]$if(%date%,')',),50),2,$len($pad($left($caps2($if2(%album%,$substr(%_directoryname%,$add(1,$strchr(%_directoryname%,-)),$len(%_directoryname%)))),$if(%date%,31,38))$if(%date%,' (',)$if(%_isplaying%,208080,808040)[%date%]$if(%date%,')',),50))),$pad($left($caps2($if2(%album%,$substr(%_directoryname%,$add(1,$strchr(%_directoryname%,-)),$len(%_directoryname%)))),$if(%date%,31,38))$if(%date%,' (',)$if(%_isplaying%,208080,808040)[%date%]$if(%date%,')',),50))[   $if(%_isplaying%,0000A0,)%_length%]


Nearly the same string I posted above, just updated for .55.  The one change I made was it now searches the filename for the tracknumber before looking at the tag, since I have alot of compilations I find this to be more accurate.

BTW I'm loving all the different strings, keep them coming.

EDIT: accually tested with with .55 now

Foobar2000 format strings

Reply #72
Quote
I changed my colours to create a Borland Pascal IDE look-alike.

ROFL. without reading your post, I just looked at the screenshot and immediately thought "Hey, look! Just like good ol' Borland Pascal!"     

Looks like you did succeed (w00t)
A riddle is a short sword attached to the next 2000 years.

Foobar2000 format strings

Reply #73
Is there a way to make the File info display box smaller?
I keep my fb2k window pretty small, and the artists/title get cut off in the status bar by the file info display.

Foobar2000 format strings

Reply #74
UPDATE

TITLE FORMATTING, PLAYLIST:
Quote
$if(%_isplaying%,0080FF|0080FF$num(%_playlist_number%,3). $if(%artist%,$if(%title%,%artist%[ - '['[%album% - ][''%date% - ][$if(%tracknumber%,#$num(%tracknumber%,2),?) - ]$pad_right(%_length%,5)']'] - %title%,NO TAG - $pad_right(%_length%,5) - "%_filename_ext%"),NO TAG - $pad_right(%_length%,5) - "%_filename_ext%"),$num(%_playlist_number%,3). $if(%artist%,$if(%title%,FFFFFF%artist%[ - '['[%album% - ][''%date% - ][$if(%tracknumber%,#$num(%tracknumber%,2),?) - ]$pad_right(%_length%,5)']'] - FFFFFF%title%,NO TAG - $pad_right(%_length%,5) - FFFFFF"%_filename_ext%"),NO TAG - $pad_right(%_length%,5) - FFFFFF"%_filename_ext%"))

SYSTEM TRAY TOOLTIP:
Quote
$if(%artist%,$if(%title%,%artist% - %title%,NO TAG - "%_filename_ext%"),NO TAG - "%_filename_ext%")

FILE INFO DISPLAY:
Quote
$upper($ext(%_filename_ext%))[ - %__bitrate%kbps][ - %__channels%ch][ - %__samplerate%Hz]

STATUS BAR:
Quote
"%_path%"

WINDOW TITLE:
Quote
%_foobar2000_version% is playing $upper($ext(%_filename_ext%)) %comment%

PLAYLIST FONT: ProFontWindows - Normal - 8pt.
PLAYLIST TEXT COLOR: 128,128,128
PLAYLIST BACKGROUND COLOR: 0,0,0
PLAYLIST SELECTION COLOR: 192,192,192
SELECTED ITEM FRAME: 255,128,0

screenshot (27kb)
Rommel

 
SimplePortal 1.0.0 RC1 © 2008-2020