KSP Math Library V702        
    Most of Kontakt’s control functions are non-linear. For example, volume control has a logarithmic relationship. Similarly, time and frequency control is based on log/exp relationships. In addition, equal-power crossfading of two audio signals requires the use of sine/cosine contouring. Therefore, when writing scripts, there is often a need for some of these standard math functions (especially in the area of engine parameter control) but the KSP only provides basic arithmetic functions. The KSP Math Library was first written (more than 9 years ago) to bridge this gap by providing a large collection of the most needed math functions required by Kontakt scripters. After six major revisions, the library has indeed matured in both content and in ease of use.
    In addition to the standard functions such as log, exponential, trigonometric, powers, and roots, the library also contains an ever-expanding collection of Engine Parameter Converters using basic functions and other sophisticated techniques to model the control curves found in Kontakt. Even though most of these converters use functions like logs or exponentials, it is not necessary for you to understand such mathematical details to benefit from these routines. The engine converters are very easy to interface with — even if your math skills are virtually non-existent. You need not trouble yourself with how these routines work. You only need to know what kind of values to give them and what kind of values you can expect them to return. In fact, many scripters use the math library just for the engine converters. However, all the standard functions are also available for those that have sufficient math skills to benefit from them. 

View User's Guide                              Download Math Library