t8ms

8 constant boolean, toggle control 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 8 constant boolean to output. Nr output shows which integer value is currently selected.
Author: Johannes Taelman
License: BSD
Github: jaffa/ctrl2/t8ms.axo

Inlets

int32.positive s

Outlets

int32 nr

bool32 output

Parameters

bool32.tgl 1

bool32.tgl 2

bool32.tgl 3

bool32.tgl 4

bool32.tgl 5

bool32.tgl 6

bool32.tgl 7

bool32.tgl 8

int32 sel

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;
default:
  outlet_o = param_8;
  break;
}
outlet_nr = inlet_s + param_sel;

Privacy

© 2024 Zrna Research