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

Foobar2000 format strings

Reply #25
Quote
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

Foobar2000 format strings

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

Foobar2000 format strings

Reply #27
Sure thing.
bigahoona, remember to read the warning on pages first  they do have a warning.

Foobar2000 format strings

Reply #28
Quote
bigahoona, remember to read the warning on pages first  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 
that’s all I have to say

Foobar2000 format strings

Reply #29
here is my string:

Playlist:
Code: [Select]
$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: [Select]
$if(%artist%,$if(%title%,%artist% - %title%,NO TAG - "%filename%"),NO TAG - "%filename%")


Status bar:
Code: [Select]
[%comment%]


Window title:
Code: [Select]
"%filename%"
Rommel

Foobar2000 format strings

Reply #30
Quote
Quote
bigahoona, remember to read the warning on pages first  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 
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 .

Foobar2000 format strings

Reply #31
playlist:
Code: [Select]
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:

to bring the pieces back together we need to rediscover communication.

Foobar2000 format strings

Reply #32
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: [Select]
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


Foobar2000 format strings

Reply #33
mafe: what font are you using?
.


Foobar2000 format strings

Reply #35
Thanks.. 
.

Foobar2000 format strings

Reply #36
I always tell others about how simple I like my Foobar2000, maybe now I can show you:


The strings are all default except for the following two:

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

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

voltron

Foobar2000 format strings

Reply #37
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: [Select]


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

Foobar2000 format strings

Reply #38
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,

Foobar2000 format strings

Reply #39
Yep, few potential delimiters can be found in 'character map' for any particular font.
For 'courier new' it could be: ░ or ║ or ╬ as well.

Foobar2000 format strings

Reply #40
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,

Foobar2000 format strings

Reply #41
Inspired by your work :

Code: [Select]
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 ?
It's a 'Jump to Conclusions Mat'. You see, you have this mat, with different CONCLUSIONS written on it that you could JUMP TO.

Foobar2000 format strings

Reply #42
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...
A Dwarf has its own way to fight !

Foobar2000 format strings

Reply #43
Quote
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
.

Foobar2000 format strings

Reply #44
This is my setup - it is very similar to default, and I use these colors because they are one inverted to other:
Code: [Select]
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

Foobar2000 format strings

Reply #45
Code: [Select]
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.

Foobar2000 format strings

Reply #46
Updated strings for b14, try this!

PL:
Code: [Select]
$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: [Select]
| [Album: $cut(%album%,26) | ][Track: $num(%Tracknumber%,2) | ][Length: %_length% | ][Year: %date% | ][Genre: %genre% | ]


Window title:
Code: [Select]
[%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.

Foobar2000 format strings

Reply #47
Hey, I guess you took ideas from my status bar for yours then

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

playlist
Code: [Select]
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: [Select]
%artist% - %title%


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


statusbar
Code: [Select]
| [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
.

Foobar2000 format strings

Reply #48
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: [Select]
$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... 

I've also modified the system tray a little :
Code: [Select]
%artist% - %title%


Just try it !

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

I use 216 - 217 - 222 for playlist selection color...
A Dwarf has its own way to fight !

Foobar2000 format strings

Reply #49
Ok I just love the basic scripts, so here's what I created to suit my needs!

Code: [Select]
$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!

 
SimplePortal 1.0.0 RC1 © 2008-2020