Bitwise Set Bit

Sets or clears a single bit of the input value, leaving all other bits untouched. The bit at position index is forced to 1 when state is on, or to 0 when state is off. Bit 0 is the least-significant (rightmost) bit. This is the write counterpart of Bitwise Get and is ideal for building up a flags word one bit at a time. An index outside the 0–31 range leaves the value unchanged.

Bitwise flows are not directly compatible with data flows. You must use integer-to-bitwise to set bitwise inlets and bitwise-to-integer to retrieve outlet values. Bitwise inputs are in hexadecimal format (0123456789ABCDEF). ie. $FA234B, $FFFF, etc. Bitwise flows are compatible with Color flows.

Settings

in

Value to modify (bitwise / hexadecimal).

index

Position of the bit to change (integer, 0–31; 0 = least-significant bit).

state

Target value for that bit: on = 1, off = 0.

out

The input with the selected bit updated.

Example

Setting bit 3 on, then clearing bit 0 off (only the targeted bit changes):

in index state out
$00000000 3 on $00000008
$0000000F 0 off $0000000E
Common Settings

info

show manual

Opens the web browser to display information or help about the selected object, if it exists.

For more details about information/help creation, see create-help-file.

description

Description of the module for internal help purposes only. The description is not displayed in the interface.

ID's

visible only in god mode, see setup-panel-tab-expert.

unique ID

Current private ID for this control used to identify the object.

preset ID

Current private preset ID for this control used for presets.

recreate ID

If you experience difficulties in Polyphonic mode, try to recreate new id(s) with this button.

repair ID s

Each Patch shared on the local network uses its own ID (identification number). If you experience issues of Patches that don't send information to the good target, this button will rebuild all these id's.

Object Remote Address

absolute

Absolute remote address. see objects-address.

local

Local to the current patch remote address. see objects-address.

user addr

User defined remote address. see objects-address.

See also

version 7.0.250121

Edit All Pages