Writing Docs Gigedit SFZ Instrument Scripts NKSP Language NKSP Reference


This function takes 3 integer values as arguments and checks whether the 1st integer value is in the range between the two integer values provided by the 2nd and 3rd arguments. The valid range includes the values of the 2nd and 3rd arguments.

Function Prototype



Argument Name Data Type Description
needle Integer Number The value that is going to be checked whether it is in range.
low Integer Number The smallest value of the valid range (including this value).
high Integer Number The highest value of the valid range (including this value).

Return Value

Data Type Description
Integer Number Returns true (1) in case the value is in the allowed range, false (0) otherwise.


This functions accepts any standard unit and finalness for its two arguments, however the unit types of the two arguments must be identical. The return value does never contain a unit nor finalness.


The following example prints the result of some example argument values to the terminal as soon as the script is loaded.


Since LinuxSampler 2.0.0.svn36.

Document Updated:  2019-09-16  |  Author:  Christian Schoenebeck