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
Jan S.
Updated to split large album titles into 2 lines.
See my last post for script and screenshot.
[wo@m]
hi,
is it possible to display :
1- "track number in playlist/total tracks in playlist", like "0008/2561" for example.
2- "total album lenght" in the AlbumList, like "Thievery Corporation - DJ Kicks (56:13)"

thanks
wink.gif
nuhi
My previous link to code is:

"http://www.freewebs.com/nuhi/foobar/code.zip"

you need to paste it to new window...damn this free web site.
Thanx picmixer.
AlfredSka
QUOTE(nuhi @ May 30 2003 - 02:00 AM)
Updated...

Shot

Code

p.s. it is not based on Daelus script...you can see my previous posts.

nuhi - I am really enjoying your code, but unless I bump the terminal font (as specified by your file) down to size 6 (too small for my eyes), it is fairly bold, and not as pretty as your screenie. Are you really using a different font?
nuhi
Maybe it's because i'm using 800*600 resolution on my ancient 15" monitor...

Ok, gonna change it...updating

15:14: Updated

Font now is Lucida Console, report me any bugs or disslikes...thanx

"http://www.freewebs.com/nuhi/foobar/code.zip"

(script reports if you miss a certain TAG so that you can ad it to a file intead of blaiming "the code" smile.gif )
Melomane
Based on Daelus' / Jan S. script.
Work on win 98 , 800*600 resolution, font andale mono 8 or all mono fonts (not use terminal!).
Code
Big Image

user posted image

Modified
See next message
Jan S.
Melomane, could you make a real-size screenshot (and link to it; not post it directly)?
It's hard to see how good it is otherwise.
AlfredSka
QUOTE(nuhi @ May 31 2003 - 05:52 AM)
Maybe it's because i'm using 800*600 resolution on my ancient 15" monitor...
Ok, gonna change it...updating
15:14: Updated
Font now is Lucida Console, report me any bugs or disslikes...thanx

So far so good, looks terrific. Thanks for the update.
KDC
I'm using nuhi's code and I have two problems:

1. CD's with less than 4 tracks don't show all the info I want. It's probably unavoidable, but I thought I'd mention it.
2. I have a CD where the first song starts at 13 so the other tracks aren't in the playlist. This ends up removing the Artist, Album, etc. info. Might be unavoidable too.
anza
KDC, might that second album be Korn's Follow the Leader? Why don't you just change the tracknumbers with the "auto track numbers" feature of the masstagger? This way 13 -> 1, 14 -> 2 etc.. Or then just rip the 12 first tracks and add them to your playlist? smile.gif After all, as they're only 5 seconds of silence (if it's the Korn's album) their file sizes will be quite small.
Garf
QUOTE(Melomane @ May 31 2003 - 03:41 PM)
Based on Daelus' / Jan S. script.
Work on win 98 , 800*600 resolution, font andale mono 8 or all mono fonts (not use terminal!).

Nice, though I had some issues:

1) the spinner makes the status bar move, I replaced it:

$select($add($mod(%_time_elapsed_seconds%,3),1),'> ',' > ',' >'))

2) untagged files display is b0rk

3) any way to left align the track list?

4) how to make distance between MPC xxkbps and xxx Hz smaller?
Jan S.
QUOTE(Garf @ Jun 1 2003 - 11:35 AM)
2) untagged files display is b0rk


4) how to make distance between MPC xxkbps and xxx Hz smaller?

2)
Howso?

4)
QUOTE
[%__bitrate% Kbps                  ]

Remove some spaces here.
Garf
QUOTE(Jan S. @ Jun 1 2003 - 12:14 PM)
QUOTE(Garf @ Jun 1 2003 - 11:35 AM)
2) untagged files display is b0rk

2)
Howso?

You don't see anything...
Jan S.
The only time when you should see nothing is if you have %tracknumber% but not the rest that is needed for a nice display. If tracknumber is not found it will display the %_filename%.
Last line in the script:
QUOTE
$if(%tracknumber%,,%_filename%)

Maybe you should use %title% instead of %tracknumber% here.
tama
my format string based on nuhi's kickass design

uses %various%, %disc%, %discname%, %lasttrack%, %version%, %bonustrack%, %lyrics% tags
-doesn't leave a gap if no disc number or name is present

screenshot

script

Edit:
has no error detection for missing tags smile.gif
Lefungus
These scripts would be perfect if there could be a way to make them work with albums which have less than 4 Tracks.
I don't know how to force the formatting for each album to be 4 lines even if there are less tracks
JEN
QUOTE(tama @ Jun 1 2003 - 12:22 PM)
my format string based on nuhi's kickass design

uses %various%, %disc%, %discname%, %lasttrack%, %version%, %bonustrack%, %lyrics% tags
-doesn't leave a gap if no disc number or name is present

screenshot

script

Edit:
has no error detection for missing tags  smile.gif

@ tama

Can you show me how you got your status bar like that? I think its cool smile.gif
tama
the status bar i have at the moment was posted by foosion on page 15 of this thread
Jan S.
QUOTE(tama @ Jun 1 2003 - 02:50 PM)
the status bar i have at the moment was posted by foosion on page 15 of this thread

page number depends on how you have "Number of posts to show for each topic page" set up in your "board settings".
tama
lol i see
don't think it will be a problem for most users

edit:
though i could be wrong...
torji
Hello... smile.gif
How could I have the value various artist when album contains various artists ? (like in Melomane's screenshot)
I have tried "$if(%va%,Various Artists), but it doesnt work sad.gif
Jan S.
QUOTE(torji @ Jun 1 2003 - 04:55 PM)
Hello... smile.gif
How could I have the value various artist when album contains various artists ? (like in Melomane's screenshot)
I have tried "$if(%va%,Various Artists), but it doesnt work sad.gif

You mean if there's no %artist% tag in the file?
QUOTE
$if(%artist%,%artist%,Various Artists)

will display %artist% if present otherwise it will display "Various Artists".
smok3
probably a silly one, but how would i detect if the 'song' is a stream?

$if(%station%,...
will not work since there are quite some of them without proper tags...)
torji
QUOTE(Jan S. @ Jun 1 2003 - 07:06 AM)
QUOTE
$if(%artist%,%artist%,Various Artists)

will display %artist% if present otherwise it will display "Various Artists".

huh.gif Why would I want to have a value "various artist" in the playlist when tag %artist% is missing ?? ^^ If i had wanted that, i would have asked for "unknow artist" not "various"...

No i mean sometimes, an album can be performed by various artist, like a "compile" (sorry i cant say it in english...), and so i would like to have in the playlist the "various artists" value... Do I need to create a "various artist" tag ? ...
nuhi
tama, good job rookie wink.gif

crap, now i must make something new...not possible...need more command strings...peter help huh.gif
Jan S.
QUOTE(torji @ Jun 1 2003 - 05:35 PM)
QUOTE(Jan S. @ Jun 1 2003 - 07:06 AM)
QUOTE
$if(%artist%,%artist%,Various Artists)

will display %artist% if present otherwise it will display "Various Artists".

huh.gif Why would I want to have a value "various artist" in the playlist when tag %artist% is missing ?? ^^ If i had wanted that, i would have asked for "unknow artist" not "various"...

No i mean sometimes, an album can be performed by various artist, like a "compile" (sorry i cant say it in english...), and so i would like to have in the playlist the "various artists" value... Do I need to create a "various artist" tag ? ...

The playlist formatting only works with one file at a time so it was no way of nothing if there are different artist on the album. so yes; you need some tag that indicates that there are several artists.
upNorth
QUOTE(smok3 @ Jun 1 2003 - 04:20 PM)
probably a silly one, but how would i detect if the 'song' is a stream?

$if(%station%,...
will not work since there are quite some of them without proper tags...)

The way I do it is to check if %_time_total% is present.
E.g.:
CODE
$if(%_time_total%,,'Streaming')
torji
Ok thank you Jan.S smile.gif
anza
This is what I'm currently doing. It is based on Jan S's formatting and is currently REALLY everything but finished (just tweaked the code, for example it shows files without album/track number differently). I can't finish it (I have to use +s and -s etc) as I'm not home for two weeks and the OS on this computer is Win98... Edit: Oh, and that's also why the tracknumbers are so fucked up laugh.gif I just used "auto track number" on all albums that I have here smile.gif

EDIT2: I think I have done the basic stuff now. Now I'll only have to wait two weeks to get home so I can start making it look better (like all the other formattings (tama's, nuhi's and of course Jan S's smile.gif )

New screenshot
anza
QUOTE(Lefungus @ Jun 1 2003 - 03:33 PM)
These scripts would be perfect if there could be a way to make them work with albums which have less than 4 Tracks.
I don't know how to force the formatting for each album to be 4 lines even if there are less tracks

If you use Jan S's formatting, try this:

Change the 6 in this line to 4
CODE
$select($min(%tracknumber%,6)


then replace the formatting for tracks "track 2" to "default" with this:

CODE
// track 2
|
$padcut(
$if(%date%,$padcut($get(DATE),25),)$get(FORMAT)
,$get(WIDTH)),

// track 3
| $padcut(
$if(%genre%,$padcut($get(GENRE),25),)$get(GAIN)
,$get(WIDTH)),

//defaut
| $repeat(' ',$get(WIDTH))
)


That should do it. Actually that's just a copypaste from my own formatting, which is slightly modified from the Jan S's one, so I'm not 100% sure if it'll work, as I don't remember how things were in Jan S's formatting, but I think it should work.
smok3
QUOTE(upNorth @ Jun 1 2003 - 06:21 PM)
The way I do it is to check if %_time_total% is present.
E.g.:
CODE
$if(%_time_total%,,'Streaming')

ah, nice, tnx B)
anza
Here's my "album-by-album" formatting. It's based on Jan S's formatting (as I couldn't figure out how to it by myself smile.gif ) but I've modified it quite a bit (forth and back, so it might not be so different anymore, but at least I've gotten it to look what I want).
You need to use font "lime" in order to get it to show up properly. If you use something else, it'll look REALLY ugly smile.gif
You also should add a %lasttrack% tag (no matter what value you give to it) to the last track of the album if you want it to show up like in the screenshot. It'll work without the tag, but will not show up as intended.
And if you want to show a comment about the album, add a %comment% tag at least to tracks 3 and 4 of the album smile.gif
(Screenshot should show what you need to know... except for the correct track orded of the cds smile.gif)
(Code. At the bottom of the file is a "sort by..." string that sorts the playlist quite well IMHO.)

EDIT: Damn.. Just realized I still have to finish the code again when I get home, as lime doesn't support scandinavian letters etc, which I need when I get home. Damn. I think I'd use Lucida Console, if I only could get my hands on all the symbols it has on this w98 machine..
upNorth
My current "work in progress".
Screenshot
Playlist code
Status bar code
Font: Lucida Console

Thx to Daelus, tama and nuhi for the "base" of my design smile.gif


Btw, does anyone know of a font like Lime that supports all the symbols that Lucida Console does?
Lime works fine at size 6, but it hasn't got norwegian letters and the needed symbols...

[edit]
Added code for Status bar.
Added thx to Daelus.
[/edit]
URMEL
QUOTE(upNorth @ Jun 3 2003 - 05:21 AM)
My current "work in progress".
Screenshot
Playlist code
Font: Lucida Console

thx to tama and nuhi for the "base" of my design  smile.gif


Btw, does anyone know of a font like Lime that supports all the symbols that Lucida Console does?
Lime works fine at size 6, but it hasn't got norwegian letters and the needed symbols...

Wow, nice.

And a nice Statusbar too. Could you plz give me the code?

BTW, I want to thank all of you for these awesome playlist-"skins".
nihues
QUOTE(upNorth @ Jun 3 2003 - 11:21 AM)
My current "work in progress".
Screenshot
Playlist code
Status bar code
Font: Lucida Console

thx to tama and nuhi for the "base" of my design  smile.gif


Btw, does anyone know of a font like Lime that supports all the symbols that Lucida Console does?
Lime works fine at size 6, but it hasn't got norwegian letters and the needed symbols...

[edit]Added code for Status bar[/edit]

Best theme so far here.... but Lucida doesnt work.... used lime but its very small, so im using drif font from the fonts package of blackbox and works nice with 1024x768

Liked the way it handle VA albums or tracks without tag!
Thanx great work
Melomane
I gave up completely Daelus's genre script, because there are two problems:
playlist search/sorting don't work fine.
when playlist is random , display is too random...

Is it possible to know the value of a field in the [current playlist number -1] ?
if possible that would open large possibility of formatting.
PETER?

New formatting full compliant to defaut settings:

user posted image


Big image

Script

EDIT: add to various artist album this tag: VA value: "Various Artists"
upNorth
QUOTE(Melomane @ Jun 4 2003 - 10:54 AM)
I gave up  completely Daelus's genre script, because there are two problems:
playlist search/sorting don't work fine.
when playlist is random , display is too random...

is it possible to know the value of a field in the [current playlist number -1] ?

if possible that would open large possibility of formatting.
PETER?

I know of the problems if you use radomized playlist or search, but as I see it you got to choose between readability when having alot of complete albums in the playlist, and a playlist that works great with your "my top 200/partylist".
This could be remedied to some extent, by adding presets, which I would love, but I don't know if Peter can see a good reason to do it. Another nice feature would be to override background colors and such in the formatting code.

As for you "memory" function I'm pretty sure the answer is no. If it had been possible we would have seen alot more complex playlist designs in this thread.
Melomane
I don't want a "memory " function but the possibility to know value of a field refered to value of playlist number;
I.E.

if %album% (current %_playlist_number%) = %album%( current %_playlist_number% - x)
when ....
if not ....

i think it is necessary to add new function
damjanek
@upNorth
hey!
i'm using your playlist code and i've got a problem:
how to sort tracks by number (it's hard to exlpain)
i mean that if i have an album with more than 10 tracks
it shows as: "1 10 11 12 2 3 4..."
i want to organise it to look normal, like:
"1 2 3 4 5 6 7 8 9 10 11..."etc.
could you tell me how to do that?
DotNoir
I sort my files with this
CODE
%ARTIST% AND %ALBUM% AND $num(%tracknumber%,2) AND %TITLE%
damjanek
heh....thanks DotNoir
now everything is ok...
upNorth
@damjanek
I've only used the my shortcut key for "sort by path" until now. Don't know why I didn't miss the sort by artist/album/tracknumber, because it is quite useful.

After some testing I found this to work pretty good:
CODE
%VARIOUS% AND $if(%VARIOUS%,%ALBUM% AND $num(%tracknumber%,2),%ARTIST% AND %ALBUM% AND %_path% AND $num(%tracknumber%,2))

But in the end it depends alot on your filenameing and tagging. The string above will put all Various Artists albums at the bottom, assuming you have set the "VARIOUS" tag which is needed, if you want the playlist to display as intended.

Hope this was of any help smile.gif

[edit]
Better post late than never... smile.gif
Now you got me hooked on optimizing sort strings, to catch every strange formatting an lack of tags rolleyes.gif
[/edit]
damjanek
CODE
%VARIOUS% AND $if(%VARIOUS%,%ALBUM% AND $num(%tracknumber%,2),%ARTIST% AND %ALBUM% AND %_path% AND $num(%tracknumber%,2))

i've tried your string, but it made some chaos in my playlist......now i'm using
CODE
%ARTIST% AND %ALBUM% AND $num(%tracknumber%,2) AND %TITLE%
by DotNoir, and it works fine....but if i'll find some mistakes in your code, i'll tell ya
thx for help
billcow
Someone with a decent webspace (and preferrably plenty of free time smile.gif) should make a centralized repository for playlist formatting strings. The problem with this thread (as I see it) is that there isn't a standard format for the formatting strings. Whoever sets up the site would (in my mind) need to (at a minimum) come up with a consistent way of seperating the playlist strings and associated fonts, colors, etc. in a text file. Preferrably with translation of special characters to $char(xxx) encoding, actual links/downloads of the fonts used and screenshots, although those would be iceing on the cake.

Any takers?
idvah
is there anyway to add a sort of background pattern, non-graphical, to foobar2k.
upNorth
Kind of like the foobar2000 text to the right here?
screenshot
idvah
QUOTE(upNorth @ Jun 6 2003 - 02:42 PM)
Kind of like the foobar2000 text to the right here?
screenshot

whoa thats pretty cool, I wasn't expecting something like that.... I'm thinking more along the lines of this:
user posted image
billcow
screenshot
code

no fancy coding stuff - just fancy coloring.

for idvah:
The "$if($greater(1,$mod(%_playlist_number%,2))..." part sets up alternating colors based on playlist index. "$puts(space,...)" sets a variable to be used in place of a space for padding purposes. In other words, if you use "$repeat($get(space),x)" as I have you will get a pseudo-adjustment for the background color.

upNorth:
i'm going to have to ask you to post that foobar text thing. totally cool.
anza
QUOTE(billcow @ Jun 7 2003 - 08:00 AM)
screenshot
code

no fancy coding stuff - just fancy coloring.

for idvah:
The "$if($greater(1,$mod(%_playlist_number%,2))..." part sets up alternating colors based on playlist index. "$puts(space,...)" sets a variable to be used in place of a space for padding purposes. In other words, if you use "$repeat($get(space),x)" as I have you will get a pseudo-adjustment for the background color.

upNorth:
i'm going to have to ask you to post that foobar text thing. totally cool.

The transition in your progress bar is cool, could you give us the code? I'm not in the mood for trying to figure it out myself smile.gif
anza
upNorth propably has a better way of doing this, but I figured a way to get the foobar2000 text there... Here's a screenie for you. And yes, I still haven't bothered to change the track numbers to what they're supposed to be tongue.gif it's completely the same for me what they are here, as long as they're right at home.

Next thing is to tweak the colors and the characters smile.gif I just quickly made that one with #s.
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.