KSP Scripting (Kontakt) :: Custom UI: Switchable, Dynamic Background Image / Wallpaper (via label element)

Posted by & filed under Kontakt Scripting (KSP) - Basics, UIs, Tutorials, Scripts and Tools, Kontakt Scripting (KSP) :: UI (Design) & Engine.

ksp

Unfortunately once the initial wallpaper is set, we can’t alter the image file anymore. Even not by setting different initial wallpapers for each script tab. Because the last applied wallpaper will be the one and only initial wallpaper for the whole instrument. But we can either offset the initial wallpaper that means moving it via… Read more »

KSP Scripting (Kontakt) :: Custom UI: Background Image / Wallpaper

Posted by & filed under Kontakt Scripting (KSP) - Basics, UIs, Tutorials, Scripts and Tools, Kontakt Scripting (KSP) :: UI (Design) & Engine.

ksp

The instruments background image is called “wallpaper”. Its’ the basic background texture where all UI elements (knobs, buttons etc) get layered on top. Just to give you an example: we could take our default graphic software and design a realistic synth surface wallpaper (png file) containing “sockets” for some knobs and buttons with detailed shadows,… Read more »

KSP Scripting (NI Kontakt) :: BASICS :: Variables, Arrays, Constants

Posted by & filed under Kontakt Scripting (KSP) - Basics, UIs, Tutorials, Scripts and Tools, Kontakt Scripting (KSP) :: Basics.

ksp

Like with any other programming languages in KSP there are also variables, arrays and constants. They can only be declared inside the on init callback and can then be used throughout the whole script. So they are all on global scope by default and can even be used inside custom functions.

KSP Scripting (NI Kontakt) :: BASICS :: Callbacks & Basic Structure

Posted by & filed under Kontakt Scripting (KSP) - Basics, UIs, Tutorials, Scripts and Tools, Kontakt Scripting (KSP) :: Basics.

ksp

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… Read more »