|
|
#1 |
|
Forum King
Join Date: Feb 2004
Posts: 9,229
|
What's your ATF string?
Yay, another one of those personal WA preference threads...
Do you have that one ATF rule that rules? Do you still pull the strings behind your playlist editor? ![]() Seriously... I'm making some kind of overview of what's possible with ATF in Winamp. Of course ATF Extender and creating columns are already there. But maybe there's more? %bitrate% > does anyone have info on that? It's undocumented but it seems to work? %length% > song length in miliseconds, anyone found a use for it? Any others? $longest(...) is in the help dialog, but $shortest(...) works as well... Maybe more? Or just post your ATF rule here, that'll do as well... Maybe there'll be some nice ones... ![]() (would like to include some examples as well...) (the attachment is for Nunzio )
|
|
|
|
|
|
#2 |
|
Forum King, M.D.
|
i believe ml_atfext.dll ATF Extender opens up alot more opportunities, just minus the cmp stuff.
more options courtesy of shaneH ________________________________________ moving on... i have removed all my tags from comment, except those from various artists(VA). i put VA in teh comment field to make it easy $if(%comment%,'3spaces'[%tracknumber% - ][%Artist% - ][%title%],'3spaces'[%tracknumber% - ][%title%] along with dro's playlist separator. >>>...%t....%a.....[%y].....[.on forever..] perfect display for albums and soundtracks(and other VA) |
|
|
|
|
|
#3 |
|
Major Dude
|
whatever it is, its default.
|
|
|
|
|
|
#4 | |
|
Re: What's your ATF string?
Quote:
Am I to assume that my post here prompted you to attach a screenshot that I "might" be able to read? Ahhh... okay. Rub it in. Make fun of my failing eyesight. I don't mind.
Don't email or PM me concerning Winamp. Instead, either start a NEW TOPIC or post a REPLY in the appropriate thread in these forums. This will also benefit others who may have a similar question or problem. But before posting, please first Search the forums and read all FAQs and all Sticky threads. [ LINE RIDER! | My Resume | Virtual Chess | Composite Sketch | My Niece's Band ] [ Plugins by Joonas | DrO's Winamp Plugins and Extras | K-Jöfol ] |
||
|
|
|
|
|
#5 |
|
Join Date: Sep 2003
Posts: 27,873
|
hmm, didn't i mumble something about allowing it to be resized... ah yeah, need to finish the resizable stream info box plugin and then do that (/me tries to triple the number of hours in the day
)-daz |
|
|
|
|
|
#6 | |
|
Quote:
But I didn't know that you'd actually begun work on it. Cool
|
||
|
|
|
|
|
#7 |
|
Forum King, M.D.
|
@siebe a challenge for you
ok, so whats wrong with this: $if(%Artist%,$if(%Album%,$if(%Tracknumber%,$if(%Title%,%Artist% - %Album% - %Tracknumber% - %Title%,%Artist% - %Album% - %Tracknumber% - NO TITLE),$if(%Title%,%Artist% - %Album% - NO ## - %Title%,%Artist% - %Album% - NO ## - NO TITLE)),$if(%Tracknumber%,$if(%Title%,%Artist% - NO ALBUM - %Tracknumber% - %Title%,%Artist% - NO ALBUM - %Tracknumber% - NO TITLE),$if(%Title%,%Artist% - NO ALBUM - NO ## - %Title%,%Artist% - NO ABLUM - NO ## - NO TITLE)),$if(%Album%,$if(%Tracknumber%,$if(%Title%,%Artist% - %Album% - %Tracknumber% - %Title%,%Artist% - %Album% - %Tracknumber% - NO TITLE),$if(%Title%,%Artist% - %Album% - NO ## - %Title%,%Artist% - %Album% - NO ## - NO TITLE)),$if(%Tracknumber%,$if(%Title%,NO ARTIST - NO ALBUM - %Tracknumber% - %Title%,NO ARTIST - NO ALBUM - %Tracknumber% - NO TITLE),$if(%Title%,NO ARTIST - NO ALBUM - NO ## - %Title%,NO ARTIST - NO ABLUM - NO ## - NO TITLE)) it weeds out stuff... i spent like 45 minutes at this i still cant solve it.. |
|
|
|
|
|
#8 |
|
Foorum King
Join Date: Jul 2003
Location: bar2000
Posts: 11,457
|
sorry if the challenge was only for siebe
I'm not going to go through that mess (
) but at first glance it looks like it's supposed to do the same as$if2(%artist%,NO ARTIST) - $if2(%album%,NO ALBUM) - $if2(%tracknumber%,NO ##) - $if2(%title%,NO TITLE) ? PS My ATF string is the default one. |
|
|
|
|
|
#9 |
|
Forum King, M.D.
|
holy **** i over complicated it lol.
i did use $if( instead of $if2( for some reason but i forgot why. thanks gaekwad everyone is entitled to be stupid, but today i have abused the privilege [edit]oh yeah now i remember, i was going ot rearrange the results so it group all of the 'no tag' at the beginning of each entry, but never got around to it because it was so confusing already...so the challenge is still open! [edit2]as well as just use %filename% when all 4 are 'no tag' |
|
|
|
|
|
#10 |
|
Forum King
Join Date: Feb 2004
Posts: 9,229
|
$if(%artist% %album% %tracknumber% %title%,$if2(%artist%,NO ARTIST) - $if2(%album%,NO ALBUM) - $if2(%tracknumber%,NO ##) - $if2(%title%,NO TITLE),NO TAGINFO - $filepart(%filename%))
There seems to be a 254 character limit to the ATF string (probably the reason your previous one didn't work...) And which probably means rearranging the results isn't possible either... Everything after the 254th character got cut off for me... The one in your first post is nice, thanks... ![]() One use of the comment tag that should be mentioned... Although I didn't quite get the separator part... For various artists albums, the separator would then give the artist of the first track of that album, right? |
|
|
|
|
|
#11 |
|
Foorum King
Join Date: Jul 2003
Location: bar2000
Posts: 11,457
|
In foobar that would be
$puts(string,$if2(%artist%,NO ARTIST)) $puts(string,$if(%album%,$get(string) - %album%,$insert($get(string),NO ALBUM - ,0))) $puts(string,$if(%tracknumber%,$get(string) - $num(%tracknumber%,1),$insert($get(string),NO ## - ,0))) $puts(string,$if(%title%,$get(string) - %title%,$insert($get(string),NO TITLE - ,0))) $puts(string,$if($strcmp($get(string),NO TITLE - NO ## - NO ALBUM - NO ARTIST),%_filename%,$get(string))) $get(string) (if you think ATF is powerful...) But I did write a similar one for Winamp once (not for all tags though I think) /goes digging through old threads edit: search hates me and I'm tired edit2 (re: ok, so whats wrong with this): It may well be too long or contain too many nested ifs, I think there's a limit for both. Last edited by gaekwad2; 10th April 2005 at 13:12. |
|
|
|
|
|
#12 |
|
Forum King, M.D.
|
@siebe yeah, the only bad part about it is that VA albums show the artist from the first track
@DrO, in separator plugin, is it possible to compare artist between two tracks, and if they are different, use 'Various Artists' or soemthing of that nature? |
|
|
|
|
|
#13 |
|
Foorum King
Join Date: Jul 2003
Location: bar2000
Posts: 11,457
|
Almost perfect, there's only a problem left with getting the right amount of dashes:
$if(%artist% %album% %tracknumber% %title%,$if(%artist%,,NO ARTIST - )$if(%album%,,NO ALBUM - )$if(%tracknumber%,,NO ## - )$if(%title%,,NO TITLE - )[%artist%][ - %album%][ - %tracknumber%][ - %title%],NO TAGINFO - $filepart(%filename%)) (To get NO TITLE/NO TAGINFO I had to switch off metadata guessing in the Library prefs.) |
|
|
|
|
|
#14 |
|
Forum King
Join Date: Feb 2004
Posts: 9,229
|
Nice!
Or is this reply a bit late? ![]() Anyway, I think I'll use it, thanks. Stupid question: how would you call $if, $pad, etc..? Operators? Functions? Commands? Dunno... |
|
|
|
|
|
#15 | |
|
Join Date: Sep 2003
Posts: 27,873
|
Quote:
-daz |
|
|
|
|
|
|
#16 | |
|
Forum King
Join Date: Feb 2004
Posts: 9,229
|
Yes, you did
![]() http://forums.winamp.com/showthread....74#post1646974 Quote:
|
|
|
|
|
|
|
#17 |
|
Join Date: Sep 2003
Posts: 27,873
|
ta, i'm getting really forgetful of what i have and haven't done of late
![]() oh and i use the default string (getting the the thread back on track )-daz |
|
|
|
|
|
#18 |
|
Forum King
Join Date: Feb 2004
Posts: 9,229
|
that's because you do too much
you should take the time to enjoy your own plugins once in a while ![]() I use [%artist% - ][%tracknumber% - ]$if2(%title%,$filepart(%filename%))[ {%year%}] in combination with some plugin called Playlist Separator: ---------- %a I think I'll go for 'operator' for now... |
|
|
|
|
|
#19 |
|
Join Date: Sep 2003
Posts: 27,873
|
hehe, i should do that
![]() sounds like a dodgy plugin with a name like that -daz |
|
|
|
|
|
#20 | |
|
Foorum King
Join Date: Jul 2003
Location: bar2000
Posts: 11,457
|
Quote:
They get called with some arguments and return a value. (Kinda like mugging victims.) |
|
|
|
|
|
|
#21 |
|
Forum King
Join Date: Feb 2004
Posts: 9,229
|
Ah, it all makes sense to me now, thanks. Dunno what I was thinking. Functions it is.
DrO, would there be some easter egg in it which breaks the playlist editor in two?
|
|
|
|
|
|
#22 |
|
Join Date: Sep 2003
Posts: 27,873
|
i haven't really coded any easter eggs in to any of the plugins for a while now, i think the most are just functional 'extras'
(there's at least one in the new jtfe which is useful i think)-daz |
|
|
|
|
|
#24 |
|
Join Date: Sep 2003
Posts: 27,873
|
hehe, nice idea though now you've said i can't do it since people will know what to look for
i *may* add in a funky jtfe easter egg at some stage when a few more things get implemented into the code...-daz |
|
|
|
|
|
#25 | |
|
Quote:
So it won't be an Easter Egg. Who cares? It'll be an added/extra "function" instead. Do it, Darren! FUN FUN FUN!!! Hippity-hop! Jumpity-jump! ![]() [EDIT] Hmmm... I dunno now. Me-think-s this needs Re-think-ing. I have "Jump" by Van Halen in my collection. Could be a problem.
Don't email or PM me concerning Winamp. Instead, either start a NEW TOPIC or post a REPLY in the appropriate thread in these forums. This will also benefit others who may have a similar question or problem. But before posting, please first Search the forums and read all FAQs and all Sticky threads. [ LINE RIDER! | My Resume | Virtual Chess | Composite Sketch | My Niece's Band ] [ Plugins by Joonas | DrO's Winamp Plugins and Extras | K-Jöfol ] |
||
|
|
|
|
|
#26 |
|
Senior Member
Join Date: Mar 2002
Location: Singapore
Posts: 391
|
My ATF string:
$if2(%comment%,'[???]')[' ['$num(%tracknumber%,2)']']': '$if2(%artist% ,'[???] ')'- '$if2(%title%,$filepart(%filename%)) I use the comment field to store the category of the music. (mostly anime titles) Recently this system got me abit confused and I ended up with duplicates. (alanwo from hong kong, I don't need the whatever program you recommend) Thanx |
|
|
|
|
|
#27 |
|
Senior Member
Join Date: Nov 2002
Location: Oklahoma City, OK
Posts: 405
|
Here's what I use:
$if2(%title%,$filepart(%filename%))[ {$if2(%artist%,NO ARTIST)$if(%album%, - %album%},})]
|
|
|
|
|
|
#28 | |
|
Foorum King
Join Date: Jul 2003
Location: bar2000
Posts: 11,457
|
Quote:
But don't worry, we'll hide you from the style police. |
|
|
|
|
|
|
#29 |
|
Senior Member
Join Date: Feb 2005
Location: AUSTRALIA!!! Adelaide SouthOzz
Posts: 174
|
i'v been using this for a while but i think i might give it a re-think are there more ATF expressions than whats in sibe83's attachment "the attachment is for Nunzio ", and where can i get a list of all avalible?
'BAW'__$num(%year%,4)__$upper(%artist% -) $filepart(%filename%)_.$fileext(%filename%) it's pretty good, yes it is. |
|
|
|
|
|
#30 |
|
Forum King
Join Date: Feb 2004
Posts: 9,229
|
The functions in that list are pretty much all that are available. Only $shortest isn't mentioned there...
Another list with more info will be available shortly (with the same functions, just some more info on them). But why 'BAW' at the beginning of each entry?
|
|
|
|
|
|
#31 |
|
Senior Member
Join Date: Feb 2005
Location: AUSTRALIA!!! Adelaide SouthOzz
Posts: 174
|
thats just my initials it started off just as an easy way to see if the [(playlist ATF tags)not sure of the terminology] were being updated. now it's just ownership i guess, my winamp playlist. winamp is so customizable that every one's is probably very very diffrent my winamp has my initials in the playlist because it's mine. i love winamp it is my most favorite program ever. don't really know why my initials are in it. how about, because i can!
|
|
|
|
|
|
#32 |
|
Senior Member
Join Date: Feb 2005
Location: AUSTRALIA!!! Adelaide SouthOzz
Posts: 174
|
i have copied my ATF string into the flack decoder and it doesn't work. my flac files come up with unknown but the syntax reference seems to be the same for the decoder.
any idea's |
|
|
|
|
|
#33 |
|
Forum King
Join Date: Feb 2004
Posts: 9,229
|
*cough*
The overview I was working on never really got finished, and is now terribly outdated anyway... ![]() Shane started an ATF wiki, explaining all Winamp 5.2+ tags/functions/etc, which is nice I think: http://www.myplugins.info/winamp-wik...tle_formatting |
|
|
|
|
|
#34 |
|
Junior Member
Join Date: Feb 2002
Posts: 22
|
$if2(%artist%,NO ARTIST) - $if2(%album%,NO ALBUM) - $if2(%tracknumber%,NO ##) - $if2(%title%,NO TITLE)
REALLY Liked this one!! One thing tho, is it possible to get it to read and use the leading zeros in %tracknumber from id3v2.4 tags??? Example: Now my id3v2.4 tag shows "02" in track-number, but it will still show "2" ??? |
|
|
|
|
|
#35 |
|
Techorator
Winamp & Shoutcast Team Join Date: Jun 2000
Posts: 35,875
|
Use $num(%track%,2) or $num(%tracknumber%,2)
Not sure if it'll work with $if2 though, heh. Whilst I'm here, I may as well put my current (5.3 beta) atf string in here :-D code: |
|
|
|
|
|
#36 |
|
Junior Member
Join Date: Feb 2002
Posts: 22
|
Problem with that one is that if there is no track-number in the id-tag, it'll display:
"4294967295" ??? Ie: $if2(%artist%,NO ARTIST) '{'$if2(%album%,NO ALBUM) $if2($num(%track%,2),NO ##)'} ' - $if2(%title%,NO TITLE) '{' - %comment% - %genre%'}' |
|
|
|
|
|
#37 |
|
Junior Member
Join Date: Feb 2002
Posts: 22
|
same if I use $num(%tracknumber%,2)
|
|
|
|
|
|
#39 |
|
Junior Member
Join Date: Feb 2002
Posts: 22
|
I still get
"4294967295" using: $if2(%artist%,NO ARTIST) '{'$if2(%album%,NO ALBUM) $if2([$num(%tracknumber%,2)],NO ##)'} ' - $if2(%title%,NO TITLE) '{' - %comment% - %genre%'}' whats wrong?
|
|
|
|
|
|
#40 |
|
Techorator
Winamp & Shoutcast Team Join Date: Jun 2000
Posts: 35,875
|
Brackets round a string means that if (as in this particular case) there is no track# then nothing will be displayed. Therefore you should just use [$num(%track%,2) - ] and not the $if2 argument.
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|