mux8

string multiplexer
Author: Smashed Transistors
License: LGPL
Github: tiar/string/mux8.axo

Inlets

charptr32 i0

charptr32 i1

charptr32 i2

charptr32 i3

charptr32 i4

charptr32 i5

charptr32 i6

charptr32 i7

int32.positive sel

Outlets

charptr32 string

Control Rate
switch (inlet_sel & 7) {
case 0:
default:
  outlet_out = (char *)inlet_i0;
  break;
case 1:
  outlet_out = (char *)inlet_i1;
  break;
case 2:
  outlet_out = (char *)inlet_i2;
  break;
case 3:
  outlet_out = (char *)inlet_i3;
  break;
case 4:
  outlet_out = (char *)inlet_i4;
  break;
case 5:
  outlet_out = (char *)inlet_i5;
  break;
case 6:
  outlet_out = (char *)inlet_i6;
  break;
case 7:
  outlet_out = (char *)inlet_i7;
  break;
}

Privacy

© 2024 Zrna Research