here's what I need to happen:
from A_01 to 10_01_A
from A_02 to 11_01_A
from A_03 to 12_01_A
from A_04 to 01_02_A
from A_05 to 02_02_A
from A_06 to 03_02_A
from A_07 to 04_02_A
from A_08 to 05_02_A
from A_09 to 06_02_A
from A_10 to 07_02_A
from A_11 to 08_02_A
from A_12 to 09_02_A
from A_13 to 10_02_A
from A_14 to 11_02_A
from A_15 to 12_02_A
There's actually 104 of these... yes I need 104 rules in one RegEx. Is this possible? I mean, I bet there's probably a way to write some logic so that the RegEx can handle the numbering system I created, so then there'd only be 4 rules needed. But I bet that is a lot more complex. To keep it simple I could just write the same code 104 times in slightly different ways to accommodate my numbering system. If it is way to encumbering to write 104 rules in one RegEx, I don't mind writing in one RegEx rule at a time 104 times.
Just in case I'll tell you what the numbering system is if you want to take a stab at writing the logic, and I don't even know if it's possible, can RegEx even incorporate math?:
-example file name: D_01_loud_rele_01
-every file begins with a capital letter, an underscore, and then two numbers. example: D_01. Ignore everything after that in the file name.
-There are 4 possible letters that the file name begins with. A, D, E, G. The _01 goes up to _25 in the case of filenames beginning with D. E goes up to _29.
A_01 to A_25
D_01 to D_25
E_01 to E_29
G_01 to G_25
In the example of D_01, it needs to be replaced by 03_02
03 = octave number (goes from 1 to 4)
02 = note number (goes from 1 to 12)
once the note number reaches 12, the octave number gets +1 and note number goes to 1
example:
10_01
11_01
12_01
01_02
02_02
03_02
A starts at 10_01 (note 10, octave 1)
D starts at 03_02 (note 3, octave 2)
E start at 01_01 (note 1, octave 1)
G starts at 08_02 (note 8, octave 2)
example:
A_01 to D_25 would become 10_01_A to 10_03_A
D_01 to D_25 would become 03_02_D to 03_04_D
E_01 to D_25 would become 01_01_E to 05_03_E
G_01 to D_25 would become 08_02_G to 08_04_G