![]() I can access these by using the built in variables for them. These are mainly references to the accessible parameters of the Kontakt engine, namely things you can manipulate with the KSP. The Kontakt Scripting Language has many built in variables which are written into the language. Alternatively you can fill it with something dynamic, like the current value of a changing parameter which can then be passed on to something else. You can fill a variable with a static (constant) piece of information like a name, number or an object. At any point you can refer to that piece of information by referencing that variables name. Variables are without doubt the most important thing in any scripting language and it would be quite hard to proceed with the rest of these workshops without explaining them in further detail.Ī variable is a storage device that holds a piece of information. In this part we're going to delve deeper into variables, both built-in and user defined. Part of this was done by targeting the Bypass control of the effects using some built-in variables, namely $ENGINE_PAR_EFFECT_BYPASS which was simply a reference to that parameter. If you remember we built a script that let us trigger (or un-bypass) some internal effects by pressing notes on our MIDI keyboard. These helped us to run a script when something specific happened, like a note being played. It's basically where you set up your ingredients.Last time we looked at some statements using if.else and select(). This is generally where you define variables, arrays and create elements like custom UI controls and give them commands. end on when the instrument is loaded or initalized. It tells Kontakt to run whatever is inside on init. I'm going to show you three useful callbacks to start with. There are ones that deal with note events, program changes or User Interface interaction. You'll find a list of them in the KSP manual in the Callbacks chapter. These are very important as nothing works without them! There are a few different types of callback that address certain tasks. These are like opening and closing tags for your code. So let's start.Įvery script starts with a callback. You can even import scripts from other instruments in the Kontakt library. You can save any script you write as a preset for later use. Each script preset or ones you write can have a specific task, these can be combined using the five script tabs. This allows for a more modular approach with scripting. You'll notice there are five script tabs along the top of the window. Once this is open, click the 'Edit' button to open the text area. You'll find this by clicking the Edit Instrument Icon (the Spanner) and clicking 'Script Editor'. The Script window is where all the magic happens. Hopefully at the end you'll be able to perform some basic jobs that most people will want to use. So this series of tutorials is aimed at Kontakt users that aren't familiar with any scripting language. It can be a bit daunting if you're totally new to this though. This manual is very useful for finding naming conventions and has a load of useful tutorial information. The language features its own set of defined commands and reference names for parameters all of which can be found in the KSP Reference Manual that comes with Kontakt. ![]() If you have any experience in scripting you should find it pretty simple to pick up. and includes familiar traits like variables, arrays, functions, if else and while statements. The language itself is similar to most scripting languages like JavaScript, ActionScript, PHP etc. Whether it's a user interface with custom graphics to advanced Legato functions, scripting is the driving force behind Kontakt's status as the world's most powerful software sampler. The KSP (Kontakt Script Processor) is a powerful feature in Kontakt that lets developers or users build custom instruments by addressing and manipulating the internal workings of Kontakt using a dedicated scripting language.Įvery instrument that ships with Kontakt and all 3rd party libraries you buy have some sort of scripting going on. ![]() If you've never tried this, don't worry as we're going to start at the top and hopefully show you some simple but cool things you can do with this powerful feature in Kontakt.įor these tutorials I'll be using Kontakt 5 but most, if not all, of the examples will work in Kontakt 4 as well. In this series of tutorials we're going to delve into the world of Kontakt scripting. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |