Hi!
I am fascinated that you still digging throw it
Detecting which PC/FX is on each position is not possible. Well... we are in AZController world. It was not possible, till now
Please download b383, its "Set state" action has "By text" option. !!! Do not forget save your current preset, better with export. b383 updated version of preset format, so older versions will
not work with what it saves. !!!
I attach an example how to use this new feature. It tries to monitor current track SECOND PC module name and change the state of corresponding set. Notes:
* example put the name in question into Text and then monitor this text (static monitor). In the feedback, it tries to match some state name by current text, setting some
"fall back" when not found.
* the monitor should have priority LOWER (in number) than monitors for PC parameters. So when the change happens, it change the state before you use it to select parameters.
But in case you make it "Strip" state dependent, it should work after strip type detection. Priorities fix the sequence in which monitoring happens.
* special name "<other>" is used for unknown modules. For not default modules, you can define them. Then add to the set it question. Then define corresponding processing. Tricky, I know.
PS. everything related to ProChannel in Sonar is extremely buggy. I mean the way CW has implemented it. Also PC is Sonar exclusive, you will be unable to move PC settings to other DAW.
Two bugs related to what you do now:
1) Sonar fail to return the name of PC modules. It returns it for FXes, Synth and even for "ACT mapping" module, but not for Filters. So names are "guessed" in AZ Controller (some are hardcoded, the rest can be user defined).
2) Sonar 8- filters had fixed positions, initial X1 PC also (0 - EQ, 1 - Comp, 2+ not used). CW attempted "backward compatibility" in API, but completely failed with that. As the result, not only old plug-ins are unable to work with EQ/Comp, AZ Controller has hard time to provide related functionality. Short description of the mess: "EQ" and "Comp" for NOT focused strips are ordered according to the focused strip, other modules are not accessible at all for not focused strips. So, what is PC Module number X for strip Y in API depends from which strip is in focus and only EQ/Comp can always be somehow found.
There are other, f.e. accessing Compressor type parameter name (so, which should always just return "Type") after several calls CRASH Sonar. The reason why Mackie (MCU/C4) owner should avoid "EQ" and "Dyn" buttons to prevent random crashes (AZ Controller and my Mackie mod have hard-coded workaround).
I am (not yet) discourage you to use ProChannel (and Sonar). I just want to inform you which "quality" that staff has, especially since we know that will never improve...