sel b 32 2t

select one out of 32 booleans, chainable, 2 tracks
Author: Johannes Taelman
License: BSD
Github: sel/sel b 32 2t.axo

Inlets

bool32 default value channel 1

bool32 default value channel 2

int32 in

Outlets

int32 chain out (in-32)

bool32 output channel 1

bool32 output channel 2

Parameters

bin32 p1

bin32 p2

Control Rate
if ((inlet_in >= 0) && (inlet_in < 32)) {
  outlet_o1 = param_p1 & (1 << inlet_in);
  outlet_o2 = param_p2 & (1 << inlet_in);
} else {
  outlet_o1 = inlet_def1;
  outlet_o2 = inlet_def2;
}
outlet_chain = inlet_in - 32;

Privacy

© 2024 Zrna Research