sel b 16 D

select one out of 16 booleans, chainable
Author: Johannes Taelman
License: BSD
Github: jaffa/sel/sel b 16 D.axo

Inlets

int32 in

bool32 default value

Outlets

int32 chain out (in-16)

bool32 output

Parameters

bin16 b16

Displays

int32.bar16 v

Control Rate
disp_v = inlet_in;

if ((inlet_in >= 0) && (inlet_in < 16))
  outlet_o = param_b16 & (1 << inlet_in);
else
  outlet_o = inlet_def;
outlet_chain = inlet_in - 16;

Privacy

© 2024 Zrna Research