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
Siku
@UpNorth

I'm using your 'dynamic' formatting string and I've noticed one bug in it:
I have some VBR MP3s muxed into MP4 container. And when I'm playing those 'MP3s in MP4' files the status bar shows me 'MP3 xxxkbps CBR 44Hz Stereo' instead of VBR. Could this one be fixed somehow?

Cheers,
Siku
upNorth
QUOTE(Siku @ Mar 7 2004, 04:49 PM)
@UpNorth

I'm using your 'dynamic' formatting string and I've noticed one bug in it:
I have some VBR MP3s muxed into MP4 container. And when I'm playing those 'MP3s in MP4' files the status bar shows me 'MP3 xxxkbps CBR 44Hz Stereo' instead of VBR. Could this one be fixed somehow?

Cheers,
Siku

I don't use the MP4 container myself, but I removed the CBR part og the code that caused the problem. No need for that anyway. It will no longer display "CBR" if a %__extrainfo% tag is not present in an MP3 file, but the contents of that tag will be displayed if present.
lav-chan
Silverbolt, thanks, that helps some. I suppose i'll give it some more thought later. :9
grkn
:3 nyoo
slicepizza
Isn't there any way to make the VIS using playlist format?
aron
after some people in #foobar2000 said they thought i ought to do it, i posted my formatting strings (called "5" because i couldn't really think of a good name to give to formatting strings, and this is the 5th revision) on the formatting strings web site http://pelit.koillismaa.fi/fb2k/ . i'd like to know what people think, and if they have any suggestions. it's only meant for albums.
mazy
nice one, aron ... i like the look of your string. heck, i should update mine wink.gif
aron
QUOTE(mazy @ Mar 12 2004, 03:01 AM)
nice one, aron ... i like the look of your string. heck, i should update mine wink.gif

thanks, mazy smile.gif
Sid59
QUOTE(mazy @ Mar 12 2004, 03:01 AM)
nice one, aron ... i like the look of your string. heck, i should update mine wink.gif

can you tell me which part i can omit so it doesn't display bitrate/encoder and comment field?

thanks
nIRV
nobody used %_filesize% yet ? smile.gif
aron
QUOTE(Sid59 @ Mar 12 2004, 01:21 PM)
QUOTE(mazy @ Mar 12 2004, 03:01 AM)
nice one, aron ... i like the look of your string. heck, i should update mine wink.gif

can you tell me which part i can omit so it doesn't display bitrate/encoder and comment field?

thanks

first, make sure to download the latest post i made of the formatting, because i fixed a couple problems that came up while i was making last-minute changes the other night.

then, to remove bitrate, encoding, and comment, delete the lines:

CODE
//**********************************************************
//    CODEC
//**********************************************************
$if($stricmp($info(codec),mp3),
$puts(v_codec,$info(codec))
$puts(v_compression,%__bitrate%kbps [%__extrainfo%]),)

$if($stricmp($info(codec),AAC),
$puts(v_codec,$info(codec))
$puts(v_compression,%__bitrate%kbps),)

$if($stricmp($info(codec),FLAC),
$puts(v_codec,$info(codec)),
)

$if($stricmp($info(codec),monkey''s audio),
$puts(v_codec,$info(codec))
$puts(v_version,$info(version))
$puts(v_compression,$caps($info(compression))),)

$if($stricmp($info(codec),musepack),
$puts(v_codec,$caps($info(codec)))
$puts(v_version,$info(mpc_encoder))
$puts(v_compression,$info(mpc_profile)))

$if($strcmp($num(%tracknumber%,1),4),
$get(color_tec)$get(v_codec)[' '$get(v_version)][' '$get(v_compression)],)

//**********************************************************
//    SHOW COMMENT
//**********************************************************
$if(%comment%,
$if($not($strcmp($cut(%comment%,3),'CRC')),
$if($not($strcmp($cut(%comment%,5),'Track')),
$if($strcmp($num(%tracknumber%,1),5),
$iflonger(%comment%,30,
$get(color_gri)
$cut('(' %comment%,
$iflonger($len(%album%),30,$len(%album%),30)) ... ')',
$get(color_gri)
'(' %comment% ')'),),)))



make sure to NOT delete the " ,) " below this chunk of code.
Czokalapik
Hi everyone!
I need help!
in my playlist i have something like this:
CODE

1:00
3:45
33:23
5:32

Of course i meant lengths of tracks
and i want to align them to the right < $char(9) isn't working >

CODE

 1:00
 3:45
33:23
 5:32


thx!!!
upNorth
@Czokalapik: I use this code to right align the length:
CODE
$pad_right(%_length%,5)
Adjust the number to fit your needs (0 = no padding)
vcv
Nothing fancy.

user posted image

Code is very hackish
CODE
// Config
$puts(show_pl_num,0)

// Characters
$puts(artistline,─)
$puts(artistsep,├)
$puts(sep,│)

// Colors
$puts(playingnums,22BF61|22bf61)
$puts(artist_fa,eeeeee|eeeeee)
$puts(clr_sep,666666|666666)

// Set information
$puts(codec, $if($strcmp(%__codec%,Vorbis),OGG Vorbis,%__codec%))
$puts(encodeinfo, %__bitrate_nominal%Kbps$get(codec))


///////////////////
///////////////////
///////////////////


// Playlist number
$if($strcmp($get(show_pl_num),'1'),
363636|3636BB
$repeat('0', $sub(4,$len(%_playlist_number%)))
CCCCCC|CCCCCC
$if(%_isplaying%,22BF61|22bf61,)%_playlist_number%,)

EEEEEE
$if(%tracknumber%,
$if($strcmp(%tracknumber%,1),
666666$get(artistsep)$get(artistline)$get(artist_fa)$pad( ♪ %artist% ♪ 666666,999,$get(artistline)),
$if($strcmp(%tracknumber%,2),
666666$get(sep) aaaaaa %album% - %date%,
$if($strcmp(%tracknumber%,3),666666$get(sep) $get(encodeinfo),666666$get(sep)))),
666666$get(sep) $if(%artist%,$transition(%artist%,$rgb(255,255,255),$rgb(195,195,195)),'555555<unknown artist>')
)

$tab(1)

$if(%_isplaying%,
$get(playingnums)$if(%tracknumber%,$pad_right(%tracknumber%,2) ,'   '),
$if(%tracknumber%,$pad_right(%tracknumber%,2) ,'   '))

ddeeff|ddeeff
$if(%title%,
$transition(%title%,$rgb(255,225,175),$rgb(225,225,215)),
'555555|555555<unknown title>')
$if($strcmp(%tracknumber%,'1'), $get(clr_sep)$repeat($get(artistline),999),)

$tab(1)

999999$if(%_isplaying%,$get(playingnums),666666)$pad_right(%_length%,5,0)
viveztigrou
here my foobar
>a 'bit modified' cold blue v2 formatting strings

user posted image
blink.gif

[edit] in red > the unreplaygained track
Czokalapik
~upNorth
I've earlier copied this string from you 'dynamic' srting tongue.gif <btw: i love it!!>
But anyway Big THX !!!!!
Czokalapik
~vcv
i saw Your last playlist string but could You also post Your Status bar string i think it's nice!
THX THX THX THX THX THX laugh.gif
vcv
QUOTE(Czokalapik @ Mar 13 2004, 01:34 PM)
~vcv
i saw Your last playlist string but could You also post Your Status bar string i think it's nice!
THX THX THX THX THX THX  laugh.gif

Absolutely!

CODE

$progress(%_time_elapsed_seconds%, %_time_total_seconds%, 30,'000066▒','999999▒')

333333%_time_elapsed%/%_time_total% - %__bitrate%Kbps
bbt-hh
How to do this?

$if(a AND b,c,d)

Thanks in advance.
vcv
QUOTE(bbt-hh @ Mar 13 2004, 05:18 PM)
How to do this?

$if(a AND b,c,d)

Thanks in advance.

$if($if(a,b,0),c,d)
largesock
Wouldn't $if($and(a,b),c,d) be a little more readable?
Czokalapik
~vcv
As I thought.
It is nice!
Thanks!
Linkin
QUOTE(viveztigrou @ Mar 13 2004, 09:30 PM)
here my foobar
>a 'bit modified' cold blue v2 formatting strings

http://syndrome-hulk.chez.tiscali.fr/vivez...love_foobar.png
blink.gif

[edit] in red > the unreplaygained track

can you post the whole code please?
Czokalapik
How can I get gradient effect in title or in dotted line wink.gif
exmpl:
CODE

title...............................................................length

and I want:

title..............................................................length

Thanks!!
tongue.gif
zilch_
i'm having some issues with some of the format string configs that i try to use.
some use lines to embrace albums etc, but they don't show on my comp even if i have the same font.

it is "extended" characters such as "|-" that doesn't show up.

i'm from sweden and i think it must have to do with that (locale wise) but i have no clue. please help, thanks biggrin.gif

/z
Czokalapik
Is it possible to bold only title of song when everything else is display with regular font??
psynapse
QUOTE(vcv @ Mar 13 2004, 10:13 AM)
Nothing fancy.

maybe not, but i really like this layout smile.gif

what font are you using?
Czokalapik
I have a little problem... dry.gif
I want to Album List appears each time I starting Foobar.
Where can I set this??
Thanks !! biggrin.gif
Czokalapik
QUOTE
i'm having some issues with some of the format string configs that i try to use.
some use lines to embrace albums etc, but they don't show on my comp even if i have the same font.

it is "extended" characters such as "|-" that doesn't show up.

i'm from sweden and i think it must have to do with that (locale wise) but i have no clue. please help, thanks

/z

try to use this:
CODE
$char(9567)

change numbers and symbol will also change.
zilch_
Czokalapik,
but I'm just using format strings that someone else has created.
i currently use this:

http://pelit.koillismaa.fi/fb2k/strings.php?f=17

it looks almost identical EXCEPT that the lines do not show. many other format strings have the same phenomena.

thanks.
Czokalapik
~zilch_
I got it!!
the only thing you have to do is to download "ProFontWindows_v2.1b" and install it!
I made it ...hmmmm a minute ago rolleyes.gif and it works!

Make it easier:
ProFontWindows_v2.1b
zilch_
thank you,
but i wrote before that i already had the correct font! it is not the font that is the problem, but certain characters not showing up.

this includes all strings i install, even though i always chose the correct font.
special characters are just not showing correctly.

forgot to add, my friend has the same problem, and also lives in sweden. i really think it is the locale, or something that has to do with that.

it is identical except JUST that the lines are not showing up.

/z
Czokalapik
It's strange...
It works on my comp sad.gif
But I tred! biggrin.gif
viveztigrou
QUOTE(Linkin @ Mar 14 2004, 02:20 AM)
QUOTE(viveztigrou @ Mar 13 2004, 09:30 PM)
here my foobar
>a 'bit modified' cold blue v2 formatting strings

http://syndrome-hulk.chez.tiscali.fr/vivez...love_foobar.png
blink.gif

[edit] in red > the unreplaygained track

can you post the whole code please?

i have a bit modified the code, nothing really impressive...
font is franklin medium 8
CODE
// ** CONFIGURATION || 1 = yes, 0 = no **

// set this to 1 if you have a dark "playlist selection color"
$puts(use_lighter_color_scheme,0)
$puts(first_repeat,220)
$puts(second_repeat,0)
$puts(horizontal_line,$char(8212))

// COLOR SETUP
$puts(color_album-mode_album,$rgb(0,56,113,0,56,113))
$puts(color_album-mode_album_info,$rgb(121,150,166,121,150,166))
$puts(color_artist,$rgb(27,99,180,27,99,180))
$puts(color_background,$rgb(249,249,247,186,199,209))
$puts(color_comment,$rgb(128,0,0,128,0,0))
$puts(color_currently_playing,$rgb(0,0,0,0,0,0))
$puts(color_currently_playing_indicators,$rgb(0,0,0,0,0,0))
$puts(color_extra_bitrate_and_extension,$rgb(200,211,225,200,211,225))
$puts(color_lines,$rgb(234,234,234,212,212,212))
$puts(color_no_replaygain,$rgb(255,0,0,255,0,0))
$puts(color_plnum_tracknum_length,$if(%_isplaying%,$get(color_currently_playing),$rgb(1,54,118,1,54,118)))
$puts(color_titles,$if(%_isplaying%,$get(color_currently_playing),$rgb(24,88,158,24,88,158)))
$puts(color_titles_in_parentheses,$if(%_isplaying%,$get(color_currently_playing),$rgb(168,203,242,168,203,242)))
$puts(color_va_artist,$rgb(0,4,55,0,4,55))
$puts(color_zeros_and_single-mode_album,$rgb(200,211,225,152,163,177))

$if($stricmp($get(use_lighter_color_scheme),1),
$puts(color_album-mode_album,$rgb(0,56,113,249,249,247))
$puts(color_artist,$rgb(27,99,180,249,249,247))
$puts(color_background,$rgb(249,249,247,65,86,122))
$puts(color_currently_playing,$rgb(0,0,0,249,249,247))
$puts(color_currently_playing_indicators,$rgb(0,0,0,249,249,247))
$puts(color_lines,$rgb(234,234,234,160,160,160))
$puts(color_plnum_tracknum_length,$if(%_isplaying%,$get(color_currently_playing),$rgb(1,54,118,249,249,247)))
$puts(color_titles,$if(%_isplaying%,$get(color_currently_playing),$rgb(24,88,158,249,249,247))))

// SELECTIONS

// formatting mode | 1 = album, 0 = single
$puts(formatting_mode,1)

// these apply only if album mode is used. ALL_tracks overrides not_having_fullalbum
$puts(use_album_formatting_for_ALL_tracks,1)
$puts(use_single_formatting_for_all_tracks_not_having_fullalbum_tag,1)

// don't use lucida console characters on other fonts. only_in_album_mode overrides the other one
$puts(use_lucida_console_font,0)
$puts(use_lucida_console_only_in_album_mode,0)

// display settings | general
$puts(indicate_no_replaygain,1)
$puts(remove_the_from_beginning_of_artist,0)
$puts(remove_underscores_from_filename,0)
$puts(show_animated_currently_playing_indicator,0)
$puts(show_rating,0)
$puts(show_extra_bitrate_and_extension,0)
$puts(show_length,1)
$puts(show_parentheses_in_different_color,1)
$puts(show_pl_number,1)

// display settings | album mode
$puts(album_separator_width,90)
$puts(constant_width_album_separator,5)
$puts(do_not_cut_producer,0)
$puts(do_not_cut_publisher,0)
$puts(show_album_separator,1)
$puts(variable_width_info_field,0)
$puts(width_of_info_field,40)

// display settings | single mode
$puts(replace_artist_with_va_in_single_mode,1)
$puts(show_album_in_single_mode,0)
// 1 = show album after title, 0 = show album before title
$puts(single_mode_album_mode,1)

// general
$puts(comment_indicator1,' *')
$puts(comment_indicator2,'*')
$puts(cut_string_character,$char(8230))
$puts(pl_number_line_art,'  ')
$puts(va_indicator,%va%)

// album mode
$puts(album_separator,' '$if($and(%fullalbum%,$stricmp($num($if2(%faketracknr%,%tracknumber%),2),01)),$transition($repeat($get(horizontal_line),$if($stricmp($get(constant_width_album_separator),1),$get(album_separator_width),$sub($get(album_separator_width),$add($len(%title%),$if(%va%,$add($len(%artist%),$if(%_isplaying%,8,3)),$if(%_isplaying%,5,0)))))),$get(color_lines),$get(color_background),))
$puts(date_and_genre_separator,$if($and(%date%,%genre%),' :: '))
// line art before track number
$if($and($stricmp($get(use_lucida_console_font),1),$stricmp($get(show_pl_number),1)),
$puts(tracknr_line_art,$get(color_lines)$select($min($if2(%faketracknr%,%tracknumber%),3),$char(9516),$if(%lasttrack%,$char(9524),$char(9532)),$if(%lasttrack%,$char(9492),$char(9500))))
,)

// singlemode indicators in playlist tab
$puts(tab1,'New Playlist')
$puts(tab2,'-s-')
$puts(tab3,'favs')
$puts(tab4,'temp')
$puts(tab5,'misc')
$puts(tab6,'abx')

// animated now playing indicator (Lucida Console only)
$puts(currently_playing_indicator,$if(%_isplaying%,' '
$get(color_currently_playing_indicators)
$select($mod($rand(),10),$char(9834),$char(9835),$char(9834),$char(9835),$char(9834),$char(9835),$char(9834),$char(9835),$char(9834),$char(9835))
$select($mod($rand(),10),$char(9834),$char(9835),$char(9834),$char(9835),$char(9834),$char(9835),$char(9834),$char(9835),$char(9834),$char(9835))
$select($mod($rand(),10),$char(9834),$char(9835),$char(9834),$char(9835),$char(9834),$char(9835),$char(9834),$char(9835),$char(9834),$char(9835))
$select($mod($rand(),10),$char(9834),$char(9835),$char(9834),$char(9835),$char(9834),$char(9835),$char(9834),$char(9835),$char(9834),$char(9835))
$select($mod($rand(),10),$char(9834),$char(9835),$char(9834),$char(9835),$char(9834),$char(9835),$char(9834),$char(9835),$char(9834),$char(9835)),))

// now playing indicator that replaces playlist number
$puts(num_currently_playing_indicator,$transition($repeat(>,$len(%_playlist_total%)),$get(color_background),$get(color_currently_playing_indicators)))

// STRINGS

// album mode formatting strings
$puts(album,%album%$if(%disc%,' (CD'$replace($upper(%disc%),'CD',,'DISC',)$if(%discname%,' - '%discname%)')',))
$puts(artist,$if(%va%,$get(va_indicator),$if($stricmp($get(remove_the_from_beginning_of_artist),1),$replace($left(%artist%,4),'The ',,'the ',)$right(%artist%,$sub($len(%artist%),4)),%artist%)))
$puts(comment,$if(%comment%,$get(comment_indicator1)%comment%$get(comment_indicator2)))
$puts(date,$if3(%albumdate%,%date%,%year%,))
$puts(extra_bitrate_and_extension,['['%__extrainfo%']'][$replace($pad_right(%__bitrate%,4,x),x,$get(color_background)0$get(color_extra_bitrate_and_extension))-]$upper($iflonger(%__codec%,4,$ext(%_path%),%__codec%))$get(color_lines)'|')
$puts(genre,[%genre%])
$puts(producer,['Produced by '%producer%])
$puts(publisher,['Published by '%publisher%])
$puts(title,$if($stricmp($get(show_parentheses_in_different_color),1),$replace(%title%,'(',$get(color_titles_in_parentheses)'(',')',')'$get(color_titles)),%title%))
$puts(tracknr,$get(color_plnum_tracknum_length)$ifgreater(%tracknumber%,9,%tracknumber%,$get(color_zeros_and_single-mode_album)'0'$get(color_plnum_tracknum_length)$right(%tracknumber%,1))'. ')
$puts(va_artist,$if(%va%,' ('%artist%')',))

// single mode formatting strings
$puts(single_album,$if(%album%,[$if(%va%,'VA - ',)%album%[' -CD'%disc%'-']]))

$puts(single_date,[$if($not(%bootleg%),' ('$if3(%albumdate%,%year%,%date%)')')])
$puts(single_title,$if($and(%artist%,%title%),$if($stricmp($get(show_parentheses_in_different_color),1),$replace(%title%,'(',$get(color_titles_in_parentheses)'(',')',')'$get(color_single_title)),%title%),))
$puts(single_tracknumber,[' #'$num(%tracknumber%,2)])

// misc strings
$puts(codec,$if($strstr(%_path_raw%,'cdda://'),'CDDA',$if3(%mp3%,$caps2(%__codec%),$upper($ext(%_path%)))))
$puts(rating,$if(%rating%,$pad($repeat(*,%rating%),7)))
$puts(extra_tech_info,[['|v'%__version%]['|'%__compression%]['|'%__extrainfo%]['|SV'%__mpc_streamversion%]['|'%__mpc_profile%]['|'%__aac_profile%]['|'$replace(%__tool%,'version ','v')]['|'%__vorbis_version%]'|'%__bitrate%'kbps'])
$puts(length,$get(color_zeros_and_single-mode_album)$replace($pad(,$sub(5,$len(%_length%))),' ','0')$get(color_plnum_tracknum_length)%_length%)
$puts(pl_number,$get(color_zeros_and_single-mode_album)$replace($pad(,$sub($len(%_playlist_total%),$len(%_playlist_number%))),' ','0')$get(color_plnum_tracknum_length)%_playlist_number%))
$puts(replaygain,'|'$if2($replace($cut(%__replaygain_album_gain%,4),',','.')$ifgreater($substr(%__replaygain_album_gain%,6,6),5,$add($substr(%__replaygain_album_gain%,5,5),1),$substr(%__replaygain_album_gain%,5,5))'dB','None'))

// ** MAIN CODE **

// check which font's characters should be used and replace them if needed
$if($and($stricmp($get(formatting_mode),0),$stricmp($get(use_lucida_console_only_in_album_mode),1)),$puts(use_lucida_console_font,0),)
$if($stricmp($get(use_lucida_console_font),0),$puts(extra_bitrate_and_extension,$replace($get(extra_bitrate_and_extension),$char(9474),'-')))
$if($stricmp($get(use_lucida_console_font),0),$puts(currently_playing_indicator,$if(%_isplaying%,' '$transition(<<<<<<,$get(color_currently_playing_indicators),$get(color_background)))))


// use variable width info field (album mode only)
$if($stricmp($get(variable_width_info_field),1),$puts(width_of_info_field,
$add($len($longest(
// fields which should be considered when deciding width_of_info_field
$get(album),
$get(artist),
$get(codec)
$replace($get(extra_tech_info),%__bitrate%,$num(%__bitrate%,4))$get(replaygain),
$if($stricmp($get(do_not_cut_producer),1),$get(producer),),
$if($stricmp($get(do_not_cut_publisher),1),$get(publisher),)
)),2)),)

// check if forced singlemode
$if($strstr($upper(%_playlist_name%),$upper($get(tab1))),$puts(formatting_mode,0))
$if($strstr($upper(%_playlist_name%),$upper($get(tab2))),$puts(formatting_mode,0))
$if($strstr($upper(%_playlist_name%),$upper($get(tab3))),$puts(formatting_mode,0))
$if($strstr($upper(%_playlist_name%),$upper($get(tab4))),$puts(formatting_mode,0))
$if($strstr($upper(%_playlist_name%),$upper($get(tab5))),$puts(formatting_mode,0))
$if($strstr($upper(%_playlist_name%),$upper($get(tab6))),$puts(formatting_mode,0))

// ALBUM FORMATTING
$puts(albuminfo,$if($or(%fullalbum%,$stricmp($get(use_album_formatting_for_ALL_tracks),1),$stricmp($get(use_single_formatting_for_all_tracks_not_having_fullalbum_tag),0)),
// formatting for different tracks
$select($min($if2(%faketracknr%,%tracknumber%),7),
// track 1
$get(color_artist)$get(artist)$get(color_lines)$repeat($get(horizontal_line),100)$repeat($char(9),$get(first_repeat)),
// track 2
$get(color_album-mode_album)$get(album)$get(color_lines)$repeat($get(horizontal_line),100)$repeat($char(9),$get(first_repeat)),
// track 3
$get(color_album-mode_album_info)$get(codec)$get(extra_tech_info)$get(replaygain)$get(color_background)$repeat($get(horizontal_line),100)$repeat($char(9),$get(first_repeat)),
// track 4
$get(color_album-mode_album_info)$get(date)$get(date_and_genre_separator)$get(genre)$get(color_background)$repeat($get(horizontal_line),100)$repeat($char(9),$get(first_repeat)),
// track 5
$get(color_lines)$get(color_album-mode_album_info)$if(%producer%,$get(producer),$get(publisher))$get(color_background)$repeat($get(horizontal_line),100)$repeat($char(9),$get(first_repeat)),
// track 6
$get(color_lines)$get(color_album-mode_album_info)$if(%producer%,$get(publisher),)$get(color_background)$repeat($get(horizontal_line),100)$repeat($char(9),$get(first_repeat)),
// the rest of the tracks
$get(track5_line_art)$get(color_background)$repeat($get(horizontal_line),100)$repeat($char(9),$get(first_repeat)),)
// line art before tracknumber
$get(tracknr_line_art),))
// song titles
$puts(titles_album,$if($and(%artist%,%fullalbum%),$get(tracknr)$get(color_titles)$if($stricmp($get(indicate_no_replaygain),1),$if($not(%__replaygain_album_gain%),$get(color_no_replaygain)),)$get(title)$get(color_va_artist)$get(va_artist)$get(color_comment)$get(comment),))

// SINGLE MODE FORMATTING
$puts(titles_single,$if($or($stricmp($get(formatting_mode),0),$not(%fullalbum%)),
// artist
$get(color_artist)
$if($stricmp($get(indicate_no_replaygain),1),$if($not(%__replaygain_track_gain%),$get(color_no_replaygain)),)
$if($and($stricmp($get(replace_artist_with_va_in_single_mode),1),%va%),
$replace($get(single_artist),$get(single_artist),$get(va_indicator)),$get(single_artist))
$if($and(%artist%,%title%),' - ')
// album
$if($stricmp($get(show_album_in_single_mode),0),
$if($stricmp($get(single_mode_album_mode),0),
$if(%album%,$get(color_zeros_and_single-mode_album)
'['
$if($and($stricmp($get(replace_artist_with_va_in_single_mode),0),%va%),
$replace($get(single_album),'VA - ',),$get(single_album))
$get(single_date)
$get(single_tracknumber)
'] ')))
// titles
$get(color_titles)$if($stricmp($get(indicate_no_replaygain),1),$if($not(%__replaygain_track_gain%),$get(color_no_replaygain)),)$if($and($stricmp($get(replace_artist_with_va_in_single_mode),1),%va%),$get(single_artist)' - ')$get(single_title)
// comment

// album type 2
$if($stricmp($get(show_album_in_single_mode),1),
$if($stricmp($get(single_mode_album_mode),0),
$if(%album%,$get(color_zeros_and_single-mode_album)
' / '
$if($and($stricmp($get(replace_artist_with_va_in_single_mode),1),%va%),
$replace($get(single_album),'VA - ',),$get(single_album))
$get(single_date)
$get(single_tracknumber)
' /')))
,))

// ** CREATE STRING **
$if($stricmp($get(show_pl_number),1),$if($and(%_isplaying%,$stricmp($get(use_lucida_console_font),1)),$get(num_currently_playing_indicator),$get(pl_number))$get(pl_number_line_art),)
$if($stricmp($get(formatting_mode),1),$get(albuminfo)$get(titles_album),)
$get(titles_single)
$if(%_isplaying%,$if($stricmp($get(show_animated_currently_playing_indicator),1),$get(currently_playing_indicator),))
$if($not(%fullalbum%),$repeat($char(9),$get(first_repeat)))
$if(%fullalbum%,$if($and($stricmp($get(show_album_separator),1),$stricmp($get(formatting_mode),1)),$get(album_separator),))
$repeat($char(9),$get(second_repeat))
$char(09)
$if($stricmp($get(show_rating),1),$get(color_extra_bitrate_and_extension)$get(rating),)
$if($stricmp($get(show_extra_bitrate_and_extension),1),$get(extra_bitrate_and_extension),)
$if($stricmp($get(show_length),1),$get(length),)
o770
QUOTE(nIRV @ Mar 12 2004, 11:57 PM)
nobody used %_filesize% yet ? smile.gif


Does that one work?
Where in the playlist default string may I add that to display the files size in MB?

I copied the status bar string of upNorth's dynamic and changed the progress bar color but I can't use any of the playlist strings because my files have no tags.

user posted image
zilch_
comeone guys smile.gif

someone must know why i can't get the extended characters as shown in this format string:

http://pelit.koillismaa.fi/fb2k/strings.php?f=17

yes i have the correct font...

/z
Czokalapik
QUOTE(o770 @ Mar 15 2004, 06:26 AM)
QUOTE(nIRV @ Mar 12 2004, 11:57 PM)
nobody used %_filesize% yet ? smile.gif


Does that one work?
Where in the playlist default string may I add that to display the files size in MB?

I copied the status bar string of upNorth's dynamic and changed the progress bar color but I can't use any of the playlist strings because my files have no tags.

user posted image

For Filesize in MB use this string:

CODE

$pad_right($div(%_filesize%,1048576).$cut($mod(%_filesize%,1048576)00,2),6) MB


And if You want foobar to display size of the file in MB but if it's smaller than 1mb in bytes then use this:

CODE

$ifgreater(%_filesize%,1048576,
$pad_right($div(%_filesize%,1048576).$cut($mod(%_filesize%,1048576)00,2),6) MB,
$pad_right($div(%_filesize%,1024).$cut($mod(%_filesize%,1024)00,2),6)  b
)
o770
Thank you!
Where in the default text do I insert that? And, is there a way to align the file size right before the characters '|> ' of the default string, like this: [10.95MB] > 8:04
thanks again.
Czokalapik
This is default playlist with filesize (like you want)
CODE

// check if all standard tags are present
$if($meta_test(title,artist,album),
// formatting for files with tags:

// check if track belongs to VA album
$if($or($stricmp(%album artist%,VA),$stricmp($left(%album artist%,7),various)),$puts(va,1),)




// 'album' formatting
$puts(album,'['%album%[ - CD$num(%disc%,1)]']'[ '['$num(%tracknumber%,2)']']
)

//if 'album artist' tag is present
$if(%album artist%,
// set 'artist' to VA for VA albums, and to 'album artist' otherwise:
$if($get(va),$puts(artist,VA),$puts(artist,%album artist%))
//if 'artist' is different from 'album artist', append the former to the title
$if($strcmp(%album artist%,%artist%),$puts(title,%title%),
$puts(title,%title% '//' %artist%)),
//no 'album artist' found
$puts(artist,%artist%)$puts(title,%title%)
)

// formatting for files without all the tags:
,
$if(%title%,
$puts(title,%title%)$if(%artist%,$puts(artist,%artist%)),
$puts(title,$if($stricmp($left(%_path_raw%,7),'http://'),%_path_raw%,
%_filename_ext%)))
)

$num(%_playlist_number%,$len(%_playlist_total%)).' '
[$get(artist) - ]
[$get(album) - ]
[$get(title)]

$char(9)[$pad_right('['$div(%_filesize%,1048576).$cut($mod(%_filesize%,1048576)00,2),6)MB']']
$if(%_isplaying%,' |> ','    ')%_length%


edit tab number to align size like you want!
o770
I thought that thing was to display file size in red which would be so nice!
I still cant get it to work, Czokalapik.
There is a long blank space between track lenght and title in the preview box and nothing changes in the playlist..

If this means something to you: the version of fb2k is 0.8, the playlist font is Lucida Console
Czokalapik
OK, now it have absolutely NO right to not work!!
o770
Amazing! Thanks a lot for the patience. Unfortunately we can't exchange strings cuz I simply don't understand them but I'm thankful for your work.
Czokalapik
At Your service at any time!
laugh.gif
Czokalapik
First i have string for my playlist made by 'smok3' but then I add few upgrades by myself and combine with great ideas of other users (anza,billcow).
And as a result i have somethinglike this:

user posted image
zilch_
wow,
care to share? smile.gif

/z
Czokalapik
PLAYLIST:
CODE

///////////////////COLOR CONFIG//////////////////
//     note - background for this scheme should be RGB=0,0,0
//     note - playlist selection color could be 242,242,242 or 255,255,255
//     note - selected item frame color should be 0,0,0
//     noet - font should be Lucida Console 9

//     rg info, no of tracks, dotted curve,titles and stuff,artist, station, is playing
$puts(color1,000000|000000)
//     album, dir, tracknumbers
$puts(color2,DEA368|DEA368)
//     dotted lines
$puts(color3,DFDFDF|DFDFDF)
//     missing track tags
$puts(color4,ffffff|DFDFDF)



 
//////////////////PLAYLIST NUMBER/////////////////
$get(color3)$repeat(0,$sub(4,$len2(%_playlist_number%)))
$get(color1)%_playlist_number%


//dotted lines
$if($strcmp($num(%tracknumber%,1),1),$get(color1),$get(color3))
$repeat(.,200)
$tab(1)

//////////////////DOTTED CURVE////////////////////
$ifgreater(%tracknumber%,1,$get(color3)
$repeat(.,$div($mul(%tracknumber%,%tracknumber%),4))
$get(color1)#,)


////////////ARTIST ON 1nd TRACK///////////////////
$if($strcmp($num(%tracknumber%,1),1),$if(%artist%,$get(color1)%artist%,)
$get(color1)$repeat(.,200)
)

////////////ALBUM ON 2nd TRACK////////////////////
$if($strcmp($num(%tracknumber%,1),2),
$if(%album%,$get(color2)/%album%/,),)

////////////DATE ON 3nd TRACK/////////////////////
$if($strcmp($num(%tracknumber%,1),3),
$if(%date%,$get(color2)%date%,),)

//dotted lines
$if($strcmp($num(%tracknumber%,1),1),$get(color1),$get(color3))
$repeat(.,200)


$tab(3)

///////////////////TRACKNUMBER//////////////////////
$if(%tracknumber%,$if(%_isplaying%,$get(color1),$get(color2))$num(%tracknumber%,2),)

//dotted lines
$if($strcmp($num(%tracknumber%,1),1),$get(color1),$get(color3))
$repeat(.,7)


/////////////////////TITLE//////////////////////////
//isplaying 1
$if(%_isplaying%,$get(color2)NOW PLAYING--$get(color1)|$get(color2)>,)

//title
$get(color1)
$if(%title%,%title%,%_filename_ext%)

$if($strcmp($num(%tracknumber%,1),1),$get(color1),$get(color3))
//isplaying 2
$if(%_isplaying%,$get(color2)<$get(color1)|$repeat($get(color2)-,200),$repeat(.,200))

$tab(6)


////////////////////////INFO///////////////////////
//display bitrate
$get(color3)
$pad_right($if2($pad(%__bitrate_dynamic%,3)'kbps',%__bitrate%'kbps'),8)


//dotted lines
$if($strcmp($num(%tracknumber%,1),1),$get(color1),$get(color3))
$repeat(.,3)

//////////CODEC
$get(color1)
$pad_right($caps($ext(%_path%)),4)


//dotted lines
$if($strcmp($num(%tracknumber%,1),1),$get(color1),$get(color3))
$repeat(.,3)

//////////FILESIZE
$get(color3)
$pad_right($div(%_filesize%,1048576).$cut($mod(%_filesize%,1048576)00,2),5) MB


//dotted lines
$if($strcmp($num(%tracknumber%,1),1),$get(color1),$get(color3))
$repeat(.,3)

//////////LENGHT
$get(color1)
$if(%_length%,$pad_right(%_length%,5),)

$tab(4)

/////////////////////GRAPHIC/////////////////////////
// configure the graphic
$transition(
$select($mod(%_playlist_number%,),
,
,
,
,
' █     █ ',
' ███████ ',
' █    ██ ',
'     ███ ',
'    ██   ',
'   ██    ',
' ███   █ ',
' ███████ ',
' █     █ ',
'         ',
' █     █ ',
' ███████ ',
' ███████ ',
' █     █ ',
'         ',
' █     █ ',
' ███████ ',
' ███████ ',
' █  █  █ ',
'  ██████ ',
' ███ ██  ',
' █       ',
'       █ ',
'     ███ ',
'   █████ ',
' ████  █ ',
' ██      ',
'   ██  █ ',
'     ███ ',
' █     █ ',
' ███     ',
' █ ███   ',
'   █  ██ ',
' █ █████ ',
' █████   ',
' ███     ',
' █       ',
'         ',
' █     █ ',
' ███████ ',
' █    ██ ',
'     ███ ',
'    ██   ',
'   ██    ',
' ███   █ ',
' ███████ ',
' █     █ ',
'         ',
' █       ',
' ███     ',
' █ ███   ',
'   █  ██ ',
' █ █████ ',
' █████   ',
' ███     ',
' █       ',

,),F2E7D0,$get(color2))

// the amount of spaces after the graphic
  

//¸


AND IF YOU WANT:
sys tray:
CODE

$if(%artist%,..::%artist% /,)$if(%album%, %album%::..,)$crlf()
$if(%tracknumber%,..::$num(%tracknumber%,2),)
$if(%title%, - %title%::..,%_filename_ext%::..)$crlf()
Info: %__bitrate%kpbs '//' %_length% min '//' '['$div(%_filesize%,1048576).$cut($mod(%_filesize%,1048576)00,2)']'MB '//'
$caps($ext(%_path%))


status bar:
CODE


%_time_elapsed%:/:%_time_remaining%:/:%_time_total%
$char(9566)DEA368$progress(%_time_elapsed_seconds%,%_time_total_seconds%,35,000000$char(9569)$num($div($mul(100,%_time_elapsed_seconds%),%_time_total_seconds%),2)'%'$char(9566),DEA368$char(9552))000000$char(9569)
DEA368 $select($add($mod(%_time_elapsed_seconds%,30),1),'<(^-^)v','<(^-^<)','^(^-^<)','^(^-^)^','<(-.-)>',' (>.<) ','<(O.<) ','<(O.O)>','<(o.O)v','v(o.o)v','^(º.o)v','^(º-º)^','v(O.º)^','v(O.o)>','(>o.o)>','(>-.-)^','^(^.^)^','<(^-^)>','v(^.^)v',' (>.<) ','<(o.o)>','<(O.o)>','<(o.O)>','<(O.o)>','<(o.O)>',' (>.<) ','<(º.o)>','<(o.º)>','<(º.o)>','<(º-º)v')$char(9)


$char(9)
$if(%artist%,%artist%,)$if(%album%,::/%album%/,)
$if(%title%,::%title%,::%_filename_ext%)
DEA368' ---|> '000000
$puts(text_bitrate,$if2($pad(%__bitrate_dynamic%,3)'kbps',$if2(%__bitrate%'kbps',)))
$get(text_bitrate)'//'%_length% min'//''['$div(%_filesize%,1048576).$cut($mod(%_filesize%,1048576)00,2)']'MB'//'$if(%__codec%, '('%__codec%')',)




Myself have all songs with tags so playlist is made for that ones.
(base was made by 'smok3' but i've wrote everything from the begining so it's very simple - i'm not any talent... wink.gif )
Czokalapik
Oh, and thanks go to ANZA for great idea with NIRVANA inscription in right side of playlist!!
I LOVE it!
....I love nirvana!!! biggrin.gif
moultano
Here's mine.
Feedback appreciated.
Czokalapik
hmmmmm
i have problem! dry.gif
my string
could enyone tell my why screenshot doesn't load?? sad.gif
lav-chan
Works fine for me, Czokalapik. :/


Hm. I finally got around to actually doing some work on mine, and i think i'm actually starting to really understand how foobar's scripting works. I still wish it was more like mIRC, but eh. :,)

Here's mine. It's mostly modified from... this one. Heh.
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.