» Welcome Guest
[ Log In :: Register ]

 

[ Track this topic :: Email this topic :: Print this topic ]

Topic: Multipart fields and the 'pipe' character< Next Oldest | Next Newest >
noddy
Unregistered





Posted: Feb. 17 2004,04:23

Hi guys,
First post right here.
Magnus... you rock.
MP3TS is by far and away the best tagger I've come across. My registration will be forthcoming shortly. :)
Quick question though.... I don't understand the use of the square brackets and the 'pipe' character in the multipart field.
I've read the help, and I understand the concept.... just not how those bits fit into the equation.
Any further explanation would be appreciated.
Cheers,
Bruce.
Back to top
Magnus Brading
Almighty Author



Group: Super Administrators
Posts: 2751
Joined: Aug. 2002
Posted: Feb. 17 2004,22:22

Can't you try to be just a little more specific about exactly which part you don't understand? :) It would be a bit of a drag if I wrote an explanation equal to the one in the help file here, and you still didn't get it because your concern was about some certain specific detail. :)

--------------
Software author and website owner
Back to top
Profile PM WEB 
noddy
Unregistered





Posted: Feb. 18 2004,00:10

Quote (Magnus Brading @ Feb. 17 2004,22:22)
Can't you try to be just a little more specific about exactly which part you don't understand? :) It would be a bit of a drag if I wrote an explanation equal to the one in the help file here, and you still didn't get it because your concern was about some certain specific detail. :)

Sorry Magnus!
I thought I had, but obviously not enough. :)
In the help file, it explains the syntax thus:

Quote
The general format is <fieldname-#[prefix|suffix]>, where the different parts have the following meanings:

· fieldname is any valid field (e.g. Artist).

· # is a number representing which part of a multi part sequence that the field represents.

· prefix is a string that will be inserted before the parsed-out string of this field when the final sequence is assembled.

· suffix is a string that will be inserted after the parsed-out string of this field when the final sequence is assembled.

Some examples of such fields could be:

<Artist-1[|]>, <Artist-2[|]> and <Title-1[| - ]>


The bits I'm having trouble understanding are the prefix and suffix.
While I understand what a prefix or suffix is (something which, respectively, preceeds, or follows, some other object), I don't understand the use of the [|] sequence between <artist-1 and the > (final bracket).
In the help file example, the artist string had brackets around the part of the artist name that was to be trashed.
As an example, how would you create a template to achieve the following?

Original tag (and filename)
Bruce Springsteen and the E Street Band - blah - blah - blah.

Parsed out tag (and filename)
Bruce Springsteen - blah - blah - blah.

I know you could achieve this one with the Mass set tags tool, but I'm trying to get my head around the multipart tool. This was just an 'off-the-top-of-my-head' suggestion. :)
Maybe I just don't fully understand the point of the multipart tool.
Typing this, I feel like I'm getting more confused! :)

-------------

Ahhh, just been looking on my hard drive at some of my MP3 files.
Here's an example. I have some spoken word stuff.
I have a series of files called....

Robert Kiyosaki - 3 building blocks to wealth 01.mp3
Robert Kiyosaki - 3 building blocks to wealth 02.mp3
etc..

Let's say I want to tag these so that the number at the end of the filename becomes the track number, and the title of all tracks is "3 building block to wealth'.
How would I perform that function, please?
Sorry if all this seems really basic to you... once I understand the syntax, I'll be fine.... honest. :)
Thanks for your help guys.
Cheers,
Bruce.
Back to top
Magnus Brading
Almighty Author



Group: Super Administrators
Posts: 2751
Joined: Aug. 2002
Posted: Feb. 18 2004,14:16

Quote
Robert Kiyosaki - 3 building blocks to wealth 01.mp3
Robert Kiyosaki - 3 building blocks to wealth 02.mp3
etc..

Let's say I want to tag these so that the number at the end of the filename becomes the track number, and the title of all tracks is "3 building block to wealth'.
How would I perform that function, please?

This does not require any multi-part fields at all, simply use the following template:

Code Sample
<Artist> - <Title><TRASH:1><TrackNr:2>.mp3


As you see, these are not multi-part fields, they are only fixed-length fields.

If there would have been a unique separator before the track number, you wouldn't even have needed to use fixed-length fields. For example, if the filename was "Robert Kiyosaki - 3 building blocks to wealth - 01.mp3", you could have used the template "<Artist> - <Title> - <TrackNr>.mp3".

Multi-part fields are only used when several parts of one certain target field is scattered over more than one place in the filename, for example like this (for the artist field):

"Robert (some crap here) Kiyosaki - 3 building blocks to wealth - 01.mp3"

Then you could parse it with the following template, using a multi-part field for the artist:

Code Sample
<Artist-1[|]> (<TRASH>) <Artist-2[|]> - <Title> - <TrackNr>.mp3


Your problem would now be that the parsed out artist field would be become "RobertKiyosaki". So, you want a space to be inserted after the parsed out first part of the artist, like this (note the inserted space at the suffix position inside the brackets of the first artist field):

Code Sample
<Artist-1[| ]> (<TRASH>) <Artist-2[|]> - <Title> - <TrackNr>.mp3


or equally, a space inserted before the parsed out second part of the artist field (note the inserted space at the prefix position inside the brackets of the second artist field):

Code Sample
<Artist-1[|]> (<TRASH>) <Artist-2[ |]> - <Title> - <TrackNr>.mp3


Both these would result in the correct artist name "Robert Kiyosaki". In this elementary case it could of course instead have been solved by using one of the existing spaces in the filename, like this (note the removed space before the "crap parenthesis"):

Code Sample
<Artist-1[|]>(<TRASH>) <Artist-2[|]> - <Title> - <TrackNr>.mp3


or like this (note the removed space after the "crap parenthesis"):

Code Sample
<Artist-1[|]> (<TRASH>)<Artist-2[|]> - <Title> - <TrackNr>.mp3


But since the point was to show you the meaning of the multi-part field prefix and suffix functionality, I did it the unnecessary complex way. :)

So, do you understand it better now? :)

--------------
Software author and website owner
Back to top
Profile PM WEB 
3 replies since Feb. 17 2004,04:23 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]