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
Mike Giacomelli
Stupid question:

When ever I use a playlist, it never preserves the background color from the pic. How do I make my background anything but white?
AlfredSka
QUOTE(Mike Giacomelli @ May 8 2003 - 04:40 PM)
Stupid question:

When ever I use a playlist, it never preserves the background color from the pic.  How do I make my background anything but white?

You're probably looking in the Title Formatting preference page. Instead go to Display and select the "Playlist Background Color" button.
SNYder
QUOTE(pootify @ Apr 23 2003 - 12:27 AM)
foobar screenshot (high res)

not so much programming innovation, just clean color scheme. also made slight modification to just show artist - title if no album info is present, instead of the (imho) ugly "???" tag. the playlist code is modified from ranor's, the status bar is someone else's in this thread biggrin.gif. also took out the mp3pro indication code since i didn't have any mp3pros, hee. i was going for slim.

CODE

//PLAYLIST
//make playlist number black if playing
$if(%_isplaying%,000000|000000>>>>,FFFFFF|FFFFFF$num(%_playlist_number%,3).)

0000FF|0000FFù

// if playing make orange
$if(%_isplaying%,
// artist
27ABFF|27ABFF%artist%
// separator
0000FF|0000FF ù

//show album and track if tags exist else just show title
$if(%album%,
// album
27ABFF|27ABFF %album% '('%date%')'
// separator
0000FF|0000FF ù
// title
27ABFF|27ABFF $num(%tracknumber%,2).,) 27ABFF|27ABFF%title%
// length
$char(9)27ABFF|27ABFF%_length%,

// else if not playing make black and white
// artist
000000|000000%artist%

$if(%album%,
// separator
0000FF|0000FF ù
//show album and track if tags exist else just show title
000000|000000$if(%album%,$abbr(%album%,30),) $if(%date%,'('%date%')'
// separator
0000FF|0000FF ù ,)
// title
FFFFFF|FFFFFF
$if(%tracknumber%,$num(%tracknumber%,2). ,),0000FF|0000FF ù )FFFFFF|FFFFFF%title%
// length
$char(9)FFFFFF|FFFFFF%_length%)


playlist background color - R: 103 G: 126 B: 100
playlist selection color - R: 132 G: 156 B: 128
selected item frame - black
playlist font - lime (you can find it in the earlier pages of this thread)

oh, and i used the ° symbol in the track progress bar because i think that looks neater biggrin.gif

i like your set up a lot, but it comes in all screwed up when i just copy and paste what you pasted in your post. could u just strait out copy and paste what you have in foobar into a post here for the playlist and status bar. smile.gif

and yes i downloaded and installed the LIME font
nuhi
here is tha' stuff, i mean THE stuff wink.gif

screenshot (copy and paste the link in a new window)
http://www.freewebs.com/nuhi/capture.jpg

Playlist Background:
R:0
G:36
B:72

You must use TERMINAL FONT on both, playlist and status bar code !

Playlist
::::::::

CODE

$puts(bl,808080|808080)$puts(gl,4F4F00|4F4F00)$puts(sl,482400|482400)
$puts(pl,$if(%_isplaying%,808080|808080,4F4F00|4F4F00))
$puts(space,$len($longest(%artist%,%album%)))
//playlist number
$get(bl)$ifgreater(%_playlist_number%,9,$ifgreater(%_playlist_number%,99,
%_playlist_number%,$get(gl)'0'$get(pl)%_playlist_number%),$get(gl)'00'$get(pl)%_playlist_number%)$get(gl)$char(322)'  '
//beginning of $if(%title...
$if(%title%,$if(%tracknumber%,
$if($strcmp(%tracknumber%,1),'    '$repeat(' ',$get(space)))
$get(bl)$if($strcmp(%tracknumber%,2),[$caps( %artist%   )]$repeat(' ',$sub($len(%album%),$len(%artist%))))
$if($strcmp(%tracknumber%,3),
$get(gl) $char(340)'-'$get(bl)[$caps(%album%)$get(gl)'Ä']
$repeat('Ä',$sub($len(%artist%),$len(%album%))))
$ifgreater(%tracknumber%,1,
$ifgreater(%tracknumber%,2,
$ifgreater(%tracknumber%,3,'    '$repeat(' ',$get(space)),),),)
$get(gl)$if($strcmp(%tracknumber%,1),'Ú',$if(
$strcmp(%tracknumber%,3),$char(313),$char(258)))
//tracknumber
$get(pl)$ifgreater(%tracknumber%,9,
[$num(%tracknumber%,1)],$get(gl)'0'$get(pl)[$num(%tracknumber%,1)])
$get(gl)$if(%tracknumber%,$ifgreater(%tracknumber%,1,'´',$char(380)))' '
$get(pl)[$caps(%title%)],
//end of $if(%title...
$get(pl)[$caps( %artist% )]$get(gl)[$char(322)' '$caps(%album%)' '$char(322)' ']$get(pl)[$caps(%title% )]),
$get(pl)$caps( %_filename%))$char(9)
//TAG missing info (delete next 3 rows if you don't like it)
$get(sl)$if(%artist%,,$get(gl)'artist '$char(355)' ')$if(%album%,,$get(gl)'album '$char(355)' ')$if(%tracknumber%,,$get(gl)'tracknumber '$char(355)' ')$if(%title%,,$get(gl)'title '$char(355)' ')
'TAG missing'$char(9)
//song tech info
$transition(    %_length%'min',482400|482400,4F4F00|4F4F00)
$get(pl)$char(322)
$transition($num(%__bitrate%,3)'kbps   ',4F4F00|4F4F00,482400|482400)


Status Bar
::::::::::::

CODE

$char(9)623100%_time_elapsed%'...Ü'
$transition($progress(%_time_elapsed_seconds%,%_time_total_seconds%,100,$char(355),
$char(368)),623100,402000)402000'Ü...'$div($sub(%_time_total_seconds%,%_time_elapsed_seconds%),60)
:$num($mod($sub(%_time_total_seconds%,%_time_elapsed_seconds%),60),2)
$char(9)$if(%_ispaused%, paused,playing) $if(%__channels%,$ifgreater(%__channels%,2,%__channels%ch,$ifgreater(%__channels%,1,stereo,mono)),) $ext(%_path%) $cut(%__samplerate%,2)'khz'
Nivo
I like that one a lot nuhi, but somehow the chars are not displayed correctly for me.. can you (or somebody else) tell me how to find these?
Thanks
Canar
QUOTE(nuhi @ May 9 2003 - 11:00 AM)
You must use TERMINAL FONT on both, playlist and status bar code !

I'm not sure if the Terminal font is UTF-8 compatible. IIRC, it was meant to reproduce the standard DOS character set. Just an advisory for people who want to use it.
nuhi
Have you changed font to Terminal on playlist and status bar ?
Nivo if you could send me a screenshot here or on mail nuhi@softhome.net
so that i can see what's the problem.
Maybe it's those which I didn't decoded from sign to $Char(*) code.

Edit: You can access all characters for a specific font in Character Map program.
Just type charmap in Run section of windows and run it.

Canar which font do you recommend so others don't have any issues ?
Nivo
Nihu, i think it depends on the pc you're using or something like that.... i just tried it on a different pc and it looked quite different then again, with other caracters not showing up.

However, i can fix it with your charmap tip... have been looking for that for a while now, so double thanks biggrin.gif
nuhi
smile.gif ok

next time i'll post a proper version,with Terminal encoded chars, without that $char(*) thingy.
It will work then but it cannot be pasted on forum though, there will be a link to it in a text file.
I think i saw it earlier someone else did it.
Nivo
yeah, much easier that way smile.gif
well.. for me at least.. tho i do get the hang of this editing this way rolleyes.gif
GeekK
QUOTE(SNYder @ May 9 2003 - 02:33 PM)
QUOTE(pootify @ Apr 23 2003 - 12:27 AM)
foobar screenshot (high res)

not so much programming innovation, just clean color scheme. also made slight modification to just show artist - title if no album info is present, instead of the (imho) ugly "???" tag. the playlist code is modified from ranor's, the status bar is someone else's in this thread biggrin.gif. also took out the mp3pro indication code since i didn't have any mp3pros, hee. i was going for slim.

[CODE]

<snip>

i like your set up a lot, but it comes in all screwed up when i just copy and paste what you pasted in your post. could u just strait out copy and paste what you have in foobar into a post here for the playlist and status bar. smile.gif

and yes i downloaded and installed the LIME font

Same here.... mad.gif

I absolutely want to use your wonderful colors and layout 'cause I think they're the coolest ones around (no kiddin' (w00t) )

And yes - I also installed the Lime-font (installed it in Control panel -> Fonts)

Let us know! smile.gif
GoWaN
This is my desktop:
image (146kB)
And here my config:
foobar.cfg

They are based on other's configs. tongue.gif
foosion
Statusbar Arcade Productions presents

---===smile.gif PACMAN 4 Foobar2000 smile.gif===---

created by samadhi97 & foosion

IPB Image

CODE
// options
$puts(pac_pillcount,100)
$puts(pacc_gone,B0B0B0)
$puts(pacc_pill,FFFFFF)
$puts(pacc_pacman,FF0000)
$puts(pacc_ghost,0000FF)

// sprites
$puts(pac_gone,'•')
$puts(pac_pill,'•')
$puts(pac_munch0,'C')
$puts(pac_munch1,'O')
$puts(pac_ghost,'í°°ì')

// computation starts here

$puts(pac_pacpos,$div($add($mul(%_time_elapsed_seconds%,$get(pac_pillcount)),$div(%_time_total_seconds%,2)),%_time_total_seconds%))

$puts(pac_ghostpos,$div($add($mul($sub(%_time_elapsed_seconds%,$div(%_time_total_seconds%,2)),2,$sub($get(pac_pillcount),3)),$div(%_time_total_seconds%,2)),%_time_total_seconds%))

'['
$ifgreater($get(pac_ghostpos),-1,
// display ghost
$get(pacc_gone)$repeat($get(pac_gone),$get(pac_ghostpos))
$get(pacc_ghost)$get(pac_ghost)
$get(pacc_gone)$repeat($get(pac_pill),$sub($get(pac_pacpos),3,$get(pac_ghostpos)))
,
// do not display ghost
$get(pacc_gone)$repeat($get(pac_gone),$get(pac_pacpos))
)
// display pacman
$get(pacc_pacman)$get(pac_munch$mod(%_time_elapsed_seconds%,2))
// display pills
$get(pacc_pill)$repeat($get(pac_pill),$sub($get(pac_pillcount),$get(pac_pacpos)))
']'

font: Verdana, 8pt
ssamadhi97
Use $puts(pacc_pacman,00FFFF) (instead of $puts(pacc_pacman,FF0000) ..) for the maximum degree of authenticity laugh.gif

only one rule for ya: Enjoy! tongue.gif

The Legend returns! Will he manage to escape the Ghost? ph34r.gif
pootify
For those of you asking about this this setup:

Hmm.. I did straight copy and paste, can't imagine why it got messed up? I'll try again:

PLAYLIST BACKGROUND COLOR: Hue 75, Sat 28, Lum 106 / Red 103, Green 126, Blue 100
PLAYLIST SELECTION COLOR: Hue 74, Sat 30, Lum 134 / Red 132, Green 156, Blue 128
SELECTED ITEM FRAME: Black
Playlist font is Lime, of course

PLAYLIST
CODE

//make playlist number black if playing
$if(%_isplaying%,000000|000000>>>>,FFFFFF|FFFFFF$num(%_playlist_number%,3).)

0000FF|0000FFù

// if playing make orange
$if(%_isplaying%,
// artist
27ABFF|27ABFF%artist%
// separator
0000FF|0000FF ù

//show album and track if tags exist else just show title
$if(%album%,
// album
27ABFF|27ABFF %album% '('%date%')'
// separator
0000FF|0000FF ù
// title
27ABFF|27ABFF $num(%tracknumber%,2).,) 27ABFF|27ABFF%title%
// length
$char(9)27ABFF|27ABFF%_length%,

// else if not playing make black and white
// artist
000000|000000%artist%

$if(%album%,
// separator
0000FF|0000FF ù
//show album and track if tags exist else just show title
000000|000000$if(%album%,$abbr(%album%,30),) $if(%date%,'('%date%')'
// separator
0000FF|0000FF ù ,)
// title
FFFFFF|FFFFFF
$if(%tracknumber%,$num(%tracknumber%,2). ,),0000FF|0000FF ù )FFFFFF|FFFFFF%title%
// length
$char(9)FFFFFF|FFFFFF%_length%)


STATUS BAR
CODE

004D00'('%_time_elapsed%')' $progress($div($mul(100,%_time_elapsed_seconds%),%_time_total_seconds%),100,25,000000$num($div($mul(100,%_time_elapsed_seconds%),%_time_total_seconds%),2)'%',808080'°')808080'°' 408000'(-'%_time_remaining%')'0CB407 '('%_time_total%')' 

$puts(SB_T,127)
$puts(SB_C,0000FF)

$puts(LB_R,20)
$puts(LB_G,128)
$puts(LB_B,20)
$puts(HB_R,0)
$puts(HB_G,0)
$puts(HB_B,255)

$if($greater(%__bitrate%,$get(SB_T)),
$puts(BR,$div($mul($sub(%__bitrate%,$get(SB_T)),255),$sub(320,$get(SB_T))))
$puts(BR_R,$add($get(LB_R),$div($mul($sub($get(HB_R),$get(LB_R)),$get(BR)),255)))
$puts(BR_G,$add($get(LB_G),$div($mul($sub($get(HB_G),$get(LB_G)),$get(BR)),255)))
$puts(BR_B,$add($get(LB_B),$div($mul($sub($get(HB_B),$get(LB_B)),$get(BR)),255)))
$puts(BR_C,$hex($get(BR_B),2)$hex($get(BR_G),2)$hex($get(BR_R),2))
,
$puts(BR_C,$get(SB_C)))

$get(BR_C)%__bitrate%kbps
GeekK
QUOTE(pootify @ May 18 2003 - 04:28 AM)
For those of you asking about this this setup:

Hmm.. I did straight copy and paste, can't imagine why it got messed up? I'll try again:

Thanks a lot, Pootify!

Works perfectly now! laugh.gif
Melomane
user posted image
800*600
album name / n° track is red when replaygain is not apply.
album with various artist display name of artist in playlist and "various artist" in album list (required tag "va=various artists")

playlist: background color rvb 255/255/249 , selection 128/136/168 text and item frame: black

$num(%_playlist_number%,3)$if(%_isplaying%,0000FF|0000FF -> , | )
800000$caps(%artist%) -
$if(%title%,' ['
$if(%__replaygain_album_peak%,,
$if(%__replaygain_album_gain%,,0000FF))
[%album%[ #[%disc%/]
$if(%__replaygain_track_peak%,,
$if(%__replaygain_track_gain%,,0000FF))
$num(%tracknumber%,2)]'] ']
800000%title%
,800000%_filename_ext%)
$char(9) |
$iflonger(%_length%,4,%_length%,%_length%¨ )
_________________________________________________
statusbar:

$if(%_ispaused%,0000FF PAUSE,
[$upper($ext(%_filename_ext%)) ][%__bitrate% Kbps ][%__samplerate%Hz ]$if(%__channels%,$ifgreater(%__channels%,2,%__channels%ch,$ifgreater(%__channels%,1,stereo,mono)) ,)[ %__extrainfo%]
$select($add($mod(%_time_elapsed_seconds%,4),1),'-','\','|','/'))
// setting
$puts(count,115)
$puts(gone,'|')
$puts(c_gone,808080)
$puts(pill,'|')
$puts(c_pill,FFFFFF)
$puts(cursor0,-%_time_remaining%)
$puts(cursor1,-%_time_remaining%)
$puts(c_cursor,C10000)
// computation
$puts(pos,$div($add($mul(%_time_elapsed_seconds%,$get(count)),$div(%_time_total_seconds%,2)),%_time_total_seconds%))
'{'
// display gone
$get(c_gone)$repeat($get(gone),$get(pos))
// display cursor
$get(c_cursor)$get(cursor$mod(%_time_elapsed_seconds%,2))
// display pills
$get(c_pill)$repeat($get(pill),$sub($get(count),$get(pos)))
'}'
%_time_elapsed% / %_time_total%
_______________________________________
album list
tree:
[GENRE-ARTIST-ALBUM]$if($strcmp($substr(%genre%,1,4),Jazz),Jazz,$if($strcmp($substr(%genre%,1,9),Classical),Classical,Modern))|$if2(%va%,%artist%)|[%album%][ { %date% }]$if($strcmp($substr(%genre%,1,4),Jazz),$substr(%genre%,5,40),$if($strcmp($substr(%genre%,1,9),Classical),$substr(%genre%,10,40),[ - %genre% ]))|%title%$if(%va%, -- $caps(%artist%),)
sorting:
[GENRE-ARTIST-ALBUM]$if2(%va%,%artist%)|%album%|$num(%disc%,9)|$num(%tracknumber%,9)
rincewind1013
Hi, I'm working on the albumlist

My music is laid out like this
[Drive]:\music\[Letter of Alphabet]\[Artist]\[Album]\(if multiple CDs)[CD #]
Example:
E:\music\B\Bob Dylan\Blonde on Blonde
E:\music\B\Bob Dylan\The Essential Bob Dylan\CD 2

Currently, I have

CODE
Tree Hierarchy:
$iflonger($directory(%_path%,3), 1, [$directory(%_path%,3)] [$directory(%_path%,2)], [$directory(%_path%,2)]) | $directory(%_path%,1)

Sorting Order:
$iflonger($directory(%_path%,3), 1, $directory(%_path%,3) - $directory(%_path%,2) - $directory(%_path%,1) - %_filename%, $directory(%_path%,2) - $directory(%_path%,1) - %_filename% )


This works fine for situations like the first example, but for the 2nd example, it doesn't look as nice
My aim is to have something like this for the album list

CODE

Bluebottle Kiss
Bob Dylan
|-Blonde On Blonde
|-The Essential Bob Dylan
  |-CD1
  |-CD2
Boilermaker


Does anyone have any idea how to do that?

If I try this for the Tree Hierarchy
CODE

Tree Hierarchy:
$iflonger($directory(%_path%,3), 1, [$directory(%_path%,3)] | [$directory(%_path%,2)], [$directory(%_path%,2)]) | $directory(%_path%,1)

I get a syntax error, because of the '|' in the 3rd argument of the $iflonger statement

Any help?
sramov
First, I'm from Croatia so my english is bed, if you find something wrong I'm sorry.
I love minimalism, so I came up with this:

TITLE FORMATTING

playlist:
CODE
$num(%_playlist_number%,4). [%album%] - [%artist%] - $num(%tracknumber%,2). [%title%][ %_length%]


system tray:
CODE
[%artist%] - [%title%]


window title:
CODE
[%artist%] - [%title%] - %_foobar2000_version%


status bar:
CODE
[%artist%] - [%title%] <> [%__bitrate%kbps ][%__samplerate%S/s ]$if(%__channels%,$ifgreater(%__channels%,2,%__channels%ch,$ifgreater(%__channels%,1,stereo,mono)) ,)[%__extrainfo%] $select($add($mod(%_time_elapsed_seconds%,4),1),'-','\','|','/') '['$progress(%_time_elapsed_seconds%,%_time_total_seconds%,15,'#','=')']' %_time_elapsed%[ / %_time_total%]


COLORS (RGB)

playlist text color: 0 0 0
playlist background color: 255 255 255
playlist selection color: 130 165 190
selected item color: 50 100 125

Here is the screenshot
Blinky
Foobar! (60kb), it's pretty minimal but with some snazzy colouring.

Apologies for the horribly messy code, tried to clear it up but I kept breaking it so in the end I left it smile.gif

Playlist:
CODE
// initialise:

// line colours: blend (between selected colours) for albums, random (between selected colours) for single tracks
$puts(c_line,$blend(FFDDDD|DDFFDD,FF0000|00FF00,$if(%tracknumber%,%tracknumber%,$mod($rand(),21)),20))

// check for replay gain
$puts(c_rg,$if(%__replaygain_track_gain%,,0000FF|0000FF)$if(%album%,$if(%__replaygain_album_gain%,,0000FF|0000FF),))

// field lengths
$puts(p_art,30)
$puts(p_tit,30)

// cut-off field lengths
$puts(p_artsub,$sub($get(p_art),3))
$puts(p_titsub,$sub($get(p_tit),3))

// playing colour
$puts(c_play,FFFFFF|FFFFFF)

// separator colour
$puts(c_sep,CCCCCC|CCCCCC)

// colour based on playing status
$puts(c,$if(%_isplaying%,$get(c_play),$get(c_line)))

// column separators
$puts(s_art,$get(c_sep)$if(%tracknumber%,$ifgreater(%tracknumber%,1,$char(9474),$char(9500)),$char(9474))$get©)
$puts(s_tit,$get(c_sep)$if(%tracknumber%,$ifgreater(%tracknumber%,1,$char(9474),$char(9508)),$char(9474))$get©)
$puts(s_len,$get(c_sep)$char(9474)$get©)


// display:

// playlist numbers
$pad_right(%_playlist_number%,4)$char(32)

// artist/album
$get(s_art)$char(32)
$if(%tracknumber%,$ifgreater(%tracknumber%,1,$ifgreater(%tracknumber%,2,$pad($char(32),$get(p_art)),$ifgreater($get(p_art),$len($char(32)%album%),$pad($char(32)%album%,$get(p_art)),$padcut($char(32)%album%,$get(p_artsub))..$char(32))),$ifgreater($get(p_art),$len(%artist%),$padcut(%artist%$char(32)$get(c_sep)$repeat($char(9472),$get(p_art)),$add($get(p_art),15)),$padcut(%artist%,$get(p_artsub))..$char(32))),$ifgreater($get(p_art),$len(%artist%),$padcut(%artist%,$get(p_art)),$padcut(%artist%,$get(p_artsub))..$char(32)))

// title
$get(s_tit)$char(32)$get(c_rg)
$if(%title%,$ifgreater($get(p_tit),$len(%title%),$pad(%title%,$get(p_tit)),$padcut(%title%,$get(p_titsub))..$char(32)),$ifgreater($get(p_tit),$len(%_filename%),$pad(%_filename%,$get(p_tit)),$padcut(%_filename%,$get(p_titsub))..$char(32)))

// length, have to get colour afterwards as right-aligned
$get(s_len)
$char(9)$get©%_length%


Status bar:
CODE
// initialise:

// size of progress bar
$puts(size,50)

// proportion of song elapsed out of progress bar size
$puts(elapsed,$div($mul(%_time_elapsed_seconds%,$get(size)),%_time_total_seconds%))


// display:

// artist/title info
$if(%title%,[%artist% - ]%title%,%_filename%)

// right align
$char(9)

// time elapsed/total
%_time_elapsed% / %_time_total%

// progress bar
|$transition($repeat(|,$get(elapsed)),000000,A00000)
808080$repeat(|,$sub($sub($get(size),1),$get(elapsed)))|


Fonts:
Playlist: Lucida Console 8pt
Status bar: Tahoma 8pt

Colours (RGB):
Text: 205 205 205
Background: 0 0 0
Selection: 0 0 0
Frame: 50 160 50

Basically this huge lump of code gives a nice colour blending between tracks on an album, while single tracks get random colours chosen from those used for blending. In my set-up, the tracks are all shades of blue, selecting tracks turns them a shade of green. The currently playing track is white and tracks with no replay-gain (track or album if applicable) are shown in red. Any field that's too long to be shown gets cropped and '..' added to the end so you know there's some missing. Just take a look at the picture for a better idea smile.gif
Anacific
QUOTE(Blinky @ May 20 2003 - 03:31 PM)
Foobar! (60kb), it's pretty minimal but with some snazzy colouring.

That is very cool, exactly what I was looking for biggrin.gif
sramov
Here is the slightly modified setup, hope you like it:

TITLE FORMATTING

playlist:
CODE
$num(%_playlist_number%,4). [%album%] - [%artist%] - $num(%tracknumber%,2). [%title%][ %_length%]


system tray:
CODE
[%artist%] - [%title%]


window title:
CODE
[%artist%] - [%title%] - %_foobar2000_version%


status bar: (modified)
CODE
[%artist%] - [%title%] @ [%__bitrate%kbps ][%__samplerate%S/s ]$if(%__channels%,$ifgreater(%__channels%,2,%__channels%ch,$ifgreater(%__channels%,1,stereo,mono)) ,)[%__extrainfo%]  '['$progress2(%_time_elapsed_seconds%,%_time_total_seconds%,16,000000'=',666666'=')']' %_time_elapsed%[ / %_time_total%]


COLORS (RGB)

playlist text color: 0 0 0
playlist background color: 255 255 255
playlist selection color: 130 165 190
selected item color: 50 100 125

FONT

tahoma, 8pt

screenshot
CJC
Pootify, where can I find that Lime font?
pootify
Lime font:

http://www.desktopian.org/bb/

right side, under Additional, "Blackbox font pack (for Windows)"
nuhi
Here, fixed it, and made it more tolerant to bad Tags.

Enjoy biggrin.gif

Screenshot

Code & Instructions
Jan S.
This doesn't work at all for me. sad.gif
airblaster
It only works if you use the font "Terminal".


btw, does anyone know if there is a way to inser newlines in the playlist?
I didn't find any information about this....
fctk
this is my string:

CODE

//messaggi di errore
$puts(artist,0000FF'[NO ARTIST]')
$puts(album,0000FF'[NO ALBUM]')
$puts(date,0000FF'[NO DATE]')
$puts(tracknumber,0000FF'[CHECK TRACKNUMBER]')
$puts(title,0000FF'[NO TITLE]')
$puts(genre,0000FF'[NO GENRE]')
$puts(comment,0000FF'[CHECK COMMENT]')
$puts(rated,0000FF'[RATED]')
$puts(replaygained,0000FF'[REPLAYGAINED]')
$puts(extension,0000FF'[WRONG EXTENSION]')
$puts(#,0000FF'[CHECK CHARACTER #]')

//indice numerico playlist a quattro cifre
C08000$num(%_playlist_number%,4)

//di ciascun tag ne è verificata l'esistenza e quindi è visualizzato, altrimenti relativo errore
$if(%artist%,808080%artist%,$get(artist))

$if(%album%,408000%album%,$get(album))

$if(%date%,'('000080%date%')',$get(date))

$if(%tracknumber%,0080FF%tracknumber%,$get(tracknumber))

$if(%title%,%title%,$get(title))

$if(%genre%,,$get(genre))

//se il tracknumber ha più di 2 cifre da' errore; nel caso in cui ci sia il tracknumber sia composto di due cifre verifica che il suo valore sia maggiore di 10, altrimenti da un messaggio di errore
$ifgreater($len(%tracknumber%),2,$get(tracknumber),$if($strcmp($len(%tracknumber%),2), $ifgreater(10,%tracknumber%,$get(tracknumber),),))

//controlla la valutazione
$if($strcmp(%rating%,1),$get(rated),)

//controlla il replaygain
$if(%__replaygain_track_gain% OR %__replaygain_track_peak% OR %__replaygain_album_gain% OR %__replaygain_album_peak%,$get(replaygained),)

//controlla l'estensione
$if($strcmp($right(%_filename_ext%,4),'.mpc'),,$get(extension))

//controlla che non ci siano caratteri #
$if($strcmp($strchr(%title%,#),0),,$get(#))

$char(9)

//controlla che il commento abbia lunghezza 10
$if($strcmp($len(%comment%),10),%comment%,$get(comment))

//durata traccia
%_length%
Jan S.
QUOTE(airblaster @ May 25 2003 - 09:45 PM)
It only works if you use the font "Terminal".


btw, does anyone know if there is a way to inser newlines in the playlist?
I didn't find any information about this....

That's what I did.
Auric
I didn't notice anyone showing their album list format strings, so I figured I'd reply with mine. Basically, I wanted all of my game, anime, and movie soundtracks to display and sort only by the album, while everything else should be sorted by artist. Ideally, album would be a branch of the hierarchy under album, but I couldn't get the | to work inside of the if statement, so I just set one branch to "artist - album."

Tree hierarchy:
QUOTE
%genre%|$ifgreater($strstr(%genre%,'Game'),0,,$ifgreater($strstr(%genre%,'Soundtrack'),0,,$ifgreater($strstr(%genre%,'Anime'),0,,%artist%' - ')))%album%|%title%


Sorting order:
QUOTE
%genre%|$ifgreater($strstr(%genre%,'Game'),0,,$ifgreater($strstr(%genre%,'Soundtrack'),0,,$ifgreater($strstr(%genre%,'Anime'),0,,%artist%)))|%album%|$num(%disc%,9)|$num(%tracknumber%,9)|%_filename_ext%
picmixer
So far the Lime font is the only one I found that produces these nie dots instead of the ù's show in some strings in this thread. However the only problem I hav with it is that Foobar does not want to set it to a larger font size than 8. Would like to do that though. Does anyone know a sollution to this?

Here is my playlist string, wich is a modified version of pootify's and Skibby's in one. The coding is probably not the most elegant, but it works fine for me:


////////////////////
//// Config ////
////////////////////
// Colors
$puts(plnum_col,$if(%_isplaying%,11118E|363636,B0B0B0|363636))
$puts(artist_color,$if(%_isplaying%,11118E|DFAF00,000000|000000))
$puts(title_color,$if(%_isplaying%,11118E|BFAF00,FFFFFF|FFFFFF))
$puts(album_color,$if(%_isplaying%,11118E|DFAF00,000000|000000))
$puts(date_color,$if(%_isplaying%,11118E|DFAF00,000000|000000))
$puts(track_color,$if(%_isplaying%,11118E|DFAF00,FFFFFF|FFFFFF))

// Spacers
$puts(album_spacer,')')
$puts(track_spacer,*)
$puts(tag_spacer, ù )
// Additional options
// 1 = true, 0 = false
$puts(display_playlist_no,1)
$puts(display_date,1)
$puts(display_file_info,1)
$puts(display_time,1)
/////////////////////////
//// End config ////
/////////////////////////



//////////////////
//// Tags ////
//////////////////
// Artist
$if(%artist%,
$puts(artist,$get(artist_color)%artist%),
$puts(artist,$get(artist_color)$caps2($padcut(%_filename%,$sub($strchr(%_filename%,-),2)))))

// Title
$if(%title%,
$puts(title,$get(title_color)%title%),
$puts(title,$get(title_color)$caps2($substr(%_filename%,$add($strchr(%_filename%,-),2),$len(%_filename

%)))))

// Album
$if(%album%,
$puts(album,$get(album_color)%album%),
$puts(album,$get(album_color)$if($strcmp($strchr($directory(%_path%),-),0),
$directory(%_path%),
$substr($directory(%_path%),$add($strchr($directory(%_path%),-),2),$len($directory(%_path%))))))

// Date
$if($stricmp($get(display_date),1),$if(%date%,$puts(date,$get(date_color)'('%date%')'),))

// Tracknumber
$if(%tracknumber%,
$puts(tracknum,$get(track_color)$num(%tracknumber%,2). ),)


//////////////////////////////////
//// Display artist info ////
/////////////////////////////////

//make playlist number black if playing
$if(%_isplaying%,000000|000000>>>>,FFFFFF|FFFFFF$num(%_playlist_number%,3).)

ù $get(artist) ù $get(album)$get(date) ù $get(tracknum)
$get(title)

///////////////////////////////
//// Display file info ////
//////////////////////////////
$char(9)
$transition(
$if($stricmp($get(display_file_info),1),
$pad_right($get(tag_spacer),1)
$pad_right($upper($right(%_filename_ext%,3)),3) $pad_right(%__bitrate%/$div(%__samplerate%,1000),6)
$pad_right($if(%__replaygain_track_gain%,T, ),2)
$pad_right($if(%__replaygain_album_gain%,A, ),1)
)
$if($stricmp($get(display_time),1),$pad_right(%_length%,7)),
11118E|11118E,000000|000000)



Playlist Background Colour: 24 53 107
Playlist Text Colour: 142 17 17
Selection colour: 0 64 128
Selected Item Frame: Black


Thanks Pootify and Skibby fotr those nice setups.
L.King
QUOTE(picmixer @ May 26 2003 - 11:41 PM)
However the only problem I hav with it is that Foobar does not want to set it to a larger font size than 8.

artwitz's fonts are bitmap fonts, not true type, they only contain one size

bitmap fonts can contain multiple sizes but you'd have to draw every character for every size, the characters of true type fonts are rendered rather than pre-made and can therefore be of multiple sizes
picmixer
Thanks, that about explains it.
nyarlathotep
my strings, simple and fast:

Playlist #1: basic

//simple complet
- $num(%_playlist_number%,3) : [%artist%] $if(%title%,[[%disc%/]- $num(%tracknumber%,2) : ]%title%,%_filename_ext%) [- %album%] $if(%_isplaying%,00FFFF|FFFFFF)[%_length%]

sorry, cant write the (alt+tab)

Playlist #2: if you listen only to full albums (ie: tracks from different albums must not be mixed; track 1 from each album must be in the playlist; for following tracks from the same album, artist and album are hidden except when playing or selected with cursor)

//albums entiers uniquement
$ifgreater(%tracknumber%,1,$if(%_isplaying%,00FFFF|FFFFFF>| ,B58C8E|FFFFFF)%artist% - %album% -,$if(%_isplaying%,00FFFF|FFFFFF>| )%artist% - %album% -)
$if(%_isplaying%,,)
$if(%title%,- [[%disc%/]$num(%tracknumber%,2) : ]%title%,%_filename_ext%)
$char(9)$if(%_isplaying%,00FFFF|FFFFFF%_length% <|,%_length%)

colors:
playlist background 162 52 151 (otherwise ,B58C8E must be changed to the same color as the background)
playlist selection 160 240 120
font: whatever, maybe you'll need to put some spaces in the appropriate areas...

Status bar:

[%artist% - ]$if(%title%,[[[%disc%/]$num(%tracknumber%,2)]] : %title%,%_filename_ext%) [- %album%] | $ext(%_path%) @ [%__bitrate%kbps - ][%__samplerate%S/s ]$if(%__channels%,$ifgreater(%__channels%,2,%__channels%ch,$ifgreater(%__channels%,1,stereo,mono)) ,)[%__extrainfo%] %_time_elapsed%[ / %_time_total%]
fctk
does someone know a way to show in foobar2000 the tag type used in a song? (already know how to do this with replaygain and bitrate, but can't find any doc on tag type)

thx
Daelus
Here's my "ByAlbum"-Playlist script :

Screenshot

use Lucinda Console Font, 9pt
Playlist text : Black (0,0,0)
Playlist Background : 180,178,204
Playlist Selection : 10,36,106

Playlist Script

and have fun with yours albums
picmixer
Am still looking for a TTF(sizeable) Font that will allow me do display a dot in the vertical middle of the line. Similar to Pootify's setup. Would anyone know where to find one, or how else to achieve this?
TomG
Hello there, complete noob here, downloaded foobar yesterday and I must say it sounds amazing with my revo. I love it! Much better than winamp.

I had a go at a string and I must add that it is based on one I found in this post but I can't remember whos so my apologies unsure.gif , feel free to speak out if its yours!

Here goes

QUOTE
0080FF

$if(%_isplaying%,000000|000000)$if(%_ispaused%,F94FCE|F94FCE)$num(%_playlist_number%,4). FF8000

$if(%_isplaying%,000000|000000)$if(%_ispaused%,F94FCE|F94FCE)[%artist% 808080- ]

$if(%_isplaying%,000000|000000)$if(%_ispaused%,F94FCE|F94FCE)$if(%title%,['['0080FF

$if(%_isplaying%,000000|000000)$if(%_ispaused%,F94FCE|F94FCE)%album% [#[%disc%/]$num(%tracknumber%,2)]'808080] ']FF8000

$if(%_isplaying%,000000|000000)$if(%_ispaused%,F94FCE|F94FCE)%title%,%_filename_ext%)

$if(%_isplaying%,000000|000000)$if(%_ispaused%,F94FCE|F94FCE)[ %_length%]


Its all spaced out purely for ease of editing.

It works well I think and I like it, it changes colour on pause and the track thats playing is black, although the second square bracket on the album name [album] refuses to change colour, I've tried everything I can think of and it either messes up the whole string or has no effect whatsoever. Any ideas!?

Let us know what you think

Thanks

Tom
Jan S.
QUOTE(Daelus @ May 28 2003 - 12:08 AM)
Here's my "ByAlbum"-Playlist script :

Screenshot

use Lucinda Console Font, 9pt
Playlist text : Black (0,0,0)
Playlist Background : 180,178,204
Playlist Selection : 10,36,106

Playlist Script

and have fun with yours albums

This is the best script I've seen so far. With a translation and some minor adjustments this will be my favourite.
spase
QUOTE(Jan S. @ May 29 2003 - 10:49 AM)
QUOTE(Daelus @ May 28 2003 - 12:08 AM)
Here's my "ByAlbum"-Playlist script :

Screenshot

use Lucinda Console Font, 9pt
Playlist text : Black (0,0,0)
Playlist Background : 180,178,204
Playlist Selection : 10,36,106

Playlist Script

and have fun with yours albums

This is the best script I've seen so far. With a translation and some minor adjustments this will be my favourite.

i agree... well done Daelus
Jan S.
Based on Daelus' script.
* Fixed width
* Translated
* Displays different fields at the side (artist, disc nr., format, replaygain)
* uses %_filename% instead of %_path% for tracks without tags
* pads zero on tracknumber
* added %__compression%
* removed lines after title
Screenshot
Script
colapesce
Great biggrin.gif
Gaffa
I just had to try wink.gif Screenshot Script
I made it from scratch, looking at Daelus' screenshot. Fixed width also, like Jan's.
PYROTAK
what font are u using there gaffa?

mine has a bunch fo question marks all over it!
Gaffa
QUOTE(PYROTAK @ May 30 2003 - 01:57 AM)
what font are u using there gaffa?

Just "Courier New".

By the way, I forgot to add some %_isplaying% modification.

Edit 1:
I couldn't sleep anyway: Screenshot 1 (Script), Screenshot 2 (Script)

The first script could be optimized tongue.gif

Edit 2:
So I cleaned up the second one: Script. Edit 3: And made a somewhat cleaned up mixture: Script. wink.gif
AlfredSka
Daelus script + Jan S mod has me by the balls. I love it, thanks you two!
PYROTAK
now i feel stupid, no matter what my formatting doesn't come out right on jans or gafas script....

instead of having cool lines or whatever i have a bunch of stupid questionmarks....

im so confused....

EDIT: ok, when i copy your script, i get a bunch the strange characters that you use like "||" or "||=" turn into "??" so how do i get those cool characters....
PYROTAK
idoes it have to do with the fact that im using beta 10 which seems tobe ascii only, and not unicode....i think it might!
nuhi
Updated...

Shot

Code

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

The link to your code does not seem to work. Maybe you could just copy and paste it here. Looks very nice.
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.