Help - Search - Members - Calendar
Full Version: Foobar2000 format strings
Hydrogenaudio Forums > Hosted Forums > foobar2000 > General - (fb2k)
Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25
musicmusic
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
[ %_length%]


edit: your talking about the 0.5 beta, right?
Skates
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!
musicmusic
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.
smok3
QUOTE(musicmusic @ Feb 9 2003 - 02:36 AM)
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.
musicmusic
QUOTE(smok3 @ Feb 10 2003 - 01:13 AM)
ctrl + tab will/should work.

thanks, that's quite useful smile.gif
mafe
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
musicmusic
changed mine too, gave up with fixed-width fonts, now using trebuchet ms point 7 and pl string is:

CODE
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.
Bushwack
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?
Samweis
Here we go... here's my string...

CODE
$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)
xamphear
QUOTE(Samweis @ Feb 28 2003 - 05:14 AM)
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
[$padcut(%artist%,20)] - [FF5555$padcut(%_directoryname%,20)] - [%title%][  - 00FF00%_length%]
ChS
CODE
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
anza
Changed my foobar to more minimal style, like it better that way:

CODE
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
Bamral
CODE
$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
DrDS
CODE
$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
Bamral
If anyone is interested ...an extended help section for tagz formatting:

http://home.attbi.com/~billamral/TAGZ.TXT
impulse3k
I also want to know how you got the UI to have the buttons and seekbar. Thanks in advance
Speek
QUOTE(Bamral @ Mar 3 2003 - 06:37 PM)
If anyone is interested ...an extended help section for tagz formatting:

http://home.attbi.com/~billamral/TAGZ.TXT

Thanks Bamral, that's just what I needed!
musicmusic
QUOTE(Bushwack @ Feb 28 2003 - 01:27 AM)
$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 sad.gif

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

CODE
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.)
impulse3k
ah, thanks for the explanation musicmusic
TurinsRevenge
Here's what I'm using, thanks to Bushwack's mega-script wink.gif . I got rid of the puts and gets to work with .55. Made to blend with the windows 2000/XP classic background



CODE
$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
Volcano
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 (doesn't really matter since it's hardcoded in the playlist format string)
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... rolleyes.gif
Bushwack
QUOTE(musicmusic @ Mar 3 2003 - 10:49 AM)
$put & $get was killed in 0.55 sad.gif


nooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo

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

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
ssamadhi97
QUOTE(Volcano @ Mar 3 2003 - 11:53 PM)
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!" blink.gif ph34r.gif

Looks like you did succeed (w00t)
Gemini
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.
Rommel
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)
oizoK
ok .. here's mine REALLY simple and it's likely to suck for all other people than me smile.gif

CODE
[%artist%  -  ]$if(%title%,[%album%[  - [%disc%/] $num(%tracknumber%,2)]]  -  %title%,%_filename%)[<TAB>%_length%]


now i still have a problem .. apparently i'm too stupid to make the song which is playing at the moment a different colour ... could anybody do that ? (i'm thinkin about a dark grey, i normally have white text on black bg, so that would be a good contrast)

thanks in advance tongue.gif

edit:
screenshot
psynapse
Wow, Phoenix really doesn't like this forum. All those extended ascii characters mess with it's layout something shocking.
Anyway, i'm in ie6 now, so here's what i use for my playlist:

CODE
$$if(%_isplaying%,cda774|000000$num(%_playlist_number%,2).fdd7a4|000000 '('$if(%artist%,$caps([%artist%]),$caps2($replace([%_filename%],_, )))')' $caps2([%title%]) cda774|000000 '['[%_length%]']',cccccc|000000$num(%_playlist_number%,2). '('$if(%artist%,$caps2([%artist%]),$caps($replace([%_filename%],_, )))')' $caps2([%title%]) cccccc|000000 '['[%_length%]']')


Background: Black
Font: Verdana

Regular listing: 'playlistnumber{silver} (artist) title{white} length{silver}'
Current Playing: 'playlistnumber{navy} (artist) title{blue} length{navy}'

All info is capitalized for Easy Reading™, showing a filename (with underscores converted to spaces) if no iD3 tag is found.
xamphear
Slightly modified my puTTY look alike:
CODE
[$padcut(%artist%,20)] [FF5555|FF5555$padcut(%_directoryname%,20)] [%title%] [ 00FF00|00FF00%_length%]


SCREENSHAWT!
TurinsRevenge
Oziok

Put this at the beginning of the string


CODE
$if(%_isplaying%,626262,FFFFFF)


The first colors apply if track is playing (dark grey), the second if it is not (white).

For other color combos, click on Chnage Color in the title formatting screen window and cut/paste.
shirotenshi
The String:
QUOTE
$if(%_isplaying%,FF80FF|FF80FF$num(%_playlist_number%,4)'<'FFFFFF|FFFFFF'| '$if(%disc%,FF80FF|FF80FF'Disc '%disc%,$pad(' ',6))$if(%tracknumber%,FF80FF|FF80FF' Track '$num(%tracknumber%,2),8D8AFD|8D8AFD' *NO TAG*')FFFFFF|FFFFFF' | '$if(%album%,FF80FF|FF80FF$padcut(%album%,40),8D8AFD|8D8AFD$padcut_right('*NO TAG*',40))FFFFFF|FFFFFF' | '$if(%artist%,FF80FF|FF80FF$padcut(%artist%,40),8D8AFD|8D8AFD$padcut_right('*NO TAG*',40))FFFFFF|FFFFFF' | 'FF80FF|FF80FF$if(%title%,$padcut(%title%,50),$padcut(%_filename_ext%,50))<TAB>8D8AFD|8D8AFD$if(%title%,$pad(' ',5),'*NO TAG*')FFFFFF|FFFFFF' | 'FF80FF|FF80FF$pad_right(%_length%,5)FFFFFF|FFFFFF' | 'FF80FF|FF80FF$pad_right(%__bitrate%,3)' kbps',FFFFFF|FFFFFF$num(%_playlist_number%,4)FFFFFF|FFFFFF' | '$if(%disc%,8AFDF8|8AFDF8'Disc '%disc%,$pad(' ',6))$if(%tracknumber%,8AFDF8|8AFDF8' Track '$num(%tracknumber%,2),8D8AFD|8D8AFD' *NO TAG*')FFFFFF|FFFFFF' | '$if(%album%,88FFA6|88FFA6$padcut(%album%,40),8D8AFD|8D8AFD$padcut_right('*NO TAG*',40))FFFFFF|FFFFFF' | '$if(%artist%,FC998B|FC998B$padcut(%artist%,40),8D8AFD|8D8AFD$padcut_right('*NO TAG*',40))FFFFFF|FFFFFF' | '8AD5FD|8AD5FD$if(%title%,$padcut(%title%,50),$padcut(%_filename_ext%,50))<TAB>8D8AFD|8D8AFD$if(%title%,$pad(' ',5),'*NO TAG*')FFFFFF|FFFFFF' | 'C3C3C3|C3C3C3$pad_right(%_length%,5)FFFFFF|FFFFFF' | 'FFFFFF|FFFFFF$pad_right(%__bitrate%,3)' kbps')
------------------- The End ----------------
Replace <TAB> with a tabulation(CTRL+TAB)

QUOTE
Playlist font: Ms Gothic - Standard - 9
Playlist background color: Red: 46  Green: 95  Blue: 105
Playlist selection color: Red: 57  Green: 117  Blue: 130


And the screenshot is here: 1280x1024 (46kB)
flloyd
shirotenshi, I love your setup. However when I try to use it my Title column is not straight like your's. Rather they are all the same distance away from the end of the Artist column so with a compilation album with different artists the titles are zigzagged. Do you (or anyone else) have any idea what I need to do in order to fix this?
smok3
btw, with the complex examples, wouldnt it be easier to just upload the foobar2000.cfg somewhere together with snapshot and optional font?
muxinpp
QUOTE
$if(%_isplaying%,00FF00|00FF00● ,E294A6|007300 )9EBAED|9EBAED$num(%_playlist_number%,3).FF5B5B|FF5B5B【$if(%album%,FFD988|FFD988%album%,FFD988|FFD988%_directoryname%)FF5B5B|FF5B5B】FFFFFF|FFFFFF [84FF84|84FF84%artist% - ]$if(%title%,35FFFF|35FFFF%title%,35FFFF|35FFFF%_filename_ext%)[ 8080FF%_length% BEFF7D|BEFF7D]
oizoK
thx turins revenge smile.gif

(btw: it's really strange to what music some people listen here smile.gif)
Golly
ok, time for my contribution to this. I've noticed alot of ppl like having columns, i prefer colours.
heres my humble string:

$if(%_isplaying%,FFFF00+++ ,2020FF)$num(%_playlist_number%,4). $if(%title%,[$if(%_isplaying%,FFFF00,80FF80)%artist% $if(%_isplaying%,FFFF00,D8D8D8)- $if(%year%,%year%,$if(%date%,%date%,????)) - [$if(%_isplaying%,FFFF00,FFA060)%album% $if(%_isplaying%,FFFF00,D8D8D8)- $num(%tracknumber%,2) - ]]$if(%_isplaying%,FFFF00,30FFFF)%title%,$if(%_isplaying%,FFFF00,2020FF)%_path%)$if(%_isplaying%, +++,) <TAB HERE> $if(%_isplaying%,FFFF00,FFB0FF)$pad_right(%_length%,5)


ps: also, i noticed alot of ppl here listen to Nightwish....legends! NIGHTWISH ARE AWESOME!!

screenshot here (33k)

EDIT: ok, if that link doesnt work try this
Tri
Based on the information I found here, my playlist string is this:
QUOTE
000000|000000$padcut_right(%_playlist_number%,4). C0C0C0| 6B240A|000000$ifgreater($len(%artist%),45,$cut(%artist%,42)...,$padcut([%artist%],45)) C0C0C0| 000080|000000$ifgreater($len(%album%),45,$cut(%album%,42)...,$padcut([%album%],45)) C0C0C0| 000000|000000$pad($if(%tracknumber%,'# '$padcut_right(%tracknumber%,2),),4) C0C0C0| 008000|000000$if(%title%,$ifgreater($len(%title%),41,$cut(%title%,38)'...',$padcut([%title%],41)),$ifgreater($len(%_filename%),41,$cut(%_filename%,38)'...',$padcut(%_filename%,41)))   C0C0C0| $if(%__bitrate%,0080FF|000000$num(%__bitrate%,3) kbps, ) C0C0C0| 000000|000000$padcut($if(%__codec%,$caps(%__codec%),$ext(%_filename_ext%)),6) C0C0C0| 6B240A|000000$if(%__replaygain_track_gain%,'·',)000080|000000$if(%__replaygain_album_gain%,'·',) [ %_length%]


Playlist Font is Sheldon Narrow
Playlist Selection Color is R 192 G 192 B 192
Selected Item Frame is Black

Foobar window is always maximized at a resolution of 1280x1024

(I hope it's displayed properly... huh.gif)
shirotenshi
QUOTE(flloyd @ Mar 4 2003 - 05:31 PM)
shirotenshi, I love your setup. However when I try to use it my Title column is not straight like your's. Rather they are all the same distance away from the end of the Artist column so with a compilation album with different artists the titles are zigzagged. Do you (or anyone else) have any idea what I need to do in order to fix this?

hehe thx flloyd tongue.gif
Take a screenshot to show your problem pls

I have some problems with half-width/full-width character and the $pad, $pad_right, $padcut, $padcut_right, $len functions sad.gif
Is it possible to add the same functions with half-width/full-width support ? wink.gif

A half-width/full-width character support example In Java (Text File Encoding : UTF-8)
A screenshot 1280x1024 (46ko)

I made some modifications of the string too:
QUOTE
$if(%_isplaying%,FF80FF|FF80FF$num(%_playlist_number%,4)'<'FFFFFF|FFFFFF'| '$if(%disc%,FF80FF|FF80FF'Disc '%disc%,$pad(' ',6))$if(%tracknumber%,FF80FF|FF80FF' Track '$num(%tracknumber%,2),8D8AFD|8D8AFD' *NO TAG*')FFFFFF|FFFFFF' | '$if(%album%,FF80FF|FF80FF$padcut(%album%,40),8D8AFD|8D8AFD$padcut_right('*NO TAG*',40))FFFFFF|FFFFFF' | '$if(%artist%,FF80FF|FF80FF$padcut(%artist%,35),8D8AFD|8D8AFD$padcut_right('*NO TAG*',35))FFFFFF|FFFFFF' | 'FF80FF|FF80FF$if(%title%,$padcut(%title%,60),$padcut(%_filename_ext%,60))<TAB>8D8AFD|8D8AFD$if(%title%,,'*NO TAG*')FFFFFF|FFFFFF' | 'FF80FF|FF80FF$pad_right(%_length%,5)FFFFFF|FFFFFF' | 'FF80FF|FF80FF$pad_right(%__bitrate%,3)' kbps',FFFFFF|FFFFFF$num(%_playlist_number%,4)FFFFFF|FFFFFF' | '$if(%disc%,8AFDF8|8AFDF8'Disc '%disc%,$pad(' ',6))$if(%tracknumber%,8AFDF8|8AFDF8' Track '$num(%tracknumber%,2),8D8AFD|8D8AFD' *NO TAG*')FFFFFF|FFFFFF' | '$if(%album%,88FFA6|88FFA6$padcut(%album%,40),8D8AFD|8D8AFD$padcut_right('*NO TAG*',40))FFFFFF|FFFFFF' | '$if(%artist%,FC998B|FC998B$padcut(%artist%,35),8D8AFD|8D8AFD$padcut_right('*NO TAG*',35))FFFFFF|FFFFFF' | '8AD5FD|8AD5FD$if(%title%,$padcut(%title%,60),$padcut(%_filename_ext%,60))<TAB>8D8AFD|8D8AFD$if(%title%,,'*NO TAG*')FFFFFF|FFFFFF' | 'C3C3C3|C3C3C3$pad_right(%_length%,5)FFFFFF|FFFFFF' | 'FFFFFF|FFFFFF$pad_right(%__bitrate%,3)' kbps')
------------------- The End ----------------
Replace <TAB> with a tabulation(CTRL+TAB)

QUOTE
Playlist font: Ms Gothic - Standard - 9
Playlist background color: Red: 46  Green: 95  Blue: 105
Playlist selection color: Red: 57  Green: 117  Blue: 130


And the screenshot here : 1280x1024 (42ko)
Canar
QUOTE(shirotenshi @ Mar 5 2003 - 11:44 AM)
Is it possible to add the same functions with half-width/full-width support ?  wink.gif

The problem is that the column stuff is just a hack anyhow. Until real column-based playlist support is implemented, there's a good chance it could break unless you have a font that's monospaced for both full and half character widths.
flloyd
shirotenshi, here is what mine looks like. Any ideas?
Bushwack
flloyd it looks like you want to be using a fixed width font.

Try Lucida Console or Courier New, there are a few more as well.
flloyd
Thanks Bushwack. That was exactly the problem.
ZiY0N
Tweaked version of Muxinpp's code (Thanks Muxinpp).

Font: Courier New
Playlist BG Color: Black
Playlist Selection Color: R: 128 B: 128 G: 128
Selected Item Frame: R: 212 B: 208 G: 200

Made the arrows and track time surrounding the album turn neon-green while playing. Added %tracknumber% to playlist and 'roll over' colors for the current playing song.

Kudos to Muxinpp for the rest of the code.

QUOTE
$if(%_isplaying%,00FF00|00FF00◘9EBAED|9EBAED$pad_right($pad(%_playlist_number%.,5),5)00FF00|EC00EC►$if(%album%,FFD988|FFD988%album%,FFD988|FFD988%_directoryname%)00FF00|EC00EC◄FFFFFF|FFFFFF [84FF84|84FF84%artist% - [[00FF00$num(%tracknumber%,2)84FF84|84FF84] - ]]$if(%title%,35FFFF|35FFFF%title%,35FFFF|35FFFF%_filename_ext%)[ 00FF00%_length% BEFF7D|BEFF7D], E294A6|0073009EBAED|9EBAED$pad_right($pad(%_playlist_number%.,5),5)FF5B5B|FF5B5B►$if(%album%,FFD988|FFD988%album%,FFD988|FFD988%_directoryname%)FF5B5B|FF5B5B◄FFFFFF|FFFFFF [84FF84|84FF84%artist% -[ $num(%tracknumber%,2) -] ]$if(%title%,35FFFF|35FFFF%title%,35FFFF|35FFFF%_filename_ext%)[ 8080FF|C9C9C9%_length% BEFF7D|BEFF7D])

Change "◘" and "►" (Start>Programs>Access>Wordpad -Select "Courier New" for font and type in Alt-9688 or 9658)

Here is a picture with the current playing song NOT selected.

[img]http://www.strike9.com/file.aspx?path=/TempXM/fullsize%5cFoobar2k/Off.PNG[/img]

Here is a picture with the current playing song SELECTED.

[img]http://www.strike9.com/file.aspx?path=/TempXM/fullsize%5cFoobar2k/Over.PNG[/img]

-ZiY0N
-133T wanabie Hax0r-
Gallvs
Here's mine:

QUOTE
$if(%_isplaying%,FFFF00,2020FF)$if(%title%,[[$if(%_isplaying%,FFFF00,FFA060)%album% $if(%year%,$if(%_isplaying%,FFFF00,FFB0FF)'('%year%')' ,$if(%date%,$if(%_isplaying%,FFFF00,FFB0FF)'('%date%')' ,))$if(%_isplaying%,FFFF00,30FFFF)- $num(%tracknumber%,2) - $if(%_isplaying%,FFFF00,80FF80)%artist% $if(%_isplaying%,FFFF00,D8D8D8)- ]]$if(%_isplaying%,FFFF00,FFD2A6)%title%,$if(%_isplaying%,FFFF00,2020FF)%_path%)   $if(%_isplaying%,FFFF00,FFB0FF)$pad_right(%_length%,5)


The font is Andale Mono (monospaced).

Screenshot here
smok3
post removed. (out of date cfg files were linked here)
ap1978
Here's how my foobar2000 looks like...
BlueScreenJunky
okay, it's been asked several times already, but without any answer : Ap1978, where did you get your seekbar, volume control and buttons ?
Xecter
OMG@Ap1978 foobar


Dood! Where did u get those controls?!

They're great! Share it
ap1978
Hehe tongue.gif The control's made by X-Fixer and sadly, doesn't work with the latest versions of foobar2000. I sent him a mail a few mins ago asking him to update it...
BlueScreenJunky
Thanx !
I'll wait for the next versions.
ssjkakaroto
just made one using shirotenshi's and Golly's codes:
QUOTE
2020FF|2020FF$num(%_playlist_number%,3)$if(%_isplaying%,<FFFFFF|FFFFFF|, FFFFFF|FFFFFF|) $if(%title%,80FF80|80FF80$padcut($if(%artist%,%artist%,Unknown Artist),35) FFFFFF|FFFFFF| FFA060|FFA060$padcut($if(%album%,%album%,Unknown Album),40) FFFFFF|FFFFFF|D8D8D8|D8D8D8#$if(%tracknumber%,$num(%tracknumber%,2),??)FFFFFF|FFFFFF| 30FFFF|30FFFF$padcut(%title%,60),%_filename%)[ <TAB>FFFF80|FFFF80%_length%]FFFFFF|FFFFFF|FFB0FF|FFB0FF$pad_right($num(%__bitrate%,3),3)C080FF|C080FFkbps


Font: MS Gothic, Regular, 9
BG Color: Black
Selection & Frame Color: B:160 R:0 G:0
sshot
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.