decode AND

integer decoder.only outputs if 'gate' is true.
Author: Robert Schirmer
License: BSD
Github: rbrt/control/decode &&.axo

Inlets

int32 input 1

bool32.risingfalling gate

Outlets

bool32 output 0

bool32 output 1

bool32 output 2

bool32 output 3

bool32 output 4

bool32 output 5

bool32 output 6

bool32 output 7

int32 chain output

Control Rate
outlet_o0 = ((inlet_i == 0) && inlet_gate) ? 1 : 0;
outlet_o1 = ((inlet_i == 1) && inlet_gate) ? 1 : 0;
outlet_o2 = ((inlet_i == 2) && inlet_gate) ? 1 : 0;
outlet_o3 = ((inlet_i == 3) && inlet_gate) ? 1 : 0;
outlet_o4 = ((inlet_i == 4) && inlet_gate) ? 1 : 0;
outlet_o5 = ((inlet_i == 5) && inlet_gate) ? 1 : 0;
outlet_o6 = ((inlet_i == 6) && inlet_gate) ? 1 : 0;
outlet_o7 = ((inlet_i == 7) && inlet_gate) ? 1 : 0;
outlet_chain = (inlet_i - 8);

Privacy

© 2024 Zrna Research