The Basic code structure is very simple. We basicaly put most of our code into  callbacks

All callbacks look like this on <callback> ... end on

In general the code inside callbacks gets executed when specific events happen. For example playing a note on our keyboard always executes the “on note” callback.

So callbacks build a framework for our instrument and are mostly needed to communicate with different parts of the Kontakt engine.

Read more »

The set_engine_par() command is used to control or set almost any engine parameters like volume, pan, tune, fx, lfo’s, envelopes and more. So wiht this command we actually control Kontakt via our custom UI. So set_engine_par() is mostly used in combination with the on ui_control callback whenever we use custom knobs or buttons to control Kontakt’s FX, Modulators or any other engine parameter. Read more »