Writing Docs Gigedit SFZ Instrument Scripts NKSP Language NKSP Reference


Calculates right bit shifted values. The original value of the 1st argument is bit shifted to the right as many times as requested by the 2nd argument and the result of this bit shift operation is returned by this function.

Function Prototype

sh_right(number, shifts)


Argument Name Data Type Description
number Integer Number Original input value to be shifted.
shifts Integer Number Amount of times the original value should be shifted to the right.

Return Value

Data Type Description
Integer Number Bit shifted result.


This functions accepts finalness for its argument number. The return value's finalness will be identical to number's one.


See also

sh_left(), msb(), lsb()


Since LinuxSampler 2.0.0.svn22.

Document Updated:  2019-12-28  |  Author:  Christian Schoenebeck