Two questions while wanting to do something that seems as though it should be simple in Kontakt:
1. Is it possible to either have a Kontakt script call an already existing standard modulation, such as "velocity to filter" so it can be displayed in the Performance View? In other words, if in the basic Kontakt instrument editing interface I set up a filter to velocity mod, can I then in some way make that control visible in Performance View, or do I have to create a script from scratch that does the same thing?
2. If I do have to create a script from scratch and I then load it into Performance View, does the script override the same mod I already created in the basic instrument editing area, or does it use the settings there as a point of departure (is it chained) or would there just be a conflict between the two mods that would cause strangeness\additional cpu use, etc?
And come to think of it, if one does have to create the scripts from scratch, so any controls, mods, effects, one wants are shown in the Performance View, has anyone already created these scripts?
Kontakt scripts: Must I script everything from scratch?
-
- KVRian
- 859 posts since 14 Sep, 2004
-
- KVRian
- 650 posts since 7 Oct, 2006
hello,
1: no.Principally a script does take MIDI before it enters the Kontakt instrument instance and does what is in the script. As the script does not have function calls like modern programming languages such 'higher level' function like 'velocity to fiter' are not of the standard routines. But it would not take long to program that - you can directly access the slot of the filter (like group insert x) and address the param you want (freq or reso).
You could - as KSP programmer - make your own function call library. This might be even easier with Nils tool (which is pretty much PC) With the standard scripting language and without real function calls I do not think that makes too much sense doing so.
Missing function calls and the fact that KSP works with integer are too heavy inconveniences of KSP.
2: not sure what you exactly mean - you can read out the settings of the knob, but the script is before the instrument (at the entrance) and no, you cannot use the K2interface to visually build a script by drag and drop (like with Apple Automator or as you can do in Maya). the traditional modulation setting and the script will act at the same time (if you do not filter that CC) and therefore the results might not what you want to achieve. Use the script for that specific task or use the modulation interface of Kontakt.
well, some scripts come with Kontakt, some are available online - if they are not protected (most are not) then you can freely copy and paste your script together. for a lot of stuff you will find code in the scripts provided with Kontakt that you can easily adapt.
hope that helps
best
1: no.Principally a script does take MIDI before it enters the Kontakt instrument instance and does what is in the script. As the script does not have function calls like modern programming languages such 'higher level' function like 'velocity to fiter' are not of the standard routines. But it would not take long to program that - you can directly access the slot of the filter (like group insert x) and address the param you want (freq or reso).
You could - as KSP programmer - make your own function call library. This might be even easier with Nils tool (which is pretty much PC) With the standard scripting language and without real function calls I do not think that makes too much sense doing so.
Missing function calls and the fact that KSP works with integer are too heavy inconveniences of KSP.
2: not sure what you exactly mean - you can read out the settings of the knob, but the script is before the instrument (at the entrance) and no, you cannot use the K2interface to visually build a script by drag and drop (like with Apple Automator or as you can do in Maya). the traditional modulation setting and the script will act at the same time (if you do not filter that CC) and therefore the results might not what you want to achieve. Use the script for that specific task or use the modulation interface of Kontakt.
well, some scripts come with Kontakt, some are available online - if they are not protected (most are not) then you can freely copy and paste your script together. for a lot of stuff you will find code in the scripts provided with Kontakt that you can easily adapt.
hope that helps
best
