As far as I remember you can do the following:can i then change via script only the midi cc number?
thanks for the hint. I resolved therefore doing the following:As far as I remember you can do the following:
1. Keep the CC assignment or reassign the volume curve CC to some rear used CC# such as CC105 for example.
2. In the Instrument UI you can create a knob or slider for X-fade and you can learn it to say CC1 (Modwheel).
3. You can generate CC105 in the script when you tweak the UI Knob/Slider via mouse or via the learned CC1.
BTW: Some Kontakt Instrument developers add messages such as: "Do not use CC# 103 -110, cause they are used for internal communication". In the example above CC#105 is your internal CC#.
All is fine. In your example you use a value_edit UI which is not CC learnable. Hope you will replace it with another UI wich is CC learnable in your real project .I resolved therefore doing the following:
and the whole volume curve under the hood responds to cc105 as you suggested