matrix row 4

selectable constant. Output is v1 if i=0, v2 if i=1, v3 if i=2, v4 if i=3. Chainable, created to be used in conjunction with 4op fm object
Author: Sptnk
License: BSD
Github: sptnk/sel/matrix row 4.axo

Inlets

int32 select

frac32 default

Outlets

frac32 output

int32 chain

Parameters

frac32.u.map v1

frac32.u.map v2

frac32.u.map v3

frac32.u.map v4

Control Rate
switch (inlet_i) {
case 0:
  outlet_o = param_v1;
  break;
case 1:
  outlet_o = param_v2;
  break;
case 2:
  outlet_o = param_v3;
  break;
case 3:
  outlet_o = param_v4;
  break;
default:
  outlet_o = inlet_default;
  break;
}
outlet_chain = inlet_i - 4;

Privacy

© 2024 Zrna Research