dialmatrix 1 4

demultiplexes incoming data to 4 dials.the target is set by the inlet 's'. the dials have to be named '0' , '1' , '2' ,'3'.
Author: robert schirmer
License: who cares
Github: rbrt/old/dialmatrix 1 4.axo

Inlets

frac32 in0

int32.positive s

Outlets

None

Declaration
int32_t prev0;
Init
prev0 = 0;
Control Rate
if ((inlet_s == 0) && (inlet_in0 != prev0)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_0_value], inlet_in0, 0xFFFD);
}

if ((inlet_s == 1) && (inlet_in0 != prev0)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_1_value], inlet_in0, 0xFFFD);
}

if ((inlet_s == 2) && (inlet_in0 != prev0)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_2_value], inlet_in0, 0xFFFD);
}

if ((inlet_s == 3) && (inlet_in0 != prev0)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_3_value], inlet_in0, 0xFFFD);
}

prev0 = inlet_in0;

Privacy

© 2024 Zrna Research