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
kode54
QUOTE(mai9 @ Oct 1 2003, 11:22 PM)
QUOTE(kode54 @ Oct 1 2003, 07:13 PM)
Copy the characters you want manually from Character Mapper. If that doesn't work... then I guess it's a problem with Unicode support, or lack thereof.

yes, I already did that.

Â, Ã and Ú are lines and corners with Terminal font in win98SE.

But I am saying that the '?' characters are not used, and therefore, not seen in the interface.

I smell that '?' characters are the ones to be used in the last track of the album. And it doesn't use them. mad.gif Anybody knows why?

Whoops, wasn't really paying attention.

You see, his code requires that every last track in every one of your albums have a "LASTTRACK" item in the tag:


CODE
//last track (decision)
$puts(is_last,$if(%lasttrack%,1,0))
Lyx
hmm, i'm trying to do a nice playlist design, but there's one function in the formatting help, which i don't understand:

QUOTE
$blend(a,b,c,d)
generates a color in c/d between colors a and b


I don't really get the syntax of this function - if i would want to generate a color between black and white (which would be grey), how would the function look like?

Any help on this would be greatly appreciated smile.gif

- Lyx
musicmusic
a and b are colour codes – i.e. 000000.

The colour returned will be in between, or equal to, a or b. Where in between these is decided by c divided by d, which will be a scale of 0 to 1, 0 will return a, 1 will return b.

Example, $blend($rgb(0,0,0),$rgb(255,255,255),%_time_elapsed%,%_time_total%)

As you progress through the song, the colour returned by this function will fade from black to white (use this example on the statusbar)

PS. This is all from memory, may be some discrepancies.

Edit: so if you wanted the colour exactly in between black and white, use

$blend($rgb(0,0,0,0,0,0),$rgb(255,255,255,255,255,255),1,2)
Lyx
thank you! I got it smile.gif you helped me alot.

I think i might post the results on the fb2k formatting site and give you some credits - but this may take a while, since right now, only the playlist, osd and window-title are done smile.gif

- Lyx
musicmusic
QUOTE(Lyx @ Oct 2 2003, 08:11 PM)
thank you! I got it smile.gif you helped me alot.

No problem wink.gif

QUOTE
I think i might post the results on the fb2k formatting site and give you some credits


It was only a small explanation, Im sure you will be writing the rest (well, all) of your strings. smile.gif
Lyx
Well, 99% of the code is written from scratch by me. But i used a small part of upNorth's exellent routine for guessing artist/track-info from the filename (although i have modified most of it).

- Lyx
musicmusic
QUOTE(Lyx @ Oct 2 2003, 08:51 PM)
Well, 99% of the code is written from scratch by me. But i used a small part of upNorth's exellent routine for guessing artist/track-info from the filename (although i have modified most of it).

- Lyx

Hmm i havent looked at his but i wrote my own a few days ago, maybe (hopefully) his is better (ill look now).. i didnt like mine but it works with the untagged files (to guess only artist and title values) i have anyway, which will be sorted/tagged one day...
global
G'day all smile.gif
sorry to make this my first post but, gotta start somewhere...I've read everypage of this thread but havent found the answer..so

any help with fixing the way this looks would be good

Look Here

~global...TIA
AstreaEdge
Set playlist font to "Lucida Console". Set statusbar font to "Lucida Sans Unicode". Read the information provided on the Foobar Formatting site when changing format. Nearly all of the formats on the site detail which fonts to use for the the playlist and the status bar for optimal results.
mai9
QUOTE(kode54 @ Oct 2 2003, 03:11 AM)
You see, his code requires that every last track in every one of your albums have a "LASTTRACK" item in the tag:


CODE
//last track (decision)
$puts(is_last,$if(%lasttrack%,1,0))

ok, thanks. Now I understand ohmy.gif
global
QUOTE(AstreaEdge @ Oct 3 2003, 09:58 PM)
Set playlist font to "Lucida Console". Set statusbar font to "Lucida Sans Unicode". Read the information provided on the Foobar Formatting site when changing format. Nearly all of the formats on the site detail which fonts to use for the the playlist and the status bar for optimal results.

Thankyou,Thankyou...all is good now smile.gif
DustMagnet
For those using the FAKETRACK tag to force formatting for albums with missing songs, here's a Masstagger script (useable in Foobar v.7.1 betas) that you might want to use to autonumber the tags:

copy TRACKNUMBER to REALNUMBER
auto tracknumber
copy TRACKNUMBER to FAKETRACK
copy REALNUMBER to TRACKNUMBER
remove REALNUMBER

This has already saved me a lot of work. ;-)

Be sure to save the script so that you need only enter it once.
anza
A nice little "now playing indicator" for all of your formattings smile.gif Works at least with Lucida Console, not sure about other fonts.

$puts(np,$if(%_isplaying%,YOUR COLOR CODE HERE' '
$select($substr($rand(),1,1),$char(9834),$char(9835),$char(9834),$char(9835),$char(9834),$char(9835),$char(9834),$char(9835),$char(9834),$char(9835))
$select($substr($rand(),1,1),$char(9834),$char(9835),$char(9834),$char(9835),$char(9834),$char(9835),$char(9834),$char(9835),$char(9834),$char(9835))
$select($substr($rand(),1,1),$char(9834),$char(9835),$char(9834),$char(9835),$char(9834),$char(9835),$char(9834),$char(9835),$char(9834),$char(9835))
$select($substr($rand(),1,1),$char(9834),$char(9835),$char(9834),$char(9835),$char(9834),$char(9835),$char(9834),$char(9835),$char(9834),$char(9835))
$select($substr($rand(),1,1),$char(9834),$char(9835),$char(9834),$char(9835),$char(9834),$char(9835),$char(9834),$char(9835),$char(9834),$char(9835)),)
)

edit: typo
MachineHead
My one and only meager contribution to this thread.

CODE

'[color=aqua]'
'[list]'
'[*]' '[color=black]'Foobar2000 is now playing:'[/color]' '[color=blue]'%title%'[/color]'  
'[*]' '[color=black]'From the album:'[/color]' '[color=blue]'%album%'[/color]'  
'[*]' '[color=black]'By:'[/color]' '[color=blue]'%artist%'[/color]'
'[/list]'
'[/color]'


Use in the copy command for what is now playing. (Right click on sys tray icon)

Looks like this:

  • Foobar2000 is now playing: Black Star
  • From the album: Swansong
  • By: Carcass


Modify as you see fit.
Burrito
I don't like the default foobar playlist with these tabs and "album" information and such...not easy to read, too cluttered.

I prefer Winamps way of a playlist - minimalistic but enough information for me.
I never load all of my songs into foobar and then use it as some sort of "media library" because thats not what it is...its a file player!
Maybe im just one of the old guys around here that prefers to work "file based" instead of "application based".

I changed the default playlist format string be work like Winamps playlist - just better. If no "artist" tag is found, but a "title" tag, it dispays "unknown artist" instead of nothing, like Winamp does.

Just want to help some newbies that just want to have their normal playlist back after the switch to fb.

CODE
$num(%_playlist_number%,$len(%_playlist_total%)).
$if(%title%,$if2(%artist%,unknown artist)' - '%title%,%_filename%)
$tab(4)
$if(%_isplaying%,'=> ')
[$pad_right(%_length%,5,0)]
Lyx
Hi,

I've added a new Style to the Foobar2000 Formatting Strings Website

It's called "Gems". Contrary to some other styles, this one has been nearly completely written from scratch(with 2 small exceptions - see the notes on the formatting site).

Have fun smile.gif
- Lyx


EDIT: OSD-String removed - you can now find it together with the other strings at the fb2k formatting site.
smok3
is there a %_playlist_name% type of tag in 0.7.1 ?
musicmusic
QUOTE(smok3 @ Oct 12 2003, 10:24 PM)
is there a %_playlist_name% type of tag in 0.7.1 ?

In playlist & copy command yes, it is %_playlist_name%.

Not in sort incoming files where i wanted it though sad.gif
smok3
QUOTE(musicmusic @ Oct 12 2003, 11:45 PM)
QUOTE(smok3 @ Oct 12 2003, 10:24 PM)
is there a %_playlist_name% type of tag in 0.7.1 ?

In playlist & copy command yes, it is %_playlist_name%.

Not in sort incoming files where i wanted it though sad.gif

updated my config, so it uses either playlist name (like pjharvey_single) or additional tag (foobar=single) to display the entire playlist or just the tagged songs as singles.

http://users.volja.net/smoker/pub/foobar2000.cfg
cRoMo
UpNorth, is it possible that You add the "bonus track" displaying stuff (as it is implemented in your's "hybrid" formatting) into "dynamic" formatting?
arman68
QUOTE(Lyx @ Oct 12 2003, 05:14 PM)
Here's a nice bonus - the settings & string for foo_osd which are also visible in the Gems-Screenshot on the fb2k formatting site.

This looks fantastic! And it is a great base for any other OSD. Thanks.

@Kode54: how about using this (or a variation) as the default format string for foo_osd?
musicmusic
Lyx: Nice string! But $char(1472) is a hebrew character. If you use the gdi+ version of the osd, that line goes backwards in an odd way, took me a while to work out what was going on.. wink.gif

In fact , colour codes seem to do odd things to the characters too in the gdi+ version.. oh well no gdi+ for me.
Lyx
oh, thanks for the report - i don't use the gdi+ version, so i didn't notice it.

I'll look into changing it into another (similiar) char. I did like the char, because it isn't just a vertical dash, but also looks a bit "gem"-ish wink.gif.

However - i won't change anything to the color-codes, since this would be a major bug in foo_osd gdi+, and no fault of my string.

I'll update this post as soon as i've changed the char-problem.

There will be at least one additional future update of my osd-string - a decent transition in the progressbar, and general tidy up and de-junk the code - but i can't promise when this happens (I've worked far over 100hours on the gem-style. The funny thing is that i usually hate programming and maths *grin* I'm burned out and won't do anything too fb2k-string-like for a while, except for bug-squashing.)

- Lyx

EDIT: char-problem solved and string updated. However, i may be wrong, but it appears that the problem with the char in reality means that foo_osd gdi+ has unicode-problems - so if you have files/tags with unicode-characters, it may be possible that future problems appear. If this happens, use foo_osd in the non-gdi+ version instead.
musicmusic
QUOTE(Lyx @ Oct 13 2003, 06:15 PM)
However - i won't change anything to the color-codes, since this would be a major bug in foo_osd gdi+, and no fault of my string.

Yes i know/wasnt expecting you to change it, it was more of a general comment. I thought it would have parsed out the colour codes anyway, it might be something directly related to the colours / colour changing otherwise.
upNorth
QUOTE(cRoMo @ Oct 13 2003, 03:06 PM)
UpNorth, is it possible that You add the "bonus track" displaying stuff (as it is implemented in your's "hybrid" formatting) into "dynamic" formatting?
Done! Contents of the %bonustrack% tag will be displayed after the title in a darker color.
See if it works like you want it to, if not I'm open to suggestions. I originally added this tag to "hybrid" to do what the optional coloring of parentheses does now, so I don't use this myself anymore...


A couple of days ago I also added support for utilizing the playlist name do do what smok3 is talking about a few posts up. Mine ("dynamic") looks for '-s-' (without quotes) in the playlist name as default, but that can be changed in the config area. The presence of this indicator will force single mode for that playlist/tab.
Lyx
yep, i didn't take any offense and did know that it was just a (interesting) comment.

Don't know for sure - maybe the gdi+ version has problems with $blend, $transition or combination of both.

- Lyx
musicmusic
QUOTE(Lyx @ Oct 13 2003, 07:15 PM)
yep, i didn't take any offense and did know that it was just a (interesting) comment.

Umm, ok wink.gif
QUOTE
Don't know for sure - maybe the gdi+ version has problems with $blend, $transition or combination of both.
Assuming you've seen what i meant about the colour codes, it does weird things to the spacing, i dont see why not, but i cant be bothered to test
smok3
latest greatest
http://users.volja.net/smoker/pub/foobar2000.cfg
snapshot
http://users.volja.net/smoker/pub/foobar2000.png

3 modes of display:
1. album (default)
2. single (either missing album or artist tags, tagged with additional tag 'foobar=single' or playlist name includes 'single' , like 'pj_singles')
3. various artists (either tagged with 'foobar=va' or 'various=1' or directory name includes 'va-')

p.s. the 'square' curve is there only to give a visual feedback about the correct ordering when in album mode.
p.s.2 playlist font = Lucida Sans Unicode (but can be anything you want)

edit: updated to be compatible with freedb tagger plugin, also colors are now configurable in the header of the playlist. (not tested very much at this point)

user posted image
cRoMo
QUOTE(upNorth @ Oct 13 2003, 08:14 PM)
Done! Contents of the %bonustrack% tag will be displayed after the title in a darker color.

Well, it works, but still not the way it used to do in Hybrid formatting. All the bonus songs in my albums collections are tagged like this: %bonustrack%=yes. In this case Your formatting displays "yes" after the title name of bonus track in playlist. The Hybrid would display the predefinied text instead of tag's content, for example ": BONUS :". So my idea for You is to make Your formatting to display that predefinied text instead of tag's content.

PS. Sorry for such a big delay in answering, have been busy recently smile.gif
panzemeyer
QUOTE(Burrito @ Oct 12 2003, 06:59 PM)
I don't like the default foobar playlist with these tabs and "album" information and such...not easy to read, too cluttered.

I prefer Winamps way of a playlist - minimalistic but enough information for me.
I never load all of my songs into foobar and then use it as some sort of "media library" because thats not what it is...its a file player!

Funny, the very reason why i'm using foobar is because it allows me to play files and browse through my entire audio collection without switching from a file explorer to a player on and on. Plus, its unique sorting capabilities, which you obviously can't fully benefit if you only load a few files at a time in foobar wink.gif
upNorth
@cRoMo: I have updated "dynamic", please test it and see if it does what "hybrid" used to do, and what you would like it to do. I have changed it to display *Bonustrack* if a %bonustrack% tag is present and the contents of the tag doesn't matter...
cRoMo
@upNorth: Thanks! Work's great now. Seems that You've a perfect formatting, at least it is perfect for me smile.gif biggrin.gif
Burrito
QUOTE(panzemeyer @ Oct 25 2003, 02:03 AM)
Funny, the very reason why i'm using foobar is because it allows me to play files and browse through my entire audio collection without switching from a file explorer to a player on and on. Plus, its unique sorting capabilities, which you obviously can't fully benefit if you only load a few files at a time in foobar  wink.gif

Ahh, yes. Forget to mention it...i changed the sorting of foobar back to "%_filename%", because it annoyed the hell out of me if it tried to sort untagged/bad tagged files and got the play order all wrong.

What people are trying to do here with playlist formating is, imho, trying a program to do what it was never designed to do in the first place...eg. the use of fixed width fonts to allow them to "hack together" a table of files sorted by album...would never work with my badly tagged files!

It is just the oldschool way i'm using windows that shines thru here. Explorer is always open anyway, because i do so much with it.

How i said before..my way of using windows is more file and less app-based.
I might be able to overcome my habits handling files the day foobar gets a real "Media Library", though... tongue.gif

With "unique sorting capabilities" you mean "Sort incoming files by:", right?

Everyone his own foobar, i would say. biggrin.gif
quazi
upNorth, after using your 'dynamic' format for the past 16 hours or so (as long as I've had foobar tongue.gif), I noticed something. Your concept of eliminating repetitive data is very nice (grouping the artist, album, genre, etc., and replacing it with 'white space' on the left), but I'm curious why you didn't cluster it by artist as well?

CODE

-------[Artist]-------+-----------[Album]-------+01+-track01---------------
                      |MP3      [year] Genre    |02| track02
                      |192                      |03| track03
                      |VBR                      |04| track04
                                                |05| track05
                                                |06| track06
                      +------[Another Album]----+01+-track01---------------
                      |MP3      [year] Genre    |02| track02
                      |192                      |03| track03
                      |VBR                      |04| track04
                                                |05| track05
                                                |06| track06
-------[Artist]-------+-----------[Album]-------+01+-track01---------------
                      |MP3      [year] Genre    |02| track02
                      |192                      |03| track03
                      |VBR                      |04| track04
                                                |05| track05
                                                |06| track06


user posted image

It would shift most of the data to the right, and move the 'white space' (which is currently colored black) to the left side under the artist -- which would be listed for the first album instead of all of them.

I can see how this would be a problem though:
- If the artist has enough tracks, and you scroll far enough, you could be in a situation where you won't see the artist's name anywhere on screen.
- Since the second album's title is longer than the others, you would have to adjust all albums for the sake of consistency.
- (an inherent problem) If I scramble this playlist, the layout won't make any sense whatsoever.
- Also, how many people really use foobar fullscreen in 1280x960?

(aside from this minor criticism, thank you for an excellent format!)
DotNoir
AFAIK there's no way disabling the artist the way you want, because the format strings are album/tracknumber specific, so the album tag is eliminated by examining the tracknumbers. And like I said before there's no way that I know to disable repeating artist tags. I might be wrong, but I'm quite sure about this.
curian
Hi!

For example I have a directory structure like C:\dir\di1\dir2 etc...
What shall I do if I want to get the directory from dir1.
I want to cut off the first two levels.
but I dont know how many levels should I cut off, it depends on the current track in its directory.

I can't figure out a good code unsure.gif
kode54
RTFM? :B



$directory() on %_path%


QUOTE(musicmusic @ Oct 13 2003, 11:21 AM)
QUOTE(Lyx @ Oct 13 2003, 07:15 PM)
Don't know for sure - maybe the gdi+ version has problems with $blend, $transition or combination of both.
Assuming you've seen what i meant about the colour codes, it does weird things to the spacing, i dont see why not, but i cant be bothered to test

Please elaborate. I am not having a problem with that character and GDI+, so I assume you must have changed the code in some way.
billcow
Actually, if you want to kludge things again (ah, gotta love that word. strikes terror into the hearts of all who hear it smile.gif ), you can show only the first artist. Just use some additional tag %firstalbum% or something for the first album by each artist. Yeah, it's a pain, but so is adding %lasttrack%, am I right?
stripe
While fb's playlist system is really powerful, it could use a lot of improvement as well. For me the best example of this is how one of the most common organizational features is based on a 'hack'. (using the tracknumber to selectively show data)

Some kind of integration of the album list component into to the actual playlist structure would add a TON of flexibility. Or of course global variables would make for some infinitely more friendly looking playlists.

stripe/ben
bidz
@upNorth:

In non-album mode, the bitrates of the MPC files are not shown - here's a screenshot (look on the bottom):

user posted image

Is it possible to fix this? - I'm using Foobar2000 0.7.2 and your latest updated format strings..
upNorth
@bidz:
Thanks for your feedback. I have fixed it and uploaded a new version, please tell me if it didn't do the trick. As I encode my musepack files with the standard profile I have not seen this obvious problem in my code before now.
I also improved the codec related code a little i general.


Btw: Any feedback is appreciated as it's hard to make sure all possible variations works as they should.


Edit: Spelling
Rasi
i dont even know how to enable non-album-view... thought it would recognise automatically what to use, but it doesnt obviously... anyone can help?
smok3
QUOTE(Rasi @ Oct 29 2003, 01:42 AM)
i dont even know how to enable non-album-view... thought it would recognise automatically what to use, but it doesnt obviously... anyone can help?

depends entirely on specific playlist script. (with my config it is either missing album or artist tags, tagged with additional tag 'foobar=single' or playlist name includes 'single' , like 'pj_singles')
bidz
QUOTE(upNorth @ Oct 28 2003, 01:28 PM)
@bidz:
Thanks for your feedback. I have fixed it and uploaded a new version, please tell me if it didn't do the trick. As I encode my musepack files with the standard profile I have not seen this obvious problem in my code before now.
I also improved the codec related code a little i general.


Btw: Any feedback is appreciated as it's hard to make sure all possible variations works as they should.


Edit: Spelling

Yep, worked fine now smile.gif superb!.. thanks!
curian
I've tried $directory(%_path%) already, but it extracts only the n-th directory in the structure, but I need every dir from the given level.
'drive:\firstdir\' should be cut off, and everything above this should be displayed.
DotNoir
Then you have to use something like this

CODE
$replace(%_path%,F:\mp3\,)


or well, a you have to manually enter every [drive letter]\[directory]

CODE
$replace($replace($replace(%path%,d:\blaa,),e:\blaa,),f:\blaa,)

edit as stated on another thread... this should work the same as above
CODE
$replace(%path%,d:\blaa,,e:\blaa,,f:\blaa,)
upNorth
QUOTE(curian @ Oct 29 2003, 11:33 AM)
I've tried $directory(%_path%) already, but it extracts only the n-th directory in the structure, but I need every dir from the given level.
'drive:\firstdir\' should be cut off, and everything above this should be displayed.

You can try one of these:

Without filename:
CODE
$puts(PATH,$replace(%_path%,%_filename_ext%,))
$puts(PATH,$right($get(PATH),$sub($len($get(PATH)),$strchr($get(PATH),'\'))))
$right($get(PATH),$sub($len($get(PATH)),$strchr($get(PATH),'\')))


With filename (and extension):
CODE
$puts(PATH,$right(%_path%,$sub($len(%_path%),$strchr(%_path%,'\'))))
$right($get(PATH),$sub($len($get(PATH)),$strchr($get(PATH),'\')))


Remove 0-5 levels without filename:
CODE
$puts(Remove_X_levels,4)
$puts(PATH,$replace(%_path%,%_filename_ext%,))
$ifgreater($get(Remove_X_levels),0,$puts(PATH,$right($get(PATH),$sub($len($get(PATH)),$strchr($get(PATH),'\')))),)
$ifgreater($get(Remove_X_levels),1,$puts(PATH,$right($get(PATH),$sub($len($get(PATH)),$strchr($get(PATH),'\')))),)
$ifgreater($get(Remove_X_levels),2,$puts(PATH,$right($get(PATH),$sub($len($get(PATH)),$strchr($get(PATH),'\')))),)
$ifgreater($get(Remove_X_levels),3,$puts(PATH,$right($get(PATH),$sub($len($get(PATH)),$strchr($get(PATH),'\')))),)
$ifgreater($get(Remove_X_levels),4,$puts(PATH,$right($get(PATH),$sub($len($get(PATH)),$strchr($get(PATH),'\')))),)
$right($get(PATH),$sub($len($get(PATH)),$strchr($get(PATH),'\')))
Select the number of levels/directories to remove in the first line.
If you want the filenames too, change the second line to:
CODE
$puts(PATH,%_path%)




Edit: Minor change in the first code
Edit 2: Added the 0-5 code. I've got to stop now... ph34r.gif
DotNoir
and as always we can count on UpNorths help... that's (again) a nice piece of code, man... Damn you're good.
MachineHead
QUOTE(MachineHead @ Oct 12 2003, 11:11 AM)
My one and only meager contribution to this thread.

CODE

'[color=aqua]'
'[list]'
'[*]' '[color=black]'Foobar2000 is now playing:'[/color]' '[color=blue]'%title%'[/color]'  
'[*]' '[color=black]'From the album:'[/color]' '[color=blue]'%album%'[/color]'  
'[*]' '[color=black]'By:'[/color]' '[color=blue]'%artist%'[/color]'
'[/list]'
'[/color]'


Use in the copy command for what is now playing. (Right click on sys tray icon)

Looks like this:



  • Foobar2000 is now playing: Black Star  

  • From the album: Swansong  

  • By: Carcass



Modify as you see fit.

Can someone offer a suggestion on how to I would go about modifying this for currently playing and queued files in the copy command?

What I'm looking for is how to make fb2k use the copy command for the, 'What are you listening to now?', thread. I pasted a small playlist lastnight but it seems a bit skewed when you look at it. Obviously, all the tracks cannot be playing at the same time.

Would it even be possible to assign a certain copy command for the currently playing track, and have a different set of copy commands for the queued files?

And by queued I Mean simply selecting tracks from a playlist > R-Click and copy names. Then a paste to the forum.

I thought that it should look something like this:

  • Foobar2000 is now playing: Set the Controls for the Heart of the Mother (Pt. I)
  • From the album: Dark Side of the Moog IX
  • By: Pete Namlook and Klaus Schulze


And next up is:

  • Foobar2000 will be playing: Set the Controls for the Heart of the Mother (Pt. II)
  • From the album: Dark Side of the Moog IX
  • By: Pete Namlook and Klaus Schulze

  • Foobar2000 will be playing: Set the Controls for the Heart of the Mother (Pt. III)
  • From the album: Dark Side of the Moog IX
  • By: Pete Namlook and Klaus Schulze

  • Foobar2000 will be playing: Set the Controls for the Heart of the Mother (Pt. IV)
  • From the album: Dark Side of the Moog IX
  • By: Pete Namlook and Klaus Schulze

  • Foobar2000 will be playing: Set the Controls for the Heart of the Mother (Pt. V)
  • From the album: Dark Side of the Moog IX
  • By: Pete Namlook and Klaus Schulze

  • Foobar2000 will be playing: Set the Controls for the Heart of the Mother (Pt. VI)
  • From the album: Dark Side of the Moog IX
  • By: Pete Namlook and Klaus Schulze



Note: I manually entered the will be here in the forum. I'd like to just be able to use some sort of string to capture this info.

Any suggestions appreciated.
foosion
@MachineHead:
Assuming you use Default order, you could select some tracks starting with the currently playing. Then you can detect the currently playing one with %_isplaying%, every other track will be in the 'up next' queue.
The structure of the code is like this (output strings are quoted for clarity):
CODE
'foobar2000 '$if(%_isplaying%,'is now','will be')' playing '

// rest of track info, I suggest you modify this :)
%artist% '['%album% #%tracknumber%']' %title%$char(10)

$if(%_isplaying%,
'And next up is:'$char(10)
,)

Of course you still need to add some formatting code to make it look good. However, there is one disadvantage: The 'And next up is:' will show even if there is only one track in the selection.
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.