<<
Description
Shifts all bit values to the left. This has the effect of multiplying a number by a power of two, but is less expensive in computer time.
Examples

Same effect as multiplying by a power of 2
Arguments
initial-value [int]
Optional
Sets an initial value for the number of bits by which to shift leftward.
Attributes
Common Box Attributes
Messages
bang
In left inlet: Performs the bit-shift with the numbers currently stored. If there is no argument, << initially holds as the number of bits by which to shift.
int
Arguments
input
[int]
In left inlet: All bits of the number, in binary form, are shifted to the left by a certain number of bits. The resulting number is sent out the outlet.
(inlet1)
Arguments
amount-of-bitshift
[int]
In right inlet: The number is stored as the number of bits to left-shift the number in the left inlet.
float
Arguments
input
[float]
See the
listing. set
Arguments
set-input
[int]
Sets input to the object without causing output (
will output it). list
Arguments
input
[int]
shift-amount [int]
shift-amount [int]
In left inlet: The first number is bit-shifted to the left by the number of bits specified by the second number.
Output
int
The number in the left inlet is bit-shifted to the left by a certain number of bits. The number of bits by which to shift is specified by the number in the right inlet. The output is the resulting bit-shifted number.
See Also
Name | Description |
---|---|
* | |
>> |