HI,
Thanks for your fast reply. At the moment I have things working now, There are some issues left if I may say so.
1. The original dspreset consists of many groups (as stated before), All coherent samples were written in many many separate groups; this was related to velocity ans sequenceposition as well.
In this keyswitching 'conversion' I'll have to rewrite the patches as in 1 group now, with all samples related to their sequencepos. That takes some time with about 14000 lines of code. Even with Sublime Text!
2. In the midi section of the script, I have been working now with only three (test) groups, Point is that I need to define for each note each time which groupos are false and true.
Example:
<note note="85">
<binding type="general" level="group" position="0" parameter="ENABLED" translation="fixed_value" translationValue="true" />
<binding type="general" level="group" position="1" parameter="ENABLED" translation="fixed_value" translationValue="false" />
<binding type="general" level="group" position="2" parameter="ENABLED" translation="fixed_value" translationValue="false" />
</note>
If I need to do this for 40 groups I'll need another 40x40 lines of code this way (with many possible mistakes/human errors. Oh no!
I am afraid I don't fully understand your reply ; (in computer science terms this is referred to as AND logic).. Sorry, what exactly does this mean?
If your answer means a solution for my problem, yes it would be very helpful.
I had a hope, that the keyswitching implementation woudl have been a bit simpler, like e.g. just one line with only a sort of true definition that automatically excludes other groups.Maybe with the tags parameter included and leaving out the position one.?
<note note="85">
<binding type="general" level="group" tags="staccato" parameter="ENABLED" translation="fixed_value" translationValue="true" />
</note>
I am not a code writer, so this may seem silly. Anyway, hope to hear from you soon again!
Best
Erik
BTW: as soon as I add this in a group line: loCC1="42" hiCC1="49" loCC2="0" hiCC2="40", the keyswitching doesn't work for that patch/group.