sel 4l 16 2t

select one out of 16 4-levels, 2 tracks, chainable
Author: Johannes Taelman
License: BSD
Github: sel/sel 4l 16 2t.axo

Inlets

int32 in

int32 default value track 1

int32 default value track 2

Outlets

int32 chain out (in-16)

int32 output track 1

int32 output track 2

Parameters

int2x16 t1

int2x16 t2

Control Rate
if ((inlet_in >= 0) && (inlet_in < 16)) {
  outlet_o1 = (param_t1 >> (inlet_in * 2)) & 3;
  outlet_o2 = (param_t2 >> (inlet_in * 2)) & 3;
} else {
  outlet_o1 = inlet_def1;
  outlet_o2 = inlet_def2;
}
outlet_chain = inlet_in - 16;

Privacy

© 2024 Zrna Research