Old 5th April 2005, 23:30   #1
siebe83
Forum King
 
siebe83's Avatar
 
Join Date: Feb 2004
Posts: 9,224
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 )
Attached Images
File Type: gif wa-atfhelp.gif (19.0 KB, 748 views)

Good Winamp plugins by Joonas, DrO and shaneh.
If you're bored go here or, if the boredom is more serious, here.
siebe83 is offline   Reply With Quote
Old 6th April 2005, 00:15   #2
billyvnilly
Forum King, M.D.
 
billyvnilly's Avatar
 
Join Date: Mar 2004
Location: Detroit burbs
Posts: 3,379
Send a message via ICQ to billyvnilly Send a message via AIM to billyvnilly
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)
billyvnilly is offline   Reply With Quote
Old 6th April 2005, 00:47   #3
bgesley
Major Dude
 
bgesley's Avatar
 
Join Date: Oct 2002
Location: without wax
Posts: 948
Send a message via AIM to bgesley
whatever it is, its default.

bgesley is offline   Reply With Quote
Old 6th April 2005, 01:21   #4
Nunzio390
Nugatory Aluminator
Look it up

 
Nunzio390's Avatar
 
Join Date: Oct 2002
Location: Tharsis Ridge (Martian lowlands)
Posts: 8,590
Send a message via AIM to Nunzio390 Send a message via Yahoo to Nunzio390
Re: What's your ATF string?

Quote:
Originally posted by siebe83
(the attachment is for Nunzio )
LOL @ Siebe
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.

ORB Remote Broadcast

[ Automated Jukebox | Nunzio's Home | Wacky Videos | Solve the Prunella Puzzle! ]
[ LINE RIDER! | My Resume | Virtual Chess | Composite Sketch | My Niece's Band ]
[ Plugins by Joonas | DrO's Winamp Plugins and Extras | K-Jöfol ]
Nunzio390 is offline   Reply With Quote
Old 6th April 2005, 07:29   #5
DrO
 
Join Date: Sep 2003
Posts: 27,874
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
DrO is offline   Reply With Quote
Old 6th April 2005, 18:15   #6
Nunzio390
Nugatory Aluminator
Look it up

 
Nunzio390's Avatar
 
Join Date: Oct 2002
Location: Tharsis Ridge (Martian lowlands)
Posts: 8,590
Send a message via AIM to Nunzio390 Send a message via Yahoo to Nunzio390
Quote:
Originally posted by DrO
resizable stream info box plugin
Hmmm.. I imagine you're talking about the Enlarge "MP3 Stream Info Box" thread that's sitting in the Wishlist forum when you refer to this plugin. Right?
But I didn't know that you'd actually begun work on it. Cool
Nunzio390 is offline   Reply With Quote
Old 10th April 2005, 01:39   #7
billyvnilly
Forum King, M.D.
 
billyvnilly's Avatar
 
Join Date: Mar 2004
Location: Detroit burbs
Posts: 3,379
Send a message via ICQ to billyvnilly Send a message via AIM to billyvnilly
@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..
billyvnilly is offline   Reply With Quote
Old 10th April 2005, 02:04   #8
gaekwad2
Foorum King
 
gaekwad2's Avatar
 
Join Date: Jul 2003
Location: bar2000
Posts: 11,371
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.
gaekwad2 is offline   Reply With Quote
Old 10th April 2005, 03:00   #9
billyvnilly
Forum King, M.D.
 
billyvnilly's Avatar
 
Join Date: Mar 2004
Location: Detroit burbs
Posts: 3,379
Send a message via ICQ to billyvnilly Send a message via AIM to billyvnilly
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'
billyvnilly is offline   Reply With Quote
Old 10th April 2005, 10:52   #10
siebe83
Forum King
 
siebe83's Avatar
 
Join Date: Feb 2004
Posts: 9,224
$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?

Good Winamp plugins by Joonas, DrO and shaneh.
If you're bored go here or, if the boredom is more serious, here.
siebe83 is offline   Reply With Quote
Old 10th April 2005, 11:12   #11
gaekwad2
Foorum King
 
gaekwad2's Avatar
 
Join Date: Jul 2003
Location: bar2000
Posts: 11,371
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 12:12.
gaekwad2 is offline   Reply With Quote
Old 10th April 2005, 16:03   #12
billyvnilly
Forum King, M.D.
 
billyvnilly's Avatar
 
Join Date: Mar 2004
Location: Detroit burbs
Posts: 3,379
Send a message via ICQ to billyvnilly Send a message via AIM to billyvnilly
@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?
billyvnilly is offline   Reply With Quote
Old 10th April 2005, 23:35   #13
gaekwad2
Foorum King
 
gaekwad2's Avatar
 
Join Date: Jul 2003
Location: bar2000
Posts: 11,371
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.)
gaekwad2 is offline   Reply With Quote
Old 27th May 2005, 14:08   #14
siebe83
Forum King
 
siebe83's Avatar
 
Join Date: Feb 2004
Posts: 9,224
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...

Good Winamp plugins by Joonas, DrO and shaneh.
If you're bored go here or, if the boredom is more serious, here.
siebe83 is offline   Reply With Quote
Old 27th May 2005, 14:16   #15
DrO
 
Join Date: Sep 2003
Posts: 27,874
Quote:
Originally posted by billyvnilly
@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?
hmm, i can't remember but have i done that yet or not?

-daz
DrO is offline   Reply With Quote
Old 27th May 2005, 14:19   #16
siebe83
Forum King
 
siebe83's Avatar
 
Join Date: Feb 2004
Posts: 9,224
Yes, you did

http://forums.winamp.com/showthread....74#post1646974
Quote:
Manually adding a separator should now insert 'Various Artist' where applicable

Good Winamp plugins by Joonas, DrO and shaneh.
If you're bored go here or, if the boredom is more serious, here.
siebe83 is offline   Reply With Quote
Old 27th May 2005, 14:28   #17
DrO
 
Join Date: Sep 2003
Posts: 27,874
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
DrO is offline   Reply With Quote
Old 27th May 2005, 14:56   #18
siebe83
Forum King
 
siebe83's Avatar
 
Join Date: Feb 2004
Posts: 9,224
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...

Good Winamp plugins by Joonas, DrO and shaneh.
If you're bored go here or, if the boredom is more serious, here.
siebe83 is offline   Reply With Quote
Old 27th May 2005, 15:07   #19
DrO
 
Join Date: Sep 2003
Posts: 27,874
hehe, i should do that
sounds like a dodgy plugin with a name like that

-daz
DrO is offline   Reply With Quote
Old 27th May 2005, 15:16   #20
gaekwad2
Foorum King
 
gaekwad2's Avatar
 
Join Date: Jul 2003
Location: bar2000
Posts: 11,371
Quote:
Originally posted by siebe83
I think I'll go for 'operator' for now...
I'd say functions.

They get called with some arguments and return a value.
(Kinda like mugging victims.)
gaekwad2 is offline   Reply With Quote
Old 27th May 2005, 15:49   #21
siebe83
Forum King
 
siebe83's Avatar
 
Join Date: Feb 2004
Posts: 9,224
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?

Good Winamp plugins by Joonas, DrO and shaneh.
If you're bored go here or, if the boredom is more serious, here.
siebe83 is offline   Reply With Quote
Old 27th May 2005, 15:53   #22
DrO
 
Join Date: Sep 2003
Posts: 27,874
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
DrO is offline   Reply With Quote
Old 27th May 2005, 20:24   #23
siebe83
Forum King
 
siebe83's Avatar
 
Join Date: Feb 2004
Posts: 9,224
I like easter eggs
But you're right, functionality goes first.

Mmh, what about the JTF dialog jumping all over the screen when you type 'jump' in the search field?

Good Winamp plugins by Joonas, DrO and shaneh.
If you're bored go here or, if the boredom is more serious, here.
siebe83 is offline   Reply With Quote
Old 27th May 2005, 20:26   #24
DrO
 
Join Date: Sep 2003
Posts: 27,874
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
DrO is offline   Reply With Quote
Old 27th May 2005, 21:57   #25
Nunzio390
Nugatory Aluminator
Look it up

 
Nunzio390's Avatar
 
Join Date: Oct 2002
Location: Tharsis Ridge (Martian lowlands)
Posts: 8,590
Send a message via AIM to Nunzio390 Send a message via Yahoo to Nunzio390
Quote:
Originally posted by siebe83
Mmh, what about the JTF dialog jumping all over the screen when you type 'jump' in the search field?
YES!!! I want that!
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.

ORB Remote Broadcast

[ Automated Jukebox | Nunzio's Home | Wacky Videos | Solve the Prunella Puzzle! ]
[ LINE RIDER! | My Resume | Virtual Chess | Composite Sketch | My Niece's Band ]
[ Plugins by Joonas | DrO's Winamp Plugins and Extras | K-Jöfol ]
Nunzio390 is offline   Reply With Quote
Old 28th May 2005, 06:29   #26
iron2000
Senior Member
 
iron2000's Avatar
 
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
iron2000 is offline   Reply With Quote
Old 28th May 2005, 06:36   #27
MarkRH
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%},})]

MarkRH is offline   Reply With Quote
Old 28th May 2005, 07:44   #28
gaekwad2
Foorum King
 
gaekwad2's Avatar
 
Join Date: Jul 2003
Location: bar2000
Posts: 11,371
Quote:
Originally posted by Nunzio390
[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.
Yes, that is a problem.

But don't worry, we'll hide you from the style police.
gaekwad2 is offline   Reply With Quote
Old 28th May 2005, 08:19   #29
benaw
Senior Member
 
benaw's Avatar
 
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.
benaw is offline   Reply With Quote
Old 28th May 2005, 08:37   #30
siebe83
Forum King
 
siebe83's Avatar
 
Join Date: Feb 2004
Posts: 9,224
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?

Good Winamp plugins by Joonas, DrO and shaneh.
If you're bored go here or, if the boredom is more serious, here.
siebe83 is offline   Reply With Quote
Old 28th May 2005, 15:15   #31
benaw
Senior Member
 
benaw's Avatar
 
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!
benaw is offline   Reply With Quote
Old 2nd July 2005, 16:58   #32
benaw
Senior Member
 
benaw's Avatar
 
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
benaw is offline   Reply With Quote
Old 2nd March 2006, 10:46   #33
siebe83
Forum King
 
siebe83's Avatar
 
Join Date: Feb 2004
Posts: 9,224
*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

Good Winamp plugins by Joonas, DrO and shaneh.
If you're bored go here or, if the boredom is more serious, here.
siebe83 is offline   Reply With Quote
Old 15th September 2006, 16:51   #34
h3ctic
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" ???
h3ctic is offline   Reply With Quote
Old 15th September 2006, 17:48   #35
DJ Egg
Techorator
Winamp & SHOUTcast Team
 
Join Date: Jun 2000
Posts: 35,778
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:
[$if2(%albumartist%,%artist%) - ][%album% - ][$num(%track%,2) - ]
$IfStrNotEqual(%artist%,$if2(%albumartist%,%artist%),[%artist% - ])[$if2(%title%,$filepart(%filename%))]
[$if($fileext(%filename%),' ( ',)][%year% | ][$fileext(%filename%) ][$if(%bitrate%, '|' ,)]
[%bitrate% 'kbps' ][$if($fileext(%filename%),')',)][ $repeat(* , %rating%) ]

DJ Egg is offline   Reply With Quote
Old 15th September 2006, 18:13   #36
h3ctic
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%'}'
h3ctic is offline   Reply With Quote
Old 15th September 2006, 18:27   #37
h3ctic
Junior Member
 
Join Date: Feb 2002
Posts: 22
same if I use $num(%tracknumber%,2)
h3ctic is offline   Reply With Quote
Old 15th September 2006, 18:33   #38
DJ Egg
Techorator
Winamp & SHOUTcast Team
 
Join Date: Jun 2000
Posts: 35,778
which is why you need brackets round it

[$num(%track%,2)]
[$num(%tracknumber%,2)]
DJ Egg is offline   Reply With Quote
Old 15th September 2006, 18:41   #39
h3ctic
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?
h3ctic is offline   Reply With Quote
Old 15th September 2006, 18:45   #40
DJ Egg
Techorator
Winamp & SHOUTcast Team
 
Join Date: Jun 2000
Posts: 35,778
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.
DJ Egg is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Winamp > Winamp Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump