bin 8

binary decoder
Author: Johannes Taelman
License: BSD
Github: logic/decode/bin 8.axo

Inlets

int32 input 1

Outlets

int32 chain output

bool32 output 0

bool32 output 1

bool32 output 2

bool32 output 3

bool32 output 4

bool32 output 5

bool32 output 6

bool32 output 7

Control Rate
outlet_o0 = (inlet_i1 & 0x01) ? 1 : 0;
outlet_o1 = (inlet_i1 & 0x02) ? 1 : 0;
outlet_o2 = (inlet_i1 & 0x04) ? 1 : 0;
outlet_o3 = (inlet_i1 & 0x08) ? 1 : 0;
outlet_o4 = (inlet_i1 & 0x10) ? 1 : 0;
outlet_o5 = (inlet_i1 & 0x20) ? 1 : 0;
outlet_o6 = (inlet_i1 & 0x40) ? 1 : 0;
outlet_o7 = (inlet_i1 & 0x80) ? 1 : 0;
outlet_chain = (inlet_i1 >> 8);

Privacy

© 2024 Zrna Research