Old 4th November 2003, 13:33   #1
Viper007Bond
Major Dude
 
Viper007Bond's Avatar
 
Join Date: May 2002
Location: Portland, OR Life: None
Posts: 1,054
Send a message via ICQ to Viper007Bond Send a message via AIM to Viper007Bond Send a message via Yahoo to Viper007Bond
Can someone teach me "Advanced Title Formatting" for WA5?

Uh, see title. I want to be able to mess around with that, but have no clue how the if's, etc. work.

- Viper007Bond | Viper007Bond.com
Viper007Bond is offline   Reply With Quote
Old 4th November 2003, 14:24   #2
Gonzotek
Gunslinger
 
Gonzotek's Avatar
 
Join Date: May 2000
Location: Terminus
Posts: 4,693
Try simple things, then build upon what you learn from the results. Copy and paste any strings you like to a text file, so you don't have to lose it when playing around with formatting. I'll start you off with a few examples:


$filepart(%filename%)
Would give you just the name of the file, with no extension.
Example:
C:\Documents and Settings\Cassidy\My Documents\MP3\Ogg Music\Tom Waits\Bone machine\2. Tom Waits - Bone machine - Dirt in the ground.ogg
becomes
2. Tom Waits - Bone machine - Dirt in the ground


$if(%artist%,%artist%[ - %title%],$filepart(%filename%))
If works like this: $if(a,b,c) If a has a valid tag, show b. Otherwise show c. b and c can be simple like %artist% - %title% or more complicated like my example above. In this example, b is %artist%[ - %title%]. The brackets mean that it only shows the title if it exists(not very practical I know). And as you can see, C is built from the first example.
Example:
C:\Documents and Settings\Cassidy\My Documents\MP3\Ogg Music\Tom Waits\Bone machine\5. Tom Waits - Bone machine - Who are you.ogg
becomes
Tom Waits - Who are you

I was away for a while.
But I'm feeling much better now.
Gonzotek is offline   Reply With Quote
Old 4th November 2003, 14:26   #3
Viper007Bond
Major Dude
 
Viper007Bond's Avatar
 
Join Date: May 2002
Location: Portland, OR Life: None
Posts: 1,054
Send a message via ICQ to Viper007Bond Send a message via AIM to Viper007Bond Send a message via Yahoo to Viper007Bond
Alright, thanks.

- Viper007Bond | Viper007Bond.com
Viper007Bond is offline   Reply With Quote
Old 4th November 2003, 16:30   #4
ryan
not fucked, not quite.
(Forum King)
 
ryan's Avatar
 
Join Date: Feb 2002
Location: Tn
Posts: 8,798
Send a message via AIM to ryan
You could try taking a look at the foobar title formatting guide, since the winamp5 title formatting, and foobar2000 title formatting are similar.
ryan is offline   Reply With Quote
Old 4th November 2003, 18:23   #5
Kinetik*
Forum Antagonist
(Major Dude)
 
Kinetik*'s Avatar
 
Join Date: Jun 2002
Location: The Collective Rectum
Posts: 1,154


Couldn't Resist.


Procrastinators of the world unite!... Tomorrow!
Kinetik* is offline   Reply With Quote
Old 4th November 2003, 18:47   #6
Gonzotek
Gunslinger
 
Gonzotek's Avatar
 
Join Date: May 2000
Location: Terminus
Posts: 4,693
Quote:
Originally posted by Sawg
Click the little help button next to the box.
That doesn't show you how to build a complex formatting string, it just shows the description of each function....and, at that, it's missing $if2() (and maybe more?). A live preview (like the output file settings of cd-ripping) would be a most welcome addition to the title-formatting prefs...then you could see the results of your changes immediately.

[edit]Suggested to beta list.[/edit]

-=Gonzotek=-

I was away for a while.
But I'm feeling much better now.
Gonzotek is offline   Reply With Quote
Old 4th November 2003, 19:02   #7
Xerxes
Capitalist Alumni
 
Xerxes's Avatar
 
Join Date: May 2000
Location: my 4 Houses on Park Place
Posts: 8,687
Send a message via ICQ to Xerxes
I wish this aspect would have been handled with an eye towards average users- not to turn this into an Itunes thread, but they handled it with a menu with checked choices, and the order of the categories was changeable by dragging the categories.

Even a "simple" string is quite difficult for the majority of users.

Perhaps a couple good "preset" strings could come loaded with the next version...

Now is the time for all good Americans to come to the aid of their Country
Xerxes is offline   Reply With Quote
Old 4th November 2003, 19:13   #8
Gonzotek
Gunslinger
 
Gonzotek's Avatar
 
Join Date: May 2000
Location: Terminus
Posts: 4,693
Quote:
Perhaps a couple good "preset" strings could come loaded with the next version...
Great minds think alike...I already suggested that in my mail to the beta list.

I was away for a while.
But I'm feeling much better now.
Gonzotek is offline   Reply With Quote
Old 4th November 2003, 19:27   #9
Xerxes
Capitalist Alumni
 
Xerxes's Avatar
 
Join Date: May 2000
Location: my 4 Houses on Park Place
Posts: 8,687
Send a message via ICQ to Xerxes
Joy!

"Simple: Artist - Title"
"Albums: Artist - Album - Title"
"Classical: Composer - Title - Artist - Album"

etc etc.

Now is the time for all good Americans to come to the aid of their Country
Xerxes is offline   Reply With Quote
Old 4th November 2003, 20:23   #10
jarsonic
Major Dude
 
jarsonic's Avatar
 
Join Date: Aug 2000
Location: Charlottesville, VA
Posts: 1,114
Send a message via AIM to jarsonic
I prefer this string:
code:
[%artist% - ]$if(%title%,['['%album%[ #[%disc%/]$num(%tracknumber%,2)]'] ']%title%,%_filename_ext%)



It outputs something like

code:
Lifehouse - [No Name Face #07] - Cling and Clatter

do justly | love mercy | walk humbly
jarsonic is offline   Reply With Quote
Old 4th November 2003, 21:16   #11
Xerxes
Capitalist Alumni
 
Xerxes's Avatar
 
Join Date: May 2000
Location: my 4 Houses on Park Place
Posts: 8,687
Send a message via ICQ to Xerxes
Alternately, i'm sure it would be very easy for someone to make a small little utility that would generate a string...

Now is the time for all good Americans to come to the aid of their Country
Xerxes is offline   Reply With Quote
Old 7th November 2003, 17:13   #12
Viper007Bond
Major Dude
 
Viper007Bond's Avatar
 
Join Date: May 2002
Location: Portland, OR Life: None
Posts: 1,054
Send a message via ICQ to Viper007Bond Send a message via AIM to Viper007Bond Send a message via Yahoo to Viper007Bond
Quote:
Originally posted by Sawg
Click the little help button next to the box.
I'm blind.
Quote:
Originally posted by Gonzotek
then you could see the results of your changes immediately.
That would be an EXCELLENT feature.

- Viper007Bond | Viper007Bond.com
Viper007Bond is offline   Reply With Quote
Old 8th November 2003, 02:16   #13
Lion King
Major Dude
 
Join Date: Jan 2001
Posts: 1,670
Quote:
Originally posted by jarsonic
I prefer this string:
code:
[%artist% - ]$if(%title%,['['%album%[ #[%disc%/]$num(%tracknumber%,2)]'] ']%title%,%_filename_ext%)
%_filename_ext% works only in foobar2000, you have to use "$filepart(%filename%).$fileext(%filename%)" in winamp5
Lion King is offline   Reply With Quote
Old 27th August 2004, 11:18   #14
saivert
Banned
 
saivert's Avatar
 
Join Date: Jan 2001
Location: Norway
Posts: 927
Advanced Title Formatting was invented by PP (Peter Pawlowski, a former plug-in developer for Nullsoft) for the use in his player Foobar2000 and was just recently added into Winamp. The ATF feature is actually much better (read: has more codes) than the one in Winamp. In Foobar2000 you can also insert color codes into the string and create progress bars like:
===#===== by using the $progress() ATF functions.
saivert is offline   Reply With Quote
Old 27th August 2004, 11:29   #15
CraigF
Passionately Apathetic
Administrator
 
CraigF's Avatar
 
Join Date: May 2000
Location: Hell
Posts: 5,435
"Hi, my name is saivert, ive been around here since jan 2001, and im full of shit."

ATF first showed up in winamp a number of years ago. It was found in peters plugin configs, and was presented as a library, originally by himself, for inclusion in winamp as a whole. THEN came foobar.

facts people, facts.

its not hard. especially when digging up an old ass thread to post crap to.

CraigF is offline   Reply With Quote
Old 27th August 2004, 23:46   #16
mark
Forum King
 
mark's Avatar
 
Join Date: Jul 2002
Location: Norn Ir'nd, leek...
Posts: 6,287
well while its up,
code:
[%artist% - ][%year% - ][%album%]$if(%album%,$if(%tracknumber%, - '['%tracknumber%']' , - ),)$if2(%title%,$filepart(%filename%))
works well
mark is offline   Reply With Quote
Old 28th August 2004, 09:50   #17
zootm
Forum King
 
zootm's Avatar
 
Join Date: Jan 2002
Location: the nether reaches of bonnie scotland
Posts: 13,375
I use this one:
code:
[%artist% - ][%album% [#%tracknumber% ]- ]$if2(%title%,$filepart(%filename%))


I think it's pretty similar to some that've been posted already...

Outputs similar to:
code:
The Prodigy - Always Outnumbered, Never Outgunned #01 - Spitfire


Deals with missing tags *fairly* well. Could do with nesting the "album" bit inside the artist bit, maybe.

zootm is offline   Reply With Quote
Old 28th August 2004, 11:59   #18
fwgx
Rudolf the Red.
(Forum King)
 
fwgx's Avatar
 
Join Date: Nov 2000
Posts: 9,314
I use
code:
[$num(%tracknumber%,2) - ]$if(%artist%,%artist% - ,Unknown Artist - )[%album% - ]$if(%title%,%title%,%filename%)


Which displays like:

07 - Rancid - Let's Go - As One

"We think science is interesting and if you disagree, you can fuck off."
fwgx is offline   Reply With Quote
Old 28th August 2004, 12:02   #19
mark
Forum King
 
mark's Avatar
 
Join Date: Jul 2002
Location: Norn Ir'nd, leek...
Posts: 6,287
mine displays

Dream Evil - 2003 - Evilized - [01] Break The Chains
mark is offline   Reply With Quote
Old 30th August 2004, 12:43   #20
saivert
Banned
 
saivert's Avatar
 
Join Date: Jan 2001
Location: Norway
Posts: 927
CraigF: Why so nasty???

I was right in one thing, that PP made up the ATF thiny.
And so what if it was used first in a plug-in for Winamp.
That doesn't directly mean it was in Winamp first. It was only in a plug-in.
The first application to use it was Foobar2000.
PP abandoned Nullsoft to work on his own player and then Winamp adopted the ATF shit.
saivert is offline   Reply With Quote
Old 30th August 2004, 22:08   #21
ryan
not fucked, not quite.
(Forum King)
 
ryan's Avatar
 
Join Date: Feb 2002
Location: Tn
Posts: 8,798
Send a message via AIM to ryan
I use

$if(%tracknumber%,$num(%tracknumber%,2). ,)%artist% - $cut(%album%, 17)... - %title%

I could make it much better if there was a $len function to use, that way for albums less than 17 characters, I could have it not show the '...'.

Displays something like.

07. Placebo - Without You I'm... - The Crawl
ryan is offline   Reply With Quote
Old 30th August 2004, 22:33   #22
fwgx
Rudolf the Red.
(Forum King)
 
fwgx's Avatar
 
Join Date: Nov 2000
Posts: 9,314
hmmm, there needs to be a reverse $longest() so you could do:

$shortest($cut(%album%, 17)..., %album%)

"We think science is interesting and if you disagree, you can fuck off."
fwgx is offline   Reply With Quote
Old 30th August 2004, 22:42   #23
J_Darnley
Forum King
 
J_Darnley's Avatar
 
Join Date: Apr 2004
Location: Belgium, Europe
Posts: 3,626
Send a message via ICQ to J_Darnley
Quote:
Originally posted by Phily Baby
hmmm, there needs to be a reverse $longest() so you could do:

$shortest($cut(%album%, 17)..., %album%)
Yes, I have seen a couple of requests for it in the wishlist. I too would like a $shortest function. I could then have some really interesting formats.

Winamp ATF ReferenceMy cPro timer widgetMy port of AVS
Do NOT email me with general tech support questions.
J_Darnley is offline   Reply With Quote
Old 30th August 2004, 23:52   #24
ryan
not fucked, not quite.
(Forum King)
 
ryan's Avatar
 
Join Date: Feb 2002
Location: Tn
Posts: 8,798
Send a message via AIM to ryan
Quote:
Originally posted by Phily Baby
hmmm, there needs to be a reverse $longest() so you could do:

$shortest($cut(%album%, 17)..., %album%)
That's exactly what I was thinking.
ryan is offline   Reply With Quote
Old 10th January 2008, 15:02   #25
djpete
Major Dude
 
djpete's Avatar
 
Join Date: Apr 2004
Location: Melbourne, Australia
Posts: 940
Can someone shine some light on why some of my files (just the occasional file, not many) show in lowercase in the Playlist only? They are fine in MLibrary.
I have tried default settings and then $filepart(%filename%)
as per post above.
Still the same...
The files are just plain old mp3's.
I don't use any tags at all.
Any help appreciated.
I'm using latest version 5.51 and I have the same occasional prob on my laptop as well.
All I would like in the playlist is filename as in artist - song

Cheers, Pete

Anything & Everything Winamp - All In One Place...
Winamp Enthusiasts Group
djpete is offline   Reply With Quote
Old 11th January 2008, 03:02   #26
djpete
Major Dude
 
djpete's Avatar
 
Join Date: Apr 2004
Location: Melbourne, Australia
Posts: 940
correction.
i actually DO have the problem in Mlibrary also...

Cheers, Pete

Anything & Everything Winamp - All In One Place...
Winamp Enthusiasts Group
djpete is offline   Reply With Quote
Old 11th January 2008, 04:50   #27
djpete
Major Dude
 
djpete's Avatar
 
Join Date: Apr 2004
Location: Melbourne, Australia
Posts: 940
fixed.
it was my old playlists...seems they may have been in lower case when saved.
replaced the culprits with the updated files and all good.

Cheers, Pete

Anything & Everything Winamp - All In One Place...
Winamp Enthusiasts Group
djpete is offline   Reply With Quote
Old 16th January 2008, 16:47   #28
MistaSonic
Junior Member
 
Join Date: Apr 2003
Posts: 2
Send a message via ICQ to MistaSonic Send a message via AIM to MistaSonic
issue

I think I've found a bug. I'm using

[%artist% - ][%album% [- $num(%tracknumber%,2) ]- ]$if2(%title%,$filepart(%filename%))

and it reutrns

All That Remains - The Fall of Ideals - 07 - Six

for properly tagged files, but ones with no tag it returns stuff like

Alkaline Trio - Alkaline Trio - Metro
Allanah Myles - zUnsorted - Black Velvet

zUnsorted is the directory it's in, I'm wondering why it's pulling that out. Any ideas?
Attached Images
File Type: jpg example.jpg (77.5 KB, 277 views)
MistaSonic is offline   Reply With Quote
Old 16th January 2008, 21:04   #29
ryan
not fucked, not quite.
(Forum King)
 
ryan's Avatar
 
Join Date: Feb 2002
Location: Tn
Posts: 8,798
Send a message via AIM to ryan
Winamp guesses from the filename/location if there are no tags.

Use $if2(%album%,'') or something.
ryan is offline   Reply With Quote
Old 24th January 2008, 16:49   #30
MistaSonic
Junior Member
 
Join Date: Apr 2003
Posts: 2
Send a message via ICQ to MistaSonic Send a message via AIM to MistaSonic
After playing for a few days, I finally found a format that would work.

$if(%tracknumber%,[%artist% - ][%album% [- $num(%tracknumber%,2) ]- ][%title%],$filepart(%filename%))

That shows all my tracks that are ID3'd and tagless files show just filename. I though I would share if anyone was having the same issue.
Attached Images
File Type: jpg winamp.jpg (81.8 KB, 463 views)
MistaSonic is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Community Center > General Discussions

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