Calculates left bit shifted values. The original value of the 1st argument is bit shifted to the left as many times as requested by the 2nd argument and the result of this bit shift operation is returned by this function.
sh_left(??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 left. [required] |
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.
on init
message("sh_left(1,0) = " & sh_left(1,0))
message("sh_left(1,1) = " & sh_left(1,1))
message("sh_left(1,2) = " & sh_left(1,2))
message("sh_left(1,3) = " & sh_left(1,3))
message("sh_left(1,4) = " & sh_left(1,4))
end on
sh_right()
Since LinuxSampler 2.0.0.svn22.