i16ms

16 positive integer controls fed into a muxer. This one also has a build in selector for the muxer. Use input or selector to select which one of the 16 integer values to output. Nr output shows which integer value is currently selected.
Author: Jaffasplaffa
License: BSD
Github: jaffa/ctrl2/i16ms.axo

Inlets

int32.positive s

Outlets

int32.positive o

int32 nr

Parameters

int32 sel

int32 1

int32 2

int32 3

int32 4

int32 5

int32 6

int32 7

int32 8

int32 9

int32 10

int32 11

int32 12

int32 13

int32 14

int32 15

int32 16

Control Rate
switch (inlet_s + param_sel > 0 ? inlet_s + param_sel - 1 : 0) {
case 0:
  outlet_o = param_1;
  break;
case 1:
  outlet_o = param_2;
  break;
case 2:
  outlet_o = param_3;
  break;
case 3:
  outlet_o = param_4;
  break;
case 4:
  outlet_o = param_5;
  break;
case 5:
  outlet_o = param_6;
  break;
case 6:
  outlet_o = param_7;
  break;
case 7:
  outlet_o = param_8;
  break;
case 8:
  outlet_o = param_9;
  break;
case 9:
  outlet_o = param_10;
  break;
case 10:
  outlet_o = param_11;
  break;
case 11:
  outlet_o = param_12;
  break;
case 12:
  outlet_o = param_13;
  break;
case 13:
  outlet_o = param_14;
  break;
case 14:
  outlet_o = param_15;
  break;
case 15:
  outlet_o = param_16;
  break;
default:
  outlet_o = param_16;
  break;
}
outlet_nr = inlet_s + param_sel;

Privacy

© 2024 Zrna Research