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.
sh_right(??number??, ??shifts??)
Argument Name | Data Type | Description |
---|---|---|
??number?? |
Integer Number | Original input value to be shifted. [required] |
??shifts?? |
Integer Number | Amount of times the original value should be shifted to the right. [required] |
Description | Data Type |
---|---|
Bit shifted result. | Integer Number |
on init
message("sh_right(128,0) = " & sh_right(128,0))
message("sh_right(128,1) = " & sh_right(128,1))
message("sh_right(128,2) = " & sh_right(128,2))
message("sh_right(128,3) = " & sh_right(128,3))
end on
Since LinuxSampler 2.0.0.svn22.