sel i 16

select one out of 16 integers, with chain i/o
Author: Johannes Taelman
License: BSD
Github: sel/sel i 16.axo

Inlets

int32 in

int32 default value

Outlets

int32 chain out (in-16)

int32 output

Parameters

int32.mini i0

int32.mini i1

int32.mini i2

int32.mini i3

int32.mini i4

int32.mini i5

int32.mini i6

int32.mini i7

int32.mini i8

int32.mini i9

int32.mini i10

int32.mini i11

int32.mini i12

int32.mini i13

int32.mini i14

int32.mini i15

Control Rate
switch (inlet_in) {
case 0:
  outlet_o = param_i0;
  break;
case 1:
  outlet_o = param_i1;
  break;
case 2:
  outlet_o = param_i2;
  break;
case 3:
  outlet_o = param_i3;
  break;
case 4:
  outlet_o = param_i4;
  break;
case 5:
  outlet_o = param_i5;
  break;
case 6:
  outlet_o = param_i6;
  break;
case 7:
  outlet_o = param_i7;
  break;
case 8:
  outlet_o = param_i8;
  break;
case 9:
  outlet_o = param_i9;
  break;
case 10:
  outlet_o = param_i10;
  break;
case 11:
  outlet_o = param_i11;
  break;
case 12:
  outlet_o = param_i12;
  break;
case 13:
  outlet_o = param_i13;
  break;
case 14:
  outlet_o = param_i14;
  break;
case 15:
  outlet_o = param_i15;
  break;
default:
  outlet_o = inlet_def;
}
outlet_chain = inlet_in - 16;

Privacy

© 2024 Zrna Research