QUOTE(NEMO7538 @ Feb 5 2004, 09:22 PM)
I will post it to your URL after some improvements I'm thinking of
It happens because you have no proper track# tag in your files. In this case (which I use to recognize Internet Radios from files) the formatting is File (or URL) / left aligned and %Title% / right aligned. This is by design
ok, I'll wait your updates
and yes, they lack the track tag, I will tag them asap.
I changed two things in your playlist, the "_" and delete the left zeros in track numbers. If you want to use it here it is:
CODE
$puts(TrackNum,$ifgreater(10,%tracknumber%, $right(%tracknumber%,1),$num(%tracknumber%,2))'. ')
Ah, I also added a space after the dot.
upNorth
Feb 9 2004, 07:49
QUOTE(gizmo @ Feb 5 2004, 05:20 AM)
anybody know how to make "OST (xxxx) bla bla bla" album like in "VA - (xxxx) bla bla bla" as various artist????

Hi, if you have a look at the config area that my "dynamic" formattings starts with, you will find this:
CODE
//Recognise Various Artists albums (Start directory name with this indicator)
//Note: Already hardcoded: [includes: 'VARIOUS ARTISTS'], [starts with: 'VA - ']
$puts(Various-Artists_indicator,'V.A.')
If you change the last line to:
CODE
$puts(Various-Artists_indicator,'OST ')
it should do what you ask for.
If you don't want to use "dynamic", just trace the variable "Various-Artists_indicator" to the place in the code (line: 505) where it's used and see how it's done. For short it uses $substr(a,b,c)
burn out
Feb 9 2004, 16:20
Thanx guys for your feed back. I'll check out your advise and will see.
I'm currently facing a strange problem in foobar's "default user interface" section. For some spooky reason, changing the playlist text colour isn't working any more. Could my browser security settings be the reason for this behaviour? (Active X and scripting disabled.)
Oh well, you may LYAO but everything goes for a computer goofy like me in a situation like this LOL.
upNorth, I'm still drooling at those fancy tabs on your tool bar. What's the deal w. foo_looks? As far as I remember there was some concern that the looks would eat your CPU. That wouldn't do any good to the foobar name and to my 450 hz box as well. If that isn't really the case, I might try out one of those.
Oh, nearly forgot this one:
How can I save individual settings for each formatting string? Things like modified colours etc. It seems that the changes that I made, did affect the other formatting strings as well. Once I get one string look good for me, switching to an other one often only reveils a desastrous scenario. Did I get lost?
Sorry for my ramble
burn out
Feb 9 2004, 16:21
Thanx guys for your feed back. I'll check out your advise and will see.
I'm currently facing a strange problem in foobar's "default user interface" section. For some spooky reason, changing the playlist text colour isn't working any more. Could my browser security settings be the reason for this behaviour? (Active X and scripting disabled.)
Oh well, you may LYAO but everything goes for a computer goofy like me in a situation like this LOL.
upNorth, I'm still drooling at those fancy tabs on your tool bar. What's the deal w. foo_looks? As far as I remember there was some concern that the looks would eat your CPU. That wouldn't do any good to the foobar name and to my 450 hz box as well. If that isn't really the case, I might try out one of those.
Oh, nearly forgot this one:
How can I save individual settings for each formatting string? Things like modified colours etc. It seems that the changes that I made, did affect the other formatting strings as well. Once I get one string look good for me, switching to an other one often only reveils a desastrous scenario. Did I get lost?
Sorry for my ramble
burn out
Feb 9 2004, 16:22
Thanx guys for your feed back. I'll check out your advise and will see.
I'm currently facing a strange problem in foobar's "default user interface" section. For some spooky reason, changing the playlist text colour isn't working any more. Could my browser security settings be the reason for this behaviour? (Active X and scripting disabled.)
Oh well, you may LYAO but everything goes for a computer goofy like me in a situation like this LOL.
upNorth, I'm still drooling at those fancy tabs on your tool bar. What's the deal w. foo_looks? As far as I remember there was some concern that the looks would eat your CPU. That wouldn't do any good to the foobar name and to my 450 hz box as well. If that isn't really the case, I might try out one of those.
Oh, nearly forgot this one:
How can I save individual settings for each formatting string? Things like modified colours etc. It seems that the changes that I made, did affect the other formatting strings as well. Once I get one string look good for me, switching to an other one often only reveils a desastrous scenario. Did I get lost?
Sorry for my ramble
upNorth
Feb 12 2004, 11:43
QUOTE(Max @ Feb 12 2004, 06:40 PM)
Hey guys!
I have a question
I want that my playlist shows nice Album Infos etc. But if i had a playlist with just Single i want that there writes the Artist and Title not the Track Number and stuff like that.
How can i realize that?
Here is a simple example of how to do it by adding an indicator in the playlist/tab name:
CODE
$if($strstr(%_playlist_name%,-s-),
%artist% - %title%,
%artist% - %album% - #%tracknumber%. %title%
)
What this does is look for
-s- somewhere in the name of the playlist. It's important to open it in a new tab as it is actually the tab name that is used.
I personally use a combination of this, looking for other indicators in directory names and a %SINGLETRACK% tag to handle single files.
Here, check my new format
newOrderJust wanted to make a universal format, for albums and singles.
But for that to work you need to put singles in they own directory.
Mine is [dowloading], you can easily change that.
p.s. Some ideas for design i got from UpNorth's dynamic, but no code was copied
thanx UpNorth, you have some revolutionary ideas.
You can see how i solved the problem about displaying tracks which are not 01 02 ... numbered, but 1 2 ... or mixed, it's all in order.
And some other thing...if there is file without tags and only a title as a filename it extracts directory name and displays Artist and Album.
It's not really user frendly written code, let me know for any bugs and annoyances.
jeffery_901
Feb 26 2004, 00:09
I made a status bar title format, which I thought was cool, cause it has a vis in it.
i didn't know where to post it, so i thought i'd try here
-sorry if it is the wrong place...
-enjoy
// BY CASSO
// I'm using .font:Franklin Gothic Medium .style:regular .size:13
// res 1280x960
// the vis uses the varible bitrate, so must be turned on in
// preferences-> input-Standard inputs
// check "real-time ..." and I set it to 2
// I use musepack @ quality 7, but you can use any varible bitrate file,
// but u may have to change thresholds in "// vis" section "$greater($get(db),30),..."
// "30" is 300 kbps, greater makes the bar & colour change to that lines specs
// feedback & questions at casso@postmark.net
// animated colour brackets as "colour left" & "colour right"
$puts(no,$right(%_time_elapsed%,1))
$puts(brak1a,'(' 0000FF'(')
$puts(brak1b,0000FF'( (')
$puts(brak1c,0000FF'(' '(')
$puts(brak2a,0000FF')' ')')
$puts(brak2b,0000FF') )')
$puts(brak2c,')' 0000FF')')
$puts(colour left,$if(
$strcmp($get(no),1),$get(brak1a),$if(
$strcmp($get(no),2),$get(brak1b),$if(
$strcmp($get(no),3),$get(brak1c),$if(
$strcmp($get(no),6),$get(brak1a),$if(
$strcmp($get(no),7),$get(brak1b),$if(
$strcmp($get(no),8),$get(brak1c),'( (')))))))
$puts(colour right,$if(
$strcmp($get(no),1),$get(brak2a),$if(
$strcmp($get(no),2),$get(brak2b),$if(
$strcmp($get(no),3),$get(brak2c),$if(
$strcmp($get(no),6),$get(brak2a),$if(
$strcmp($get(no),7),$get(brak2b),$if(
$strcmp($get(no),8),$get(brak2c),') )')))))))
// vis
$puts(db,$left(%__bitrate_dynamic%,2))
$if(
$greater($get(db),30),$and($puts(bit,FF5353),$puts(barL,||||||||||||||||||||),$puts(barR,||||||||||||||||||||)),$if(
$greater($get(db),26),$and($puts(bit,959500),$puts(barL,|||||||||||||||||),$puts(barR,|||||||||||||||||)),$if(
$greater($get(db),24),$and($puts(bit,009507),$puts(barL,|||||||||||||||),$puts(barR,|||||||||||||||)),$if(
$greater($get(db),22),$and($puts(bit,009577),$puts(barL,||||||||||||),$puts(barR,||||||||||||)),$if(
$greater($get(db),20),$and($puts(bit,008D95),$puts(barL,|||||||||),$puts(barR,|||||||||)),$if(
$greater($get(db),18),$and($puts(bit,006595),$puts(barL,||||||),$puts(barR,||||||)),$if(
$greater($get(db),16),$and($puts(bit,000095),$puts(barL,|||),$puts(barR,|||)),$if(
$greater($get(db),0),$and($puts(bit,000000)$puts(barL,||),$puts(barR,||)),))))))))
// display:
// shows audio file type
$puts(ext,$upper($if2($ext(%__referenced_file%),$ext(%_path%))))
$puts(codec,$if(%__codec%,$caps2(%__codec%),$get(ext)))
$if($strcmp($get(codec),),
$if($stricmp($left(%_path_raw%,7),'cdda://'),$puts(codec,CDDA),)
,)
' '$get(codec)' '
' @ '
// shows quality as either CD, Acceptable OR Shockin
$if(
$and($greater(%__bitrate%,180),$greater(%__samplerate%,44000)),
CD,
$if(
$and($greater(%__bitrate%,127),$greater(%__samplerate%,44000)),
Acceptable,
Shockin))
' Quality'
//Shows any missing info / samples
$if(%__replaygain_album_gain%,,' ! 'NO RG' ! ')
// vis part 1
$tab(1)
$transition('( '$get(barL),000000,$get(bit))
// shows if dolby 7.1, 5.1, stereo or mono
' '
$if($greater(%__channels%,7), $get(bit)Dolby 7.1 ,
$if($greater(%__channels%,5), $get(bit)Dolby 5.1 ,
$if($greater(%__channels%,1), $get(bit)stereo , $get(bit)mono )))
' '
// vis part 2
$transition($get(barR)' )',$get(bit),000000)
// shows " || --% played || Time Elapsed : --- || Time Left : --- || Total Time : --- || " at end of line
$tab(1)['|| '$left($muldiv(100,%_time_elapsed_seconds%,%_time_total_seconds%),2)'% played || Time Elapsed : '%_time_elapsed%' || Time Left : '%_time_remaining%' || Total Time : '%_time_total%' ||']
slicepizza
Feb 29 2004, 10:31
[QUOTE]@slicepizza: A few pages earlier in this thread I posted a script that makes text scroll. You can find it here.
Thanks upNorth,
another one,
"$if(%_isplaying%,[%title%] >>$select($add($mod(%_time_elapsed_seconds%,18),1),'>','>>','>>>','>>>>','>>>>>','>>>>>>','>>>>>>>'
,'>>>>>>>>','>>>>>>>>>','>>>>>>>>>>','>>>>>>>>>>>','>>>>>>>>>>>>'
,'>>>>>>>>>>>>>','>>>>>>>>>>>>>>','>>>>>>>>>>>>>>>','>>>>>>>>>>>>>>>>'
,'>>>>>>>>>>>>>>>>>','>>>>>>>>>>>>>>>>>>'),[%title%])"
Above script doesn't work in the playlist.
How can I make it work?
DotNoir
Mar 2 2004, 16:17
I see (guess) you're not using %__codec% because you have MPC instead of Musepack for example, so it's $ext(%_filename_ext%)?
then you might consider something like this (it's a bit messy, but does the trick, i think)
CODE
$puts(line,
$if($stricmp($add($len(%__bitrate%),$len($ext(%_filename_ext%))),8),_____,
$if($stricmp($add($len(%__bitrate%),$len($ext(%_filename_ext%))),7),______,
$if($stricmp($add($len(%__bitrate%),$len($ext(%_filename_ext%))),6),_______,))))
$get(line)
edit:
The $get line comes where you atm have the line, so it should "scale" to the length of the codec plus bitrate... Hmmm... of course there are extensions with only two letters... hmmm... well, adding a few lines with 5 and 4 should do the trick...
upNorth
Mar 2 2004, 16:49
In case DotNoir is right about the use of file extension instead of %__codec%, this line will to some extent do what you ask:
CODE
$repeat('_',$sub(6,$len($ext(%_filename_ext%))))$upper($ext(%_filename_ext%))'['%__bitrate%']'
In case you use something like this:
CODE
$if($stricmp(%__codec%,musepack),$puts(t_codec,'MPC'))
to show "MPC" instead of "Muspack" change the $ext(%_filename_ext%)) part to e.g. $get(t_codec) in my example.
DotNoir
Mar 2 2004, 17:14
QUOTE(upNorth @ Mar 3 2004, 12:49 AM)
In case DotNoir is right about the use of file extension instead of %__codec%, this line will to some extent do what you ask:
CODE
$repeat('_',$sub(6,$len($ext(%_filename_ext%))))$upper($ext(%_filename_ext%))'['%__bitrate%']'
In case you use something like this:
CODE
$if($stricmp(%__codec%,musepack),$puts(t_codec,'MPC'))
to show "MPC" instead of "Muspack" change the $ext(%_filename_ext%)) part to e.g. $get(t_codec) in my example.
You have to note that bitrates may have two to four charachters of length as well (I only assumed from 3 to four in the example, that's why I noted about that in the end)... That's what I first ignored... $repeat is a good way to do that tho, yes... Was (and still am) a bit sleepy so that didn't cross my mind...
edit: this should work in that case... Only thing what I (re-)noticed is that ext(%_filename_ext%) gives "CUE" when having image+cue... so it might be you're using something else than this anyways... but that's the basic structure how to do it...
CODE
$repeat('_',$sub(9,$add($len(%__bitrate%),$len($ext(%_filename_ext%)))))$upper($ext(%_filename_ext%))'['%__bitrate%']'
edit2: or did i understand that correctly? the right side should be aligned?
edit3: Yup, shouldn't think too much when tired, so the UpNorths code was exactly what he was looking for...
lav-chan
Mar 5 2004, 23:42
Hm, alright, i have two (or possibly one, depending on how well the first is answered) questions. Um, probably n00b questions. Heh.
First question: I kind of get foobar's scripting language (or whatever you want to call it), but there are some parts i'm confused on. I can easily edit a script to my liking, given a little trial and error, but i'm not quite convinced that i understand how some of the things in the scripts work. I can see where things are done different, by comparison, but i don't understand
how they get done what they get done.
Long story short, i'm unsure how 'album' (for lack of a better term) scripts work. Scripts like
this one. That's what i'm using now. I've tried editing it (to do things like display the year below, rather than next to, the album title), but i've not had much luck, and i still don't get how the script formats it according to the album. (What is it going by in order to decide when it's got a full album, and thus when it puts the album information to the side like that?)
That's... probably a stupid question. But eh. -_-
Second question: The reason i'm curious is, i'm interested in making my formatting script work a little differently. Instead of displaying the artist, then the album and year, i want it to just display the basic album information at the top, and then the artist(s) next to the song. Here are my
awesome Photoshop skills at work, to better explain. Is it possible/feasible/easy to do something like that in foobar?
Er, also, i suppose that first link counts as 'my' format string. But it's just a slightly modified string from the 'foobar2000 formatting' site, heh.
Silverbolt
Mar 6 2004, 00:17
Hey, Lav :]
QUOTE(Lav @ Mar 5 2004, 09:42 PM)
(or whatever you want to call it)
"TAGZ", I believe (though I've seen various forms of capitalization)
QUOTE
i don't understand how they get done what they get done.
Long story short, i'm unsure how 'album' (for lack of a better term) scripts work. ...and i still don't get how the script formats it according to the album. (What is it going by in order to decide when it's got a full album, and thus when it puts the album information to the side like that?)
That is basically entirely up to the script writer. For some people, album mode only requires a few fields (%album% and %tracknumber%, for example), while others may require complete tags; I've also seen one which based it's album mode decision on the existence of %__replaygain_album_gain%. Others might use album mode by default unless 'single mode' is explicitly set by certain strings/symbols ('[S]', '-S-', etc.) in the playlist name. Also a note that it might not always be %tracknumber% (i.e. the %faketracknr% upNorth uses, as well as various forms of tracknumber guessing in the absence of %tracknumber%)
QUOTE
Second question: The reason i'm curious is, i'm interested in making my formatting script work a little differently. Instead of displaying the artist, then the album and year, i want it to just display the basic album information at the top, and then the artist(s) next to the song. Here are my
awesome Photoshop skills at work, to better explain. Is it possible/feasible/easy to do something like that in foobar?
Not that I know of (at least not automatically). You could make it look similar to that, however, if you sacrificed every first track's line of info (useless, I know >.>). A different direction would be to have specially tagged 'divider' files, but this would be a huge hassle (1 divider file per album). Those divider files would probably have to have a special tag field (%divider%, %header%, or whatever you could think of) and have your script detect it and display the album information to your liking.
Edit:
QUOTE
I've tried editing it (to do things like display the year below, rather than next to, the album title), but i've not had much luck, and i still don't get how the script formats it according to the album.
It's usually based entirely on the tracknumber. In psuedo code, you'd have 'if %tracknumber% == 3, display %date%'. In tagz, it'd probably look something like:
CODE
$if($strcmp($num(%tracknumber%,1),3),'('%date%')')
I'm not familiar with that script, so it might use $select() to select what line of code to use as formatting instead of individual $strcmp()s.
Hope that helps. Take care :p