micv
Ground control to Major azslow3, we have lift off
Sonar re-generated the file and all parameters are in lower case.
That is ok, upper case means "ACT Learned" and it takes preference over lower case, if there are several configuration files. Since we have removed other files, there should be no difference. Lets keep it lower, that way you will see if you (by mistake) ACT learned something.
In my limited testing, I found that the order which you open/close ACT Editor and Sonar doesn't seems to matter.
Normally it does not. But they independently work with the same file, so in case of troubles (and you had some) it is better to be consequent.
I didn't not configure AZCtrl in/out to none as I missed that in your post until now, so I had it at the same port as the A-PRO -1.
If you plan to record/play MIDI with APro, I recommend to either reinsert it with "None" or check that A-Pro plug-in is listed AFTER AZCtrl in Sonar preferences. Otherwise controls will "leak" to the track/VSTi, producing really hard to understand results (like your VSTi is instantly silent, with everything looks normal... that is how I have spotted the bug for the first time).
I believe that the issues I had were likely due to:
1) A 'corrupted' genericpluginparams.xml or more likely that Sonar has inherent issue of processing 'ACT Learned' parameters.
+
2) Bugs/crappy A-PRO plug-in. After I got things to work, I select the A-PRO-1 interface and although the mapping is correct, the pads still not working consistently as it still displaying/sending on/off/0%/100% as you click the virtual pads, and then stuck/frozen. The hardware behaves exactly as the virtual plug-ins. This got me confused before as I though it might be the mapping. With the AZCtrl as interface everything works fine.
In short test I was able to reproduce that.
It looks like A-Pro plug-in does not like when the same parameter is assigned to several controls, especially pads. Note that not only duplicated control stop working (or showing 100%), other do that as well. You just have to
remove duplicated assignments (duplicated "paramindex") from XML. The simplest way is to do this manually,
"beautify" the XML with AZCtrl ("Options" tab, "Tweak current configuration...", "*Format genericpluginparams.xml")
and then edit it with Notepad.
I noticed that the rotaries goes from R1 to R20 when I switch from Bank3 to Bank4, expecting R10. In ACT Editor I think that rotaries are sequential R1-32 so I still need to work on the second set of controller.
Knobs are mapped to ACT controls in banks order. So in your example Bank3 Knobs are ACT Knobs 1-9, in Bank3 Knobs are ACT Knobs 10-19 (if you have ACT enabled all 9 knobs).
But Sonar has "intelligent" mapping strategy. To keep it short: from XML remove all parameters for which you do not have controls (or at least move them to the end of the list). I mean if you have only 16 ACT buttons (Bank3/Bank4 with 8 buttons each) but in XML there are 24 buttons mentioned before knobs, first 8 ACT Knobs will control what is listed for the last 8 buttons in XML. While I could understand the logic behind and how that was thought to be helpful, it works the same way as Communism: theory is good, but no one has managed to make it good in practice