Help - Search - Members - Calendar
Full Version: Shortcuts & title formatting
Hydrogenaudio Forums > Hosted Forums > foobar2000 > General - (fb2k)
B
1. Can seeking be added to assigned shortcuts/actions ?

Whem foobar is minimized and i activate the main window through a global hotkey, the seek/cursor keys don't work. Other assigned shortcuts do. A configurable global hotkey for seeking would be perfect.


2. Is there some more documentation about the title formatting syntax ?
Don't know if it's already an excisting format or something completely new.

I made the playlist look like this for normal albums:
[ artist - album ] track - title

But it's a total mess with various artist albums, so i would like to make those look like this:
[ album ] track - artist / title
kjoonlee
There's a 'help' button to the top right of the display settings.. : )

Well, I use a custom tag to distinguish various artist albums, I use "VARIOUS=1", with something like "$if(%various%,VariousTitleString,NormalString)"

I think you might want to start from these:

VariousTitleString == '[' %album% ']' $num(%tracknumber%,2) - %artist% / %title%

NormalString == '[' %artist% - %album% ']' $num(%tracknumber%,2) - %title%

You'll have to tweak these a lot to catch all possible situations though.. (To get clean titles all the time.)

edit: undocumented features: use two singe quotes to get one single quote character, use $if2(%TAG1%,%TAG2%) to display either TAG1 or TAG2.
B
QUOTE
There's a 'help' button to the top right of the display settings.. : )

No, really ! biggrin.gif

QUOTE
Well, I use a custom tag to distinguish various artist albums, I use "VARIOUS=1", with something like "$if(%various%,VariousTitleString,NormalString)"

Of course thats it. I can just create a custom tag, as simple as that.

Thanks for the tip and the rest of the info, i'll go and play now.
Peter
seeking assigned to shortcuts is already on todo list; better mechanisms for seeking are badly needed first.
B
QUOTE(zZzZzZz @ Dec 24 2002 - 02:37 PM)
seeking assigned to shortcuts is already on todo list; better mechanisms for seeking are badly needed first.

OK, good to know. I'll wait for things to come.
B
QUOTE(kjoonlee @ Dec 24 2002 - 01:45 PM)
You'll have to tweak these a lot to catch all possible situations though.. (To get clean titles all the time.)

Ok, with your help i (think i) made a good string for the playlist, it's huge though.

$if($if(%various%,['['%album%']'] [$num($if(%track%,%track%,%tracknumber%),2 ) - ][%artist% /][ %title%],['['%artist% - %album%']'] [$num($if(%track%,%track%,%tracknumber%),2 ) - ][%title%]),$if(%various%,['['%album%']'] [$num($if(%track%,%track%,%tracknumber%),2 ) - ][%artist% /][ %title%],['['%artist% - %album%']'] [$num($if(%track%,%track%,%tracknumber%),2 ) - ][%title%]),%filename%)

It works like this now:

If i have a various artist album i make a custom tag like you mentioned, VARIOUS=1.

-If it finds the custom tag it displays: [album] track - artist / title
-If it does not find the custom tag it displays: [artist - album] track - title
-If it does not find any tag it displays: filename

Now i'm of to look at tag (by Case) itself, to mass create the custom tag on various artist albums.
Ardax
blink.gif Wow, that's a large string. Here's mine, which does something very similar:

$if(%various%,[%album% ['['%discnumber%']' ]- ][$num($if2(%tracknumber%,%track%), 2) - ][%artist% - ],[%artist% - ][%album% ['['%discnumber%']' ]- ][$num($if2(%tracknumber%,%track%), 2) - ])$if2(%title%,%filename%)

Mine displays:
Artist - Album [n of m] - Track - Title
or
Album [n of m] - Track - Artist - Title (if %various% exists)
or
Filename (if no tags exist)

I don't do an $if around the whole statement, because if it doesn't have at least a title, nothing else is going to be there. smile.gif
B
QUOTE(Ardax @ Dec 24 2002 - 04:30 PM)
blink.gif Wow, that's a large string.  Here's mine, which does something very similar:

Oh, now i see how to use the $if2. You're right, it can be much simpler.

Based on yours i now got:

$if(%various%,['['%album%']' ][$num($if2(%tracknumber%,%track%),2 ) - ][%artist% / ],['['%artist% - ][%album%']' ][$num($if2(%tracknumber%,%track%),2 ) - ])$if2(%title%,%filename%)

Which does the exact same thing as my large string.

Man, i feel like studying for a math exam. blink.gif
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.