I have a loop that makes a recording during each pass.
At the moment the files are named sound%d.wav, where %d is the counter value.
Now, I want to get more logical filenames based on two parameters. One to dermine a preset and the second, based on the counter value ,to determine the second part of the filename. The problem is the second part not having an equal length for each preset.
For Example:
when preset/first part is set to:
* A1 the second part will be: X1, X3, X4 (counter 1->3)
* B1 the second part will be: Y6, Y-4, Y-1, Y3 (couter 1->4)
* C1 the second part will be: Z4, Z-3 (counter 1->2)
In other words (as I think I the above is not really clear):
I want to do some conditional (?) selection
when preset is A1 and counter 1 -> A1X3.wav
A1 and counter 2 -> A1X3.wav
etc
C1 and counter 1 -> C1Z4.wav
C1 and conter 2 -> C1Z-3.wav
.. but how?
edit: Only need to run the loop for one (a priori chosen) preset !