Help - Search - Members - Calendar
Full Version: Repeating track numbers
Mp3tag Forums > Mp3tag - International > Support
JCSullivan
First of all, THANKS for a nice piece of software which I've just this week discovered.

I've gone over a few pages of the previous threads but cannot find an answer specific to my situation so, if you don't mind I'll post a new one here.

I have a directory which contains several mp3 files from several CDs. The file name consists of CD##-xx.mp3 Where a CD01 will include Track 1 to x the next CD, CD02 will include the same track numbers. See image.



I would like to remove "CD##" and renumber all tracks sequentially - can somebody please help with this. Please keep it simple as I am just starting out.

Thanks

Start edit
I found a solution which is further down. The key here was to renumber ALL the tracks sequentially. Then deal with the title tag. My Nomad Jukebox wouldn't accept the files in one directory.
DetlevD
QUOTE (JCSullivan @ Jun 7 2012, 17:33) *
... I would like to remove "CD##" and renumber all tracks sequentially ...

If you really want to do it, then do it ...
... hm ...
what do you want to do with the remaining part of the filename e. g. "-16"?

A rather simple method would be ... to trim specific characters at the left side of the filename string.
$trimLeft(%_filename%,'CD0123456789')

This would left over the filename remainders "-16", "-17" and so forth.
This will immediately lead into bad circumstances, because of creating duplicate filenames.
And obviously you will do not know how to help yourself out of the plethora of error messages you will get.

What is the purpose of your plan?
Why do you want to destruct an already good looking sorting criterion?
All tracks seem to be organized very well, according to their base media.
Please explain.

Don't you know, filenames are "smoke and mirrors"?
Better you concentrate your work on the tag-fields meta data.
And at the very end of all work, you can rename the filenames.

DD.20120607.1834.CEST
stevehero
QUOTE (JCSullivan @ Jun 7 2012, 16:33) *
I would like to remove "CD##" and renumber all tracks sequentially - can somebody please help with this. Please keep it simple as I am just starting out....

Press Alt+6 then use the following.

Action type: Format value
Field: _FILENAME
Formatstring: $regexp(%_filename%,'^[^-]+-',)

You will end up with the _FILENAME going from 'CD01-16' to '16' Is this the result you want?
JCSullivan
Did a little more searching and found the answer

CODE
$num(%_counter%,$len(%_total_files%))/$num(%_total_files%,$len(%_total_files%))


In this thread

here
JCSullivan
QUOTE (stevehero @ Jun 7 2012, 17:40) *
Press Alt+6 then use the following.

Action type: Format value
Field: _FILENAME
Formatstring: $regexp(%_filename%,'^[^-]+-',)

You will end up with the _FILENAME going from 'CD01-16' to '16' Is this the result you want?


Thanks, I'll be checking that one out as well.
JCSullivan
QUOTE (DetlevD @ Jun 7 2012, 17:36) *
If you really want to do it, then do it ...
... hm ...
what do you want to do with the remaining part of the filename e. g. "-16"?

A rather simple method would be ... to trim specific characters at the left side of the filename string.
$trimLeft(%_filename%,'CD0123456789')

This would left over the filename remainders "-16", "-17" and so forth.
This will immediately lead into bad circumstances, because of creating duplicate filenames.
And obviously you will do not know how to help yourself out of the plethora of error messages you will get.

What is the purpose of your plan?
Why do you want to destruct an already good looking sorting criterion?
All tracks seem to be organized very well, according to their base media.
Please explain.

Don't you know, filenames are "smoke and mirrors"?
Better you concentrate your work on the tag-fields meta data.
And at the very end of all work, you can rename the filenames.

DD.20120607.1834.CEST


I needed to make the tracks sequential - I found a solution elsewhere but, this will ALL help when I need to rename the titles.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.