#1 2021-04-10 16:50

D3Mens
Member
Registered: 2021-04-10
Posts: 3

Serialize rule suggestion (music notes C D E F G A B)

Hello!
First of all thank you so much for this amazing tool. I can't live without it.

I'm a musician and sound designer and often when creating sample pack it is really common to serialize them with musical notes:
C0 , C#0 , D0 , D#0 , E0 , F0 , F#0 , G0 , G#0 , A0 , A#0 , B0,
C1 , C#1 , D1 , D#1 , E1 , F1 , F#1 , G1 , G#1 , A1 , A#1 , B1,
C2 , C#2 , D2 , D#2 , E2 , F2 , F#2 , G2 , G#2 , A2 , A#2 , B2, etc   (where numbers indicate the octave)

I tried adding them through the custom alphabetic/numeric but they don't work as expected.

Is there any chance you could add such rule for music notes too?


Thank's a lot for your hard work.


Greetings

Last edited by D3Mens (2021-04-10 17:05)

Offline

#2 2021-04-12 22:37

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

Re: Serialize rule suggestion (music notes C D E F G A B)

D3Mens wrote:

Is there any chance you could add such rule for music notes too?

Yes, it can be done, it shouldn't be too difficult to implement.

Having spent 5 or so years playing piano in childhood, I still could not have imagined that musical notes could be used for serializing filenames! smile

Few questions regarding the implementation:

1. Are there any common variations in the formatting that should be considered?
2. I presume that the numerical index (the octave) can keep increasing indefinitely, is that correct?
3. How would you handle a negative "step" parameter, i.e. what comes before "C0"?
4. "C0" is always 1st?

Offline

#3 2021-04-13 10:10

D3Mens
Member
Registered: 2021-04-10
Posts: 3

Re: Serialize rule suggestion (music notes C D E F G A B)

Thanks a lot for that!!
Usually the formatting is the same as I showed in the example, and usually octaves go from C0 to C10...
some music softwares go to -2 but that wouldn't make much sense. C5 is the central octave, so C0 to C10. I'm not sure if one day we'll need more than 10 octaves but if you could make it increase indefinitely that would be cool too. Dunno, maybe some sound designers can find some use to that.

Anyway, thanks a lot for this. It would save me so much time!

Best regards

Offline

#4 2021-04-14 21:10

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

Re: Serialize rule suggestion (music notes C D E F G A B)

Another question...

This kind of serialization method does not seem to play well with standard sorting algorithms. So how do you actually use it in practice?

For example, I have 26 files (numbered 1..26) and I choose to serialize them using music notes. Below are old and new filenames:

1	C0
2	C#0
3	D0
4	D#0
5	E0
6	F0
7	F#0
8	G0
9	G#0
10	A0
11	A#0
12	B0
13	C1
14	C#1
15	D1
16	D#1
17	E1
18	F1
19	F#1
20	G1
21	G#1
22	A1
23	A#1
24	B1
25	C2
26	C#2

Then, if I sort them by their new name, it will not produce the original sorting order:

11	A#0
23	A#1
10	A0
22	A1
12	B0
24	B1
2	C#0
14	C#1
26	C#2
1	C0
13	C1
25	C2
4	D#0
16	D#1
3	D0
15	D1
5	E0
17	E1
7	F#0
19	F#1
6	F0
18	F1
9	G#0
21	G#1
8	G0
20	G1

Offline

#5 2021-07-29 16:52

D3Mens
Member
Registered: 2021-04-10
Posts: 3

Re: Serialize rule suggestion (music notes C D E F G A B)

Thank you for working on this!

So basically once the files are renamed with music notes, the main use is to drop them into specific audio plugins which read the filename and place each sound on its specific key. So there's no need to sort them by name, the software automatically place them on the correct key.
Btw most of the times audio samples that contain music notation in the filename have also a prefix number to keep them sorted in the correct order.


I forgot to say that even if the common piano key ranges from C0 to C10, usually audio samples not necessarily start from C0 ( the starting key can be any key from C0 to C10). So it would be best to be able to choose also the initial key. Hope you can add this too.

Sorry for the delay, I missed the email notification about your answer.

Thanks a lot!

Offline

#6 2021-07-29 17:35

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

Re: Serialize rule suggestion (music notes C D E F G A B)

no need to sort them by name, the software automatically place them on the correct key.

most of the times audio samples that contain music notation in the filename have also a prefix number to keep them sorted in the correct order.

Ok, that makes sense.

it would be best to be able to choose also the initial key.

The initial key can be adjusted via the starting index parameter, e.g. 1 for C0, 13 for C1, 25 for C2, and so on, and anywhere in between as well.

Right, so it looks like this feature is good to go then. It will get merged into the development branch soon.

Offline

#7 2022-04-18 08:23

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

Re: Serialize rule suggestion (music notes C D E F G A B)

This feature is available in ReNamer 7.3.0.2 Beta.

Offline

Board footer

Powered by FluxBB