mux 12b

input multiplexer. Output is i1 when s < 1, i[i] when....
Author: Are Leistad
License: BSD
Github: drj/mux/mux 12b.axo

Inlets

frac32buffer input 0

frac32buffer input 1

frac32buffer input 2

frac32buffer input 3

frac32buffer input 4

frac32buffer input 5

frac32buffer input 6

frac32buffer input 7

frac32buffer input 8

frac32buffer input 9

frac32buffer input 10

frac32buffer input 11

int32.positive select

Outlets

frac32buffer output

Audio Rate
// 24.11.2017 19:51
// Replacement for "mux 12" with frac32buffer inlet type, due to BUG in 1.0.12:
//  For the audio rate sample buffer inlet type, the patcher mangles the
//  building of the patch source when an input has a name that ends in a number
//  with more than 2 digits. The fix is to use something other trhan two digits
//  in the inlet names
switch (inlet_s > 0 ? inlet_s : 0) {
case 0:
  outlet_o = inlet_i0;
  break;
case 1:
  outlet_o = inlet_i1;
  break;
case 2:
  outlet_o = inlet_i2;
  break;
case 3:
  outlet_o = inlet_i3;
  break;
case 4:
  outlet_o = inlet_i4;
  break;
case 5:
  outlet_o = inlet_i5;
  break;
case 6:
  outlet_o = inlet_i6;
  break;
case 7:
  outlet_o = inlet_i7;
  break;
case 8:
  outlet_o = inlet_i8;
  break;
case 9:
  outlet_o = inlet_i9;
  break;
case 10:
  outlet_o = inlet_iA;
  break;
case 11:
  outlet_o = inlet_iB;
  break;
default:
  outlet_o = inlet_iB;
  break;
}

Privacy

© 2024 Zrna Research