Hello,
This is my first post. I am trying to update my music files with two types of Key Information. I am a DJ and want to show both Camelot and Major/Minor Keys in my Tags. To do that I am using a Tag field that I do not use and re-purposing it. The unused field is ORIGARTIST. Which will hold my Camelot Key, the %initialkey% tag will hold my Major/Minor. My problem is that I had to create 25 different actions to allow me to do all of the conversions.
Assume that I initially have the Camelot Key in the %initialkey% tag. I created my first action to copy %initialkey% to ORIGARTIST. That code is:
[#0] T=5 F=ORIGARTIST 1=%initialkey%
Next I have 24 Conversion Actions depending on the Camelot Key (1A,1B to 12A, 12B) I look to see if the ORIGARTIST matches the Camelot Key I am looking for and if so I replace the %initialkey% with the corresponding Major/Minor Key. That code is (for Camelot Key 1B):
[#0] T=5 F=INITIALKEY 1=$if($eql(%origartist%,'1B'),'B',%origartist%)
So in order for me to tag a number of files I have to do the Copy Action, then sort all of the files by Camelot Key, then select the files with the same key, and run that Key's action.
Is there a way to combine all of my conversion Actions into one like a Switch Case (in the C programming language)?
For instance
Switch (CAMELOTKEY) { case 1A: initialkey=Abm; break; case 1B: initialkey=B; break; etc. etc. }
Sorry for the long winded explanation, but I wanted to be clear. Any thoughts on how I could do this with the current Action interface?
Thanks In Advance!
Carlton