sel i 32

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

Inlets

int32 in

int32 default value

Outlets

int32 chain out (in-32)

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

int32.mini i16

int32.mini i17

int32.mini i18

int32.mini i19

int32.mini i20

int32.mini i21

int32.mini i22

int32.mini i23

int32.mini i24

int32.mini i25

int32.mini i26

int32.mini i27

int32.mini i28

int32.mini i29

int32.mini i30

int32.mini i31

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;
case 16:
  outlet_o = param_i16;
  break;
case 17:
  outlet_o = param_i17;
  break;
case 18:
  outlet_o = param_i18;
  break;
case 19:
  outlet_o = param_i19;
  break;
case 20:
  outlet_o = param_i20;
  break;
case 21:
  outlet_o = param_i21;
  break;
case 22:
  outlet_o = param_i22;
  break;
case 23:
  outlet_o = param_i23;
  break;
case 24:
  outlet_o = param_i24;
  break;
case 25:
  outlet_o = param_i25;
  break;
case 26:
  outlet_o = param_i26;
  break;
case 27:
  outlet_o = param_i27;
  break;
case 28:
  outlet_o = param_i28;
  break;
case 29:
  outlet_o = param_i29;
  break;
case 30:
  outlet_o = param_i30;
  break;
case 31:
  outlet_o = param_i31;
  break;
default:
  outlet_o = inlet_def;
}
outlet_chain = inlet_in - 32;

Privacy

© 2024 Zrna Research