#1 2025-11-14 21:48

adriaanabendanon
Member
Registered: 2025-11-14
Posts: 2

Renumbering Audio Files in Order of Filetype, first DSF DFF,- Wav - Ai

Hi , I’m using Renamer Pro and MP3 Tag to streamline my audio Collection, and i have many different versions of songs in my collection, I want to number them in a certain order : First DSF & DFF, then Wav, Aif, MP3, M4a etc, but when i use the serialize function in Renamer Pro It gives the same number to different file types, like 1.wav, 1.mp3 etc, and I would like to rename all the DFF’s first batch, then the Wav’s etc in order. Now I have to do this manually in MP3 Tag, is there a solution to do this automatically in Renamer Pro or MP3 Tag ? Thanks for your help

Offline

#2 2025-11-15 13:01

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,507

Re: Renumbering Audio Files in Order of Filetype, first DSF DFF,- Wav - Ai

Can you provide a complete example of input paths and desired output file names?

They don't have to be real file paths, but they have to capture all relevant aspects, e.g. different folders, different names, different extensions, etc.

We'll see what can be done once you provide a complete example.

Offline

#3 Yesterday 21:13

adriaanabendanon
Member
Registered: 2025-11-14
Posts: 2

Re: Renumbering Audio Files in Order of Filetype, first DSF DFF,- Wav - Ai

Hi Thanks for your quick response administrator, In this case it's quite simple i have for example 50 versions of 1 particular song in the same folder and i want to number them in order 1 to 50, now here's the interesting part, I want to group them accordingly by extension, so first all the DFF files, followed by Wav, Aif, Mp3, Ogg, M4a for example song 1.DFF Song 2.DFF  Song 3.DSF, , Song 4.Wav  Song 5.wav  Song 6.Aiff  Song 7.mp3 Song 8.mp3 Song 9.m4a  etcetera, so High quality files first followed by less quality, maybe in order of Bitrate also possible...

Thanks for your thoughts on this, Adriaan

Offline

#4 Yesterday 22:52

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,507

Re: Renumbering Audio Files in Order of Filetype, first DSF DFF,- Wav - Ai

This custom ordering by extension can be achieved by inserting an appropriate number in front of the filename, according to its extension.

This can be applied with a Pascal Script rule:

var
  Order: Integer;
  Extension: WideString;

begin
  Extension := WideUpperCase(WideExtractFileExt(FileName));

  if Extension = '.DFF'       then Order := 1
  else if Extension = '.DSF'  then Order := 2
  else if Extension = '.WAV'  then Order := 3
  else if Extension = '.AIFF' then Order := 4
  else if Extension = '.MP3'  then Order := 5
  else if Extension = '.M4A'  then Order := 6
  else                             Order := 7;

  FileName := IntToStr(Order) + '_' + FileName;
end.

So your example list will look like this:

1_Song 1.DFF
1_Song 2.DFF
2_Song 3.DSF
3_Song 4.wav
3_Song 5.wav
4_Song 6.Aiff
5_Song 7.mp3
5_Song 8.mp3
6_Song 9.m4a

You can now sort this list of files by the Name column, then remove the order prefix, and then apply a Serialize rule.

Offline

Board footer

Powered by FluxBB