Convert Midi Control Change To Note Numbers
Kontakt Factory Scripts includes a transform script Note Numbers to CC that allows you to transforms MIDI note numbers directly into CC controller numbers. But what about converting CC controller numbers into note numbers? There isn’t a factory script to do that but today is your lucky day. In today’s advanced video tutorial, we will create a Kontakt Script that allows you to Convert Midi Control Change To Note Numbers.
Kontakt includes a powerful and flexible scripting language processor, which is designed to let third-party developers come up with custom and complex ways in which users can interact with their Instruments and Multis. Kontakt’s scripting language is easy enough to learn for anyone who has used a programming language before, but you’ll still need a thorough reference, which is available in the Kontakt Documentation folder.
This processor, the Kontakt Script Processor or KSP allows you to extend your instrument by performing operations such as transform on Midi Control Change or Midi Notes. Let’s take a look at how we can use KSP to convert CC to Note Numbers.
Whenever a CC, pitch bend or channel pressure message is received by your Instrument, a MIDI controller callback, on_controller, is executed. In the context of this callback is the specific information about the messages such as controller number and value. In order to convert this message into a Midi Note, we will have to check what the controller number is and possibly its value.
Remember to leave a comment to let us know what you think about the video, how you plan on using the techniques you have learned or if want to give us some feedback!