sel i 16 vbp

select one out of 16 integers +-, with chain i vertical and big display /o
Author: Johannes Taelman Edited by Jaffasplaffa
License: BSD
Github: phi/sel/sel i 16 vbp.axo

Inlets

int32 in

int32 default value

Outlets

int32 chain out (in-16)

int32 output

Parameters

int32 i0

int32 i1

int32 i2

int32 i3

int32 i4

int32 i5

int32 i6

int32 i7

int32 i8

int32 i9

int32 i10

int32 i11

int32 i12

int32 i13

int32 i14

int32 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