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
kjoonlee
Thanks to the awesome TAGZ library, awesome stuff is possible. I can make song titles look the way I want.

This is what I want:
QUOTE
Title - Version foo
Artist / Title
Artist / Album Disc 2 11 / Title
Album Disc 2 11 / Artist 28 / Title - Version bar

automatic title formatting based on the amount of data available.


Which basically means I start with the following:
if (album is by various artists)
%album% [Disc %discnumber% ]%tracknumber% / %artist% / %title%[ - %version%]
else
[%artist% / ][%album%[ [Disc %discnumber% ]%tracknumber%] / ])%title%[ - %version%]

if (album name is longer than 20 characters)
$abbr(%album%,20) instead of just %album% and so on.

to pad tracknumbers with zeroes
$tracknumber%()

if artist differs from performer
$if2(%performer%,%artist%)

if title is unknown
if2(%title%,%_filename_ext%)

which ultimately gives me:
QUOTE
$pad_right(%_playlist_number%,4). $if(%various%,$abbr(%album%,20) [Disc %discnumber% ]$tracknumber%() / $if2(%performer%,%artist%) / ,[$if2(%performer%,%artist%) / ][$abbr(%album%,20)[ [Disc %discnumber% ]$tracknumber%()] / ])$if2(%title%,%_filename_ext%)[ - %version%][ - $num(%__bitrate%,3)kbps][ %_length%]


Tell me what you think, please. I'd love to see other people's strings too. : )

edit: updated string to work on recent versions of foobar2000, minor additions too.
Hey folks, use QUOTE instead of CODE for formatting strings, please. CODE can cause display problems for other people.

edit2: I've since switched to this:
QUOTE
$num(%_playlist_number%,$len(%_playlist_total%)). []
$if(%__replaygain_track_peak%,,$rgb(255,0,0))

$if(%various%,

%album% [Disc %discnumber% ]$tracknumber() / $if2(%performer%,%artist%) / ,

[$if2(%performer%,%artist%) / ][%album%[ [Disc %discnumber% ]$tracknumber()] / ])

$if2(%title%,%_filename_ext%)
[ - %version%]
$num($if2(%__bitrate_dynamic%,%__bitrate%),3)kbps]
[$tab()%_length%]
psyqil
Ok, I got mine ready thanks to some help from you people, and I´m sure, one of these days I´ll be able to toggle different formats with my number keys ;-)
I´m too lazy to put comments on the string, just copy/paste and try yourself, feed it a couple of folders and you´ll see!! My background is black and my selection bar is yellow.

QUOTE
$if(%title%,$padcut([$caps(%artist%)],35) $padcut(00FFFF$caps(%title%),40)D2D200$if(%bpm%,$cut(%bpm%,3)bpm/,$if(%__bitrate%,$cut(%__bitrate%,3)bps/,No Data!)),409FFF%filename%)$if(%tracknumber%,409FFF$num(%tracknumber%,2) of 00FFFF$caps(%album%),0000FF$caps(%album%)) [%date%] $if(%__replaygain_album_gain%,00FF00T %__replaygain_track_gain% A %__replaygain_album_gain%,0000FF$caps(%album%)5B91FF No ReplayGain! %comment%)
Dibrom
This is what I currently use. Haven't had time to had l33t coloring or anything though.. wink.gif (I'm hoping to see italics/bold/underline formatting sometime in the future wink.gif)

QUOTE
$pad(%_playlist_number%, 4). [%artist% - ]$if($strcmp(%date%,-1),,%date% - )$if(%title%,['['%album%[ : <%album subtitle%>][ :: <%album description%>][ #[%disc%/]$num(%tracknumber%,2)]'] ']%title%[ / %track co-title%][ : <%track subtitle%>]$if(%piece subsection%, - Part #%piece subsection%,)[ :: <%track description%>],%_filename%)


I also think it would be cool if some sort of functionality would be added to the Tagz stuff to where you could even script conditional entries in the playlist. For example, some of the cd's I have contain "subsongs" within a track, which are delineated by subindices. Since Ape2 (yes, I use MPC almost exclusively for my audio library, although the idea could easily work with Vorbis comments) defines an "index" tag, it would be cool if you could script something in tagz to where it would scan the index tag, and per entry, you could add a new playlist item.

Say:

CODE
TRACKNUMBER=4
INDEX=1:00/2:00/3:00


on the playlist it could look like:

CODE

1 - Some Artist - Some Album - Some Track                          Some Total Length
2 - Some Artist - Some Album - Some Track                          Some Total Length
3 - Some Artist - Some Album - Some Track                          Some Total Length
4 - Some Artist - Some Album - Some Track                          Some Total Length
                        4.1 + Subsong 1          Subsong 1 Length/Some Total Length
                        4.2 + Subsong 2          Subsong 2 Length/Some Total Length
                        4.3 + Subsong 3          Subsong 3 Length/Some Total Length
5 - Some Artist - Some Album - Some Track                          Some Total Length


I think this sort of functionality could have all kinds of other potential uses as well.

At any rate, I think this Tagz stuff is great... definitely one of fb2k's killer features :B
Dibrom
Btw.. I edited the first 2 posts so that the display would wrap correctly wink.gif

If you guys want to use a monospace font then just do a quote block but with [ font = courier ] (without spaces) inside the quote block, then end the font tag before closing the quote. It makes it much more pleasant to read the thread when it wraps properly smile.gif
Canar
QUOTE(Dibrom @ Jan 23 2003 - 04:18 PM)
I also think it would be cool if some sort of functionality would be added to the Tagz stuff to where you could even script conditional entries in the playlist.  For example, some of the cd's I have contain "subsongs" within a track, which are delineated by subindices.  Since Ape2 (yes, I use MPC almost exclusively for my audio library, although the idea could easily work with Vorbis comments) defines an "index" tag, it would be cool if you could script something in tagz to where it would scan the index tag, and per entry, you could add a new playlist item.

QUOTE
808080$num(%_playlist_number%,4). $if(%title%,422DA8%artist%[ feat. 9E2DA8%featuring%][ <[%date% - ]A82D55%album%[ {A8612DDisc $num(%disc%,1)}][, #93A82D$num(%tracknumber%,2)]>]: 36A82D%title%[ '('2DA880%subtitle%')'][ '['2D74A8%version%']']$if(%__replaygain_album_gain%,,   0000FF!!NO ALBUM GAIN!!),%_filename%)


The scheme gives a nice, not-entirely-saturated rainbow color going from left to right. The specialized fields I used are 'featuring', for featured artists (I'll expand it to include other things, possibly, like 'presented by'), 'subtitle', for the bracketed part of a track title, and 'version' for the mix name for electronic stuff (like "[Maas Remix]") The other bit is that all the symbols that aren't part of the field are black, so you can see exactly where the fields begin and end.

On a side note, when ClearType is enabled and the Trebuchet MS Bold font is used, FB2K is not displaying the right side of some characters.

@Dibrom: When you add an index, does FB2K treat the different sections as subtracks the way it does with ZIPs? Or is this just a feature request?
_Shorty
$num(%_playlist_number%,2). [$padcut(%artist%,30) - ]$if(%title%,$padcut(%title%,40)808080 - [$padcut('['$if(%tracknumber%,Track[ #[%disc%/]$num(%tracknumber%,2) ],)from %album%'] ',45)] [- $padcut($if(%__replaygain_album_gain%,FF0080%__replaygain_album_gain%,A00000%__replaygain_track_gain%),19)800080 $num(%__bitrate%,3)kbps ][$num(%__samplerate%,5)Hz][ - %comment%],%filename%)
spase
here is my string (use Courier New or some other fixed width font):

CODE
$num(%_playlist_number%,4) 808080| $padcut($if(%artist%,%artist%,'Unknown Artist'),35) 808080| $padcut($if(%title%,%title%,%_filename%),55) 808080| $padcut($if(%tracknumber%,'('$num(%tracknumber%,2)') ',)$if(%album%,%album%,'Unknown Album'),40) 808080| $padcut([%genre%],15) 808080|


it looks something like this:

<link removed>

basically it does playist # (padded to 4 characters... for now), then %artist% (or "Unknown Artist"), then %title% (or filename), then %tracknumber%, or null, then %album% (or "Unknown Album"), then genre (or null)

personally i think this is good because i can resize the window to a fairly small size, and still have artist and title, or make the window bigger and see useful information...

also for this screenshot, here is the status bar:
CODE
[%artist% - ]$if(%title%,%title%,%_filename%)[ // [Track %tracknumber% ]on "%album%"]

and here is the title bar and system tray tooltip: (same thing)
CODE
[%artist% - ]$if(%title%,%title%,%_filename%)

they are pretty self explanatory... artist if it exists, then title, or filename if there is no title.

EDIT: changed "%filename%" to "%_filename%"
EDIT 2: added bit about using a fixed width font
krmathis
Here is my Playlist string:

CODE
$num(%_playlist_number%,3).   [%artist% - ]FF0000$if(%title%,['['%album%[ 0000FF#[%disc%/]$num(%tracknumber%,2)]'FF0000]  ']%title%,%_filename%)

Album in blue and Track number in red.
Still working with the strings, so maybe I get a few hints here.

B)
Dibrom
QUOTE(Canar @ Jan 23 2003 - 10:24 PM)
@Dibrom: When you add an index, does FB2K treat the different sections as subtracks the way it does with ZIPs? Or is this just a feature request?

I don't think it does anything with the index tag.. so yeah, it's a feature request, though I'm not requesting a feature based implicitly on the index tag, but moreso a generalized ability to script conditional playlist entries. This could be used for many things really.. the index thing just happens to be one of them.
anza
CODE
$num(%_playlist_number%,4). 5B5B5B$padcut($if(%artist%,%artist%,),30) $padcut($if(%title%, - %title%,),55) $padcut($if(%album%, - 5B5B5B$abbr(%album%,45),),55) $if(%tracknumber%,- 5B5B5B$num(%tracknumber%,2),)


Playlist font: ProFontWindows Size 7,
Text color RGB: 219, 219, 219,
Background: black,
Selection color: RGB: 83, 83, 83

That's it. I like it smile.gif

EDIT:
My new string:
CODE
$num(%_playlist_number%,4). 5B5B5B$padcut($if(%artist%,%artist%,),30) $padcut($if(%title%, - %title%,),55) $padcut($if(%album%, - 5B5B5B$abbr(%album% ,45),),55) $padcut($if(%album%,$if(%date%,- '('%date%')', ),),10) $if(%tracknumber%,- 5B5B5B$num(%tracknumber%,2),)
Supachikn
CODE
1E1ECA$num(%_playlist_number%,4)':' $if(%title%,DC0C35$padcut($if(%artist%,%artist%,),25) $if(%date%,0080FF -'['%date%']',) $padcut($if(%album%,- 5B5B5B%album%,),45) $if(%tracknumber%,0000FF- $num(%tracknumber%,2) ,)$padcut($if(%title%,0000FF- %title%,),55),$padcut(808080%_filename%,100)BF408F'-NO TAGS FOUND!')


The code is a bit messy, due to my tweaking, but it gets the job done.
khostri
Tweaked and changed code samples from this topic to fit my needs.
Thank you all I used code from

CODE
1E1ECA$num(%_playlist_number%,4)':' $if(%title%,DC0C35$padcut($if(%artist%,%artist%,),25) $if(%tracknumber%,$padcut(0000FF- $num(%tracknumber%,2) ,14),-   ) $padcut($if(%title%,0000FF- %title%,),50) $if(%date%,$padcut(0080FF -'['%date%']',18), -'[    ]') $if(%album%,$padcut(- 5B5B5B%album%,45),$padcut('-   ',35)), $padcut(808080%_filename%BF408F,85)'NO TAGS FOUND!')$if(%__replaygain_album_gain%,$padcut(FF0080%__replaygain_album_gain%,21),$padcut(A00000%__replaygain_track_gain%,21))$if(%comment%,%comment%,)


EDIT:

Link to Screenshot
fileman
I like it simple...:

QUOTE
$num(%_playlist_number%,4). [%artist% - ] %title%[    / %album%][ '('$num(%tracknumber%,2)')']


Screenshot

Regards, fileman.
Volcano
<rant>This thread is bloody hard to read, are the forum's markup facilities that hard to understand?</rant>

I seldom use foobar, but I found the default display schemes too confusing even for occasional use.

In the playlist, I just like to have artist and title because anything else wouldn't make sense when I have my whole collection (which doesn't only consist of complete albums) loaded.

Playlist:
CODE
%_playlist_number%. [%artist% - ]$if(%title%,%title%,%_filename%)



System tray tooltip:
CODE
[%artist% - ]$if(%title%,%title%,%_filename%)



File info display: default


Status bar (this one's really good IMHO):
CODE
$if(%title%,$if(%artist%,%artist%,No Artist)  |  %title%
                   $if(%tracknumber%,Track $num(%tracknumber%,2),-)
 |  $if(%album%,%album%,No Album)  |  $if(%date%,%date%,No Date),
%filename%)



Window title:
CODE
[%artist% - ]$if(%title%,%title%,%filename%)     '['%_foobar2000_version%']'


This is what it looks like.

Sorry for the line breaks in the [CODE ] elements, but that was the only way to preserve all the whitespace (it gets stripped out when put inside a [QUOTE ] or the normal post area).

[EDIT] Wow spase, you've just given me a great idea. I had never thought about mimicking columns like that, that of course would be the optimal solution! smile.gif [/EDIT]
spase
QUOTE(Volcano @ Jan 24 2003 - 12:07 PM)
Wow spase, you've just given me a great idea. I had never thought about mimicking columns like that, that of course would be the optimal solution! smile.gif

glad i could help :-)
Sachankara
Foobar2000 really needs a new script language with support for variables. It's a pain of in the ass to make "dynamic format strings" with the current script language. Just look at the complexity of the script code needed for determining if an artist/song/album should use %original-language-xxx% or just %xxx% :
QUOTE
$num(%_playlist_number%,3). $if(%original-language-artist%,%original-language-artist% - $if(%original-language-album%,'['%original-language-album%$if(%tracknumber%, #%tracknumber%'] ',),$if(%album%,'['%album%$if(%tracknumber%, #%tracknumber%'] ',),))$if(%original-language-title%,%original-language-title%,$if(%title%,%title%,)),$if(%artist%,%artist% - $if(%original-language-album%,'['%original-language-album%$if(%tracknumber%, #%tracknumber%'] ',),$if(%album%,'['%album%$if(%tracknumber%, #%tracknumber%'] ',),))$if(%original-language-title%,%original-language-title%,$if(%title%,%title%,)),%_filename%))
tongue.gif
Volcano
Gee, this is great! This made me realise how good foobar2000 actually is, I'm really starting to like it now. smile.gif

I think this is much improved compared to the minimalist scheme I posted above (because, as spase pointed out, it can just be turned into an ordinary "Artist - Title" display if you resize the window).

Scheme used:
CODE
$padcut(%_playlist_number%,4) C0C0C0| $padcut($if(%artist%,
%artist%,Unknown Artist),34) C0C0C0| $padcut($if(%title%,%title%,
%filename%),54) C0C0C0| $padcut([%album%],44) C0C0C0| $padcut
([%date%],4) C0C0C0|


Thanks again for the "inspiration". biggrin.gif


The only thing I miss is a function that displays the values passed to it only if *all* of them exist, not just one (which [] does), badly tagged or tagless files could be handled better then.
Artemis3
I leave the thing the way it is... "factory" default.
Rizban76
QUOTE
If you guys want to use a monospace font then just do a quote block but with [ font = courier ] (without spaces) inside the quote block, then end the font tag before closing the quote.


I tried the above to make my playlist number only in courier. How could you do this with the below string?

$num(%_playlist_number%,2). $if(%artist%,%artist% - %title%,%_filename%)
Supachikn
He was talking about forum functions, not foobar2000
evereux
This thread is excellent, thanks for the many idea's.

But! ohmy.gif

Looking at Spase's screenshot I see all the column's are lined up, justified to the left. When I cut and paste the string into my Foobar, only the first two column's are .. what am I missing?
Volcano
You've got to use a fixed-width font such as Lucida Console or Courier New for it to work properly. smile.gif
evereux
Ofcourse. D'oh!

Thanks. smile.gif
musicmusic
Well, for what its worth, I only use a simple %artist% - %title% for the playlist. But for the status bar I use

CODE
| [Album: %Album% | ][Track: $num(%Tracknumber%,2) | ][Year: %date% | ][Genre: %genre% | ][Gain: $cut(%__replaygain_track_gain%,4)dB | ]


I like it because the separators make it clear, and they're only displayed if they're available.
SK1
This page is really wide because of some [code]s, better put long code in [quote] maybe everybody smile.gif.
Anyway, useful thread!
bigahoona
QUOTE(SK1 @ Jan 27 2003 - 02:28 PM)
This page is really wide

:angry: ..... it seems that you (SK1) have a serious problem, I suggest that you visit you psychiatrist before posting a link to porn :angry:

Edit: Please don't make links to that. While this may not be the HA forum and the rules are more lax here, this doesn't give you license to link to anything you want. That link was not appropriate for the forum, and had nothing to do with HA or Foobar2000. Remember what we were talking about on IRC... --TrN
mafe
QUOTE
$num(%_playlist_number%,4). $if(%__replaygain_album_gain%,0000FF*,) $if(%artist%,%artist%,'Unknown Artist') - $if(%album%,%album%,'Unknown Album') - $if(%tracknumber%,'['$num(%tracknumber%,2)'] ',)$if(%title%,%title%,%_filename%)


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

If the Track have replaygain album i show the * if not i dont show anything.

sorry my english
SK1
Sure thing.
bigahoona, remember to read the warning on pages first smile.gif they do have a warning.
bigahoona
QUOTE(SK1 @ Jan 27 2003 - 03:49 PM)
bigahoona, remember to read the warning on pages first smile.gif they do have a warning.

I suppose you find yourself very funny……….. your link hasn’t any kind of warning….
so, visit porn if you like but stop bother others with this crap mad.gif
that’s all I have to say
Rommel
here is my string:

Playlist:
CODE
$num(%_playlist_number%,3).  $if(%artist%,$if(%title%,%artist%[ - '['%date% - %album% - $if(%tracknumber%,#$num(%tracknumber%,2),?)']'] - %title%,NO TAG - "%filename%"),NO TAG - "%filename%")


System tray tooltip:
CODE
$if(%artist%,$if(%title%,%artist% - %title%,NO TAG - "%filename%"),NO TAG - "%filename%")


Status bar:
CODE
[%comment%]


Window title:
CODE
"%filename%"
SK1
QUOTE(bigahoona @ Jan 28 2003 - 12:48 AM)
QUOTE(SK1 @ Jan 27 2003 - 03:49 PM)
bigahoona, remember to read the warning on pages first smile.gif they do have a warning.

I suppose you find yourself very funny……….. your link hasn’t any kind of warning….
so, visit porn if you like but stop bother others with this crap mad.gif
that’s all I have to say

I'm extremely sorry this has offended you. It was meant as a joke. And that page does have a warning, you can check it out again if you missed it, it's in big letters on top of the page.
By the way, here's the definition of porn by babylon.com:
n. literature or pictures describing sexual acts and intended to cause sexual arousal (Slang)
adj. pornographic, showing or describing sexual acts and intended to cause sexual arousal (Slang)
That page shows no -sexual- act, and definately causes no sexual arousal. So it definately isn't porn.
Anyway, sorry for any discomfort this has caused you, i will not make such jokes again smile.gif.
LightYears
playlist:
CODE
0000FF$num(%_playlist_number%,3)':'FF0000
$padcut($caps([%artist%]),20)-008000
$padcut($caps([%album%]),30)-808000
$num([%tracknumber%],2)-000080
$caps([%title%])

which looks like this:

user posted image
retch
Just some colours that i'm used to looking at (from mutt, irssi...). I didn't bother with conditional operators, it's ugly enough as it is.

I've got the fields displayed in this order so I can sort by display name.

CODE
808080'['00FFFF%artist%808080','808040 %date% 808080-FFFF00 %album%808080']'FFFFFF $num(%tracknumber%,2)808080.FFFFFF %title%


font: franklyn gothic medium
playlist text colour: white
playlist background colour: black
playlist selection colour: grey or white

user posted image
musicmusic
mafe: what font are you using?
mafe
QUOTE(musicmusic @ Jan 30 2003 - 08:59 AM)
mafe: what font are you using?

Everson Mono Latin

http://www.dafont.com/en/search.php?nq=1&q...Latin&Submit=Go
musicmusic
Thanks.. smile.gif
voltron
I always tell others about how simple I like my Foobar2000, maybe now I can show you:
user posted image

The strings are all default except for the following two:

File info Display:
CODE
[%__bitrate%]/$cut([%__samplerate%],2)

Window title:
CODE
[%artist% - ]$if(%title%,['['%album%[ #[%disc%/]$num(%tracknumber%,2)]'] ']%title%,%_filename%)

voltron
musicmusic
I don't know if anyone else has, but I also realised today you can get a proper line separating those column things with this character (instead of "|" ):

CODE


It won't look right in title formatting but will when displayed.

edit: i can't get the forum to display it properly, but you can get it from ms word 2002, press 2502 followed by Alt+X. Or you could hold Alt and press 9474, but it will only work in word it seems. Then copy&paste to foobar title formatting.
andrep
Cheers Musicmusic, you've helped once again!!

I had been trying to remember my old Alt+ascii codes from my years ago BASIC programming days when a working knowledge of such codes was required info for creating title screens and menu boxes etc., but they didn't seem to work in the modern game.... the old 9474 cut/paste however has sharpened up my foobar playlistage considerably,
ak
Yep, few potential delimiters can be found in 'character map' for any particular font.
For 'courier new' it could be: ░ or ║ or ╬ as well.
andrep
9553 is the business. My ignorance astounds, I assumed that the character map was left for dead with Win98, and its been there all the time (in XP) in my accessories/system tools folder,

cheers,
Lefungus
Inspired by your work :

CODE

808080$if(%tracknumber%,#$num(%tracknumber%,2),#??)
808040$if(%album%,%album% ,):
000080$if(%artist%,%artist%,'Unknown Artist')000000 -
008000$if(%title%,%title%,%_filename%)


Noob question : where can i find associated code for colors ?
Ghim
You can find colors code just in the same window where you format your strings...
just in the bottom of the windows, there's a color code generator...
musicmusic
QUOTE(andrep @ Jan 31 2003 - 12:29 AM)
My ignorance astounds, I assumed that the character map was left for dead with Win98, and its been there all the time (in XP) in my accessories/system tools folder

i did not even notice that either.. well word does the same thing anyway smile.gif
RIV@NVX
This is my setup - it is very similar to default, and I use these colors because they are one inverted to other:
CODE
0080FF$num(%_playlist_number%,3).FF8000 [%artist%808080 - ]$if(%title%,['['0080FF%album%[ #[%disc%/]$num(%tracknumber%,2)]'808080] ']FF8000%title%,%_filename%)

Font: Tahoma; Playlist text color: 808080
RIV@NVX
CODE
0080FF$num(%_playlist_number%,3). FF8000[%artist% 808080- ]$if(%title%,['['0080FF%album%[ #[%disc%/]$num(%tracknumber%,2)]'808080] ']FF8000%title%,%_filename_ext%)[ %_length%]


This is updated for 0.5 b14 which handles it a bit different.
anza
Updated strings for b14, try this!

PL:
CODE
$num(%_playlist_number%,4). $if(%__replaygain_track_gain%,DBDBDB|CCCCCC·,0000FF|0000FF·) 5B5B5B|CCCCCC$padcut([%artist%],30) DBDBDB|CCCCCC$padcut([- %title%],55)    $padcut([8B8B8B|CCCCCC%_length%],20) DBDBDB|CCCCCC |$if(%album%, 8B8B8B|CCCCCC$if2('['%date%']',      ),) $padcut([5B5B5B|CCCCCC $cut(%album%,35)],56)[ 8B8B8B|CCCCCC#$num(%tracknumber%,2)]


Status bar:
CODE
| [Album: $cut(%album%,26) | ][Track: $num(%Tracknumber%,2) | ][Length: %_length% | ][Year: %date% | ][Genre: %genre% | ]


Window title:
CODE
[%artist% - ]$if(%title%,['['%album%[ [%disc%/]#$num(%tracknumber%,2)]'] ']%title%,%_filename%) '['[TG: %__replaygain_track_gain%][/AG: %__replaygain_album_gain%]']'


Thanks to them from whom I took some ideas.
musicmusic
Hey, I guess you took ideas from my status bar for yours then smile.gif

Anyway, I've got a new string (b14) now (im guessing the forum will mess up some of the characters):

playlist
CODE
CACACA|3A3A3A$padcut([%artist%],20) 7F7F7F│CACACA|3A3A3A $padcut([%title%],71) 7F7F7F│CACACA|3A3A3A $padcut([%album%],19) 7F7F7F│ $padcut([%date%],4) 7F7F7F│CACACA|3A3A3A $padcut([%genre%],10) 7F7F7F│CACACA|3A3A3A $padcut([%__replaygain_track_gain%],7) 7F7F7F│CACACA|3A3A3A $padcut([%__bitrate%kbps],7) 7F7F7F│CACACA|3A3A3A $padcut([$ifgreater(%__channels%,2,==,$ifgreater(%__channels%,1,--,-))],2) 7F7F7F│CACACA|3A3A3A[ %_length%]


tooltip, window title,
CODE
%artist% - %title%


file info
CODE
[%__bitrate%kbps ][%__samplerate%Hz ]$if(%__channels%,$ifgreater(%__channels%,2,%__channels%ch,$ifgreater(%__channels%,1,stereo,mono)) ,)[%__extrainfo% ][$ext(%_filename_ext%)]


statusbar
CODE
| [Track: $num(%Tracknumber%,2) | ][Year: %date% | ][Genre: %genre% | ][Gain: $cut(%__replaygain_track_gain%,5)dB | ]


Playlist font: Monofur point 8

Playlist text colour: 202,202,202

Pl background: 55,56,65

selection: 148,149,163

item frame: 205,205,205


The idea behind the playlist string is when foobar is in normal size (not maximised) it will display artist, title, album, length. but when its maximised it will display everything else, i find it very useful!

edit: where thers a &#9474 it needs replacig as describe earlier in this thread
Ghim
I myself got a little title formatting...
(It's the basic one + some colours and less controls because I always check my music tags so there won't be any error...)


CODE
$if(%_isplaying%,800000|800000$num(%_playlist_number%,4). %artist% - '['%album% #$num(%tracknumber%,2)'] '%title%,000000|000000$num(%_playlist_number%,4). %artist% - '['%album% #$num(%tracknumber%,2)'] '%title%)[ 000000|000000%_length%]


As you can see, that's a very simple but usefull title formatting for the playlist... tongue.gif

I've also modified the system tray a little :
CODE
%artist% - %title%


Just try it !

it uses both selected item colors and playing item colors...

I use 216 - 217 - 222 for playlist selection color...
Skates
Ok I just love the basic scripts, so here's what I created to suit my needs!

CODE
$num(%_playlist_number%,4) 808080| $padcut($if(%artist%,%artist%,'Unknown Artist'),60) 808080| $padcut($if(%title%,%title%,%_filename%),76) 808080|  %_length%


Let me know if anything is screwed up with it on other systems, also is their a way to right justify the track length tag?

Also is their a way to set the number of character padding, by using the window size of foobar? Then I could modify it to look the same on all systems!
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.