13ModLvlSel

select from 13 incoming modulators for the 8 mod outputs and set their level
Author: Remco van der Most
License: BSD
Github: sss/mux/13ModLvlSel.axo

Inlets

frac32 input 0

frac32 input 1

frac32 input 2

frac32 input 3

frac32 input 4

frac32 input 5

frac32 input 6

frac32 i7

frac32 i8

frac32 i9

frac32 i10

frac32 i11

frac32 i12

int32.positive select

int32.positive s2

int32.positive s3

int32.positive s4

int32.positive s5

int32.positive s6

int32.positive s7

frac32.bipolar A1

frac32.bipolar A2

frac32.bipolar A3

frac32.bipolar A4

frac32.bipolar A5

frac32.bipolar A6

frac32.bipolar A7

frac32.bipolar A8

int32 s8

Outlets

frac32 output

frac32 o2

frac32 o3

frac32 o4

frac32 o5

frac32 o6

frac32 o7

frac32 o8

Control Rate
int32_t a;
switch (inlet_s1 > 0 ? inlet_s1 : 0) {
case 0:
  a = inlet_i0;
  break;
case 1:
  a = inlet_i1;
  break;
case 2:
  a = inlet_i2;
  break;
case 3:
  a = inlet_i3;
  break;
case 4:
  a = inlet_i4;
  break;
case 5:
  a = inlet_i5;
  break;
case 6:
  a = inlet_i6;
  break;
case 7:
  a = inlet_i7;
  break;
case 8:
  a = inlet_i8;
  break;
case 9:
  a = inlet_i9;
  break;
case 10:
  a = inlet_i10;
  break;
case 11:
  a = inlet_i11;
  break;
case 12:
  a = inlet_i12;
  break;
default:
  a = inlet_i12;
  break;
}
outlet_o1 = ___SMMUL(a << 3, inlet_A1 << 2);

switch (inlet_s2 > 0 ? inlet_s2 : 0) {
case 0:
  a = inlet_i0;
  break;
case 1:
  a = inlet_i1;
  break;
case 2:
  a = inlet_i2;
  break;
case 3:
  a = inlet_i3;
  break;
case 4:
  a = inlet_i4;
  break;
case 5:
  a = inlet_i5;
  break;
case 6:
  a = inlet_i6;
  break;
case 7:
  a = inlet_i7;
  break;
case 8:
  a = inlet_i8;
  break;
case 9:
  a = inlet_i9;
  break;
case 10:
  a = inlet_i10;
  break;
case 11:
  a = inlet_i11;
  break;
case 12:
  a = inlet_i12;
  break;
default:
  a = inlet_i12;
  break;
}
outlet_o2 = ___SMMUL(a << 3, inlet_A2 << 2);

switch (inlet_s3 > 0 ? inlet_s3 : 0) {
case 0:
  a = inlet_i0;
  break;
case 1:
  a = inlet_i1;
  break;
case 2:
  a = inlet_i2;
  break;
case 3:
  a = inlet_i3;
  break;
case 4:
  a = inlet_i4;
  break;
case 5:
  a = inlet_i5;
  break;
case 6:
  a = inlet_i6;
  break;
case 7:
  a = inlet_i7;
  break;
case 8:
  a = inlet_i8;
  break;
case 9:
  a = inlet_i9;
  break;
case 10:
  a = inlet_i10;
  break;
case 11:
  a = inlet_i11;
  break;
case 12:
  a = inlet_i12;
  break;
default:
  a = inlet_i12;
  break;
}
outlet_o3 = ___SMMUL(a << 3, inlet_A3 << 2);

switch (inlet_s4 > 0 ? inlet_s4 : 0) {
case 0:
  a = inlet_i0;
  break;
case 1:
  a = inlet_i1;
  break;
case 2:
  a = inlet_i2;
  break;
case 3:
  a = inlet_i3;
  break;
case 4:
  a = inlet_i4;
  break;
case 5:
  a = inlet_i5;
  break;
case 6:
  a = inlet_i6;
  break;
case 7:
  a = inlet_i7;
  break;
case 8:
  a = inlet_i8;
  break;
case 9:
  a = inlet_i9;
  break;
case 10:
  a = inlet_i10;
  break;
case 11:
  a = inlet_i11;
  break;
case 12:
  a = inlet_i12;
  break;
default:
  a = inlet_i12;
  break;
}
outlet_o4 = ___SMMUL(a << 3, inlet_A4 << 2);

switch (inlet_s5 > 0 ? inlet_s5 : 0) {
case 0:
  a = inlet_i0;
  break;
case 1:
  a = inlet_i1;
  break;
case 2:
  a = inlet_i2;
  break;
case 3:
  a = inlet_i3;
  break;
case 4:
  a = inlet_i4;
  break;
case 5:
  a = inlet_i5;
  break;
case 6:
  a = inlet_i6;
  break;
case 7:
  a = inlet_i7;
  break;
case 8:
  a = inlet_i8;
  break;
case 9:
  a = inlet_i9;
  break;
case 10:
  a = inlet_i10;
  break;
case 11:
  a = inlet_i11;
  break;
case 12:
  a = inlet_i12;
  break;
default:
  a = inlet_i12;
  break;
}
outlet_o5 = ___SMMUL(a << 3, inlet_A5 << 2);

switch (inlet_s6 > 0 ? inlet_s6 : 0) {
case 0:
  a = inlet_i0;
  break;
case 1:
  a = inlet_i1;
  break;
case 2:
  a = inlet_i2;
  break;
case 3:
  a = inlet_i3;
  break;
case 4:
  a = inlet_i4;
  break;
case 5:
  a = inlet_i5;
  break;
case 6:
  a = inlet_i6;
  break;
case 7:
  a = inlet_i7;
  break;
case 8:
  a = inlet_i8;
  break;
case 9:
  a = inlet_i9;
  break;
case 10:
  a = inlet_i10;
  break;
case 11:
  a = inlet_i11;
  break;
case 12:
  a = inlet_i12;
  break;
default:
  a = inlet_i12;
  break;
}
outlet_o6 = ___SMMUL(a << 3, inlet_A6 << 2);

switch (inlet_s7 > 0 ? inlet_s7 : 0) {
case 0:
  a = inlet_i0;
  break;
case 1:
  a = inlet_i1;
  break;
case 2:
  a = inlet_i2;
  break;
case 3:
  a = inlet_i3;
  break;
case 4:
  a = inlet_i4;
  break;
case 5:
  a = inlet_i5;
  break;
case 6:
  a = inlet_i6;
  break;
case 7:
  a = inlet_i7;
  break;
case 8:
  a = inlet_i8;
  break;
case 9:
  a = inlet_i9;
  break;
case 10:
  a = inlet_i10;
  break;
case 11:
  a = inlet_i11;
  break;
case 12:
  a = inlet_i12;
  break;
default:
  a = inlet_i12;
  break;
}
outlet_o7 = ___SMMUL(a << 3, inlet_A7 << 2);

switch (inlet_s8 > 0 ? inlet_s8 : 0) {
case 0:
  a = inlet_i0;
  break;
case 1:
  a = inlet_i1;
  break;
case 2:
  a = inlet_i2;
  break;
case 3:
  a = inlet_i3;
  break;
case 4:
  a = inlet_i4;
  break;
case 5:
  a = inlet_i5;
  break;
case 6:
  a = inlet_i6;
  break;
case 7:
  a = inlet_i7;
  break;
case 8:
  a = inlet_i8;
  break;
case 9:
  a = inlet_i9;
  break;
case 10:
  a = inlet_i10;
  break;
case 11:
  a = inlet_i11;
  break;
case 12:
  a = inlet_i12;
  break;
default:
  a = inlet_i12;
  break;
}
outlet_o8 = ___SMMUL(a << 3, inlet_A8 << 2);

Privacy

© 2024 Zrna Research