dialmatrix 8 64

demultiplexes data incoming on 8 inlets to 64 dials named in the format 'rowcolumn'. the 'rows' are wired to the inlets 'in0' to 'in3',the 'column' is defined by the inlet 's' (so for example 4 dials receiving from in2 have to be named '20' '21' '22' '23' '24' '25' '26' and '27')
Author: robert schirmer
License: who cares
Github: rbrt/old/dialmatrix 8 64.axo

Inlets

int32.positive s

frac32 in0

frac32 in1

frac32 in2

frac32 in3

frac32 in4

frac32 in5

frac32 in6

frac32 in7

Outlets

None

Declaration
int32_t prev0;
int32_t prev1;
int32_t prev2;
int32_t prev3;
int32_t prev4;
int32_t prev5;
int32_t prev6;
int32_t prev7;
Init
prev0 = 0;
prev1 = 0;
prev2 = 0;
prev3 = 0;
prev4 = 0;
prev5 = 0;
prev6 = 0;
prev7 = 0;
Control Rate
if ((inlet_s == 0) && (inlet_in0 != prev0)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_00_value], inlet_in0, 0xFFFD);
}

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

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

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

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

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

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

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

prev0 = inlet_in0;

if ((inlet_s == 0) && (inlet_in1 != prev1)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_10_value], inlet_in1, 0xFFFD);
}

if ((inlet_s == 1) && (inlet_in1 != prev1)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_11_value], inlet_in1, 0xFFFD);
}

if ((inlet_s == 2) && (inlet_in1 != prev1)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_12_value], inlet_in1, 0xFFFD);
}

if ((inlet_s == 3) && (inlet_in1 != prev1)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_13_value], inlet_in1, 0xFFFD);
}

if ((inlet_s == 4) && (inlet_in1 != prev1)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_14_value], inlet_in1, 0xFFFD);
}

if ((inlet_s == 5) && (inlet_in1 != prev1)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_15_value], inlet_in1, 0xFFFD);
}

if ((inlet_s == 6) && (inlet_in1 != prev1)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_16_value], inlet_in1, 0xFFFD);
}

if ((inlet_s == 7) && (inlet_in1 != prev1)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_17_value], inlet_in1, 0xFFFD);
}

prev1 = inlet_in1;

if ((inlet_s == 0) && (inlet_in2 != prev2)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_20_value], inlet_in2, 0xFFFD);
}

if ((inlet_s == 1) && (inlet_in2 != prev2)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_21_value], inlet_in2, 0xFFFD);
}

if ((inlet_s == 2) && (inlet_in2 != prev2)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_22_value], inlet_in2, 0xFFFD);
}

if ((inlet_s == 3) && (inlet_in2 != prev2)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_23_value], inlet_in2, 0xFFFD);
}

if ((inlet_s == 4) && (inlet_in2 != prev2)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_24_value], inlet_in2, 0xFFFD);
}

if ((inlet_s == 5) && (inlet_in2 != prev2)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_25_value], inlet_in2, 0xFFFD);
}

if ((inlet_s == 6) && (inlet_in2 != prev2)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_26_value], inlet_in2, 0xFFFD);
}

if ((inlet_s == 7) && (inlet_in2 != prev2)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_27_value], inlet_in2, 0xFFFD);
}

prev2 = inlet_in2;

if ((inlet_s == 0) && (inlet_in3 != prev3)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_30_value], inlet_in3, 0xFFFD);
}

if ((inlet_s == 1) && (inlet_in3 != prev3)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_31_value], inlet_in3, 0xFFFD);
}

if ((inlet_s == 2) && (inlet_in3 != prev3)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_32_value], inlet_in3, 0xFFFD);
}

if ((inlet_s == 3) && (inlet_in3 != prev3)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_33_value], inlet_in3, 0xFFFD);
}

if ((inlet_s == 4) && (inlet_in3 != prev3)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_34_value], inlet_in3, 0xFFFD);
}

if ((inlet_s == 5) && (inlet_in3 != prev3)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_35_value], inlet_in3, 0xFFFD);
}

if ((inlet_s == 6) && (inlet_in3 != prev3)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_36_value], inlet_in3, 0xFFFD);
}

if ((inlet_s == 7) && (inlet_in3 != prev3)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_37_value], inlet_in3, 0xFFFD);
}

prev3 = inlet_in3;

if ((inlet_s == 0) && (inlet_in4 != prev4)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_40_value], inlet_in4, 0xFFFD);
}

if ((inlet_s == 1) && (inlet_in4 != prev4)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_41_value], inlet_in4, 0xFFFD);
}

if ((inlet_s == 2) && (inlet_in4 != prev4)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_42_value], inlet_in4, 0xFFFD);
}

if ((inlet_s == 3) && (inlet_in4 != prev4)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_43_value], inlet_in4, 0xFFFD);
}

if ((inlet_s == 4) && (inlet_in4 != prev4)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_44_value], inlet_in4, 0xFFFD);
}

if ((inlet_s == 5) && (inlet_in4 != prev4)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_45_value], inlet_in4, 0xFFFD);
}

if ((inlet_s == 6) && (inlet_in4 != prev4)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_46_value], inlet_in4, 0xFFFD);
}

if ((inlet_s == 7) && (inlet_in4 != prev4)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_47_value], inlet_in4, 0xFFFD);
}

prev4 = inlet_in4;

if ((inlet_s == 0) && (inlet_in5 != prev5)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_50_value], inlet_in5, 0xFFFD);
}

if ((inlet_s == 1) && (inlet_in5 != prev5)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_51_value], inlet_in5, 0xFFFD);
}

if ((inlet_s == 2) && (inlet_in5 != prev5)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_52_value], inlet_in5, 0xFFFD);
}

if ((inlet_s == 3) && (inlet_in5 != prev5)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_53_value], inlet_in5, 0xFFFD);
}

if ((inlet_s == 4) && (inlet_in5 != prev5)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_54_value], inlet_in5, 0xFFFD);
}

if ((inlet_s == 5) && (inlet_in5 != prev5)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_55_value], inlet_in5, 0xFFFD);
}

if ((inlet_s == 6) && (inlet_in5 != prev5)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_56_value], inlet_in5, 0xFFFD);
}

if ((inlet_s == 7) && (inlet_in5 != prev5)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_57_value], inlet_in5, 0xFFFD);
}

prev5 = inlet_in5;

if ((inlet_s == 0) && (inlet_in6 != prev6)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_60_value], inlet_in6, 0xFFFD);
}

if ((inlet_s == 1) && (inlet_in6 != prev6)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_61_value], inlet_in6, 0xFFFD);
}

if ((inlet_s == 2) && (inlet_in6 != prev6)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_62_value], inlet_in6, 0xFFFD);
}

if ((inlet_s == 3) && (inlet_in6 != prev6)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_63_value], inlet_in6, 0xFFFD);
}

if ((inlet_s == 4) && (inlet_in6 != prev6)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_64_value], inlet_in6, 0xFFFD);
}

if ((inlet_s == 5) && (inlet_in6 != prev6)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_65_value], inlet_in6, 0xFFFD);
}

if ((inlet_s == 6) && (inlet_in6 != prev6)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_66_value], inlet_in6, 0xFFFD);
}

if ((inlet_s == 7) && (inlet_in6 != prev6)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_67_value], inlet_in6, 0xFFFD);
}

prev6 = inlet_in6;

if ((inlet_s == 0) && (inlet_in7 != prev7)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_70_value], inlet_in7, 0xFFFD);
}

if ((inlet_s == 1) && (inlet_in7 != prev7)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_71_value], inlet_in7, 0xFFFD);
}

if ((inlet_s == 2) && (inlet_in7 != prev7)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_72_value], inlet_in7, 0xFFFD);
}

if ((inlet_s == 3) && (inlet_in7 != prev7)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_73_value], inlet_in7, 0xFFFD);
}

if ((inlet_s == 4) && (inlet_in7 != prev7)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_74_value], inlet_in7, 0xFFFD);
}

if ((inlet_s == 5) && (inlet_in7 != prev7)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_75_value], inlet_in7, 0xFFFD);
}

if ((inlet_s == 6) && (inlet_in7 != prev7)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_76_value], inlet_in7, 0xFFFD);
}

if ((inlet_s == 7) && (inlet_in7 != prev7)) {
  PExParameterChange(&parent->PExch[PARAM_INDEX_77_value], inlet_in7, 0xFFFD);
}

prev7 = inlet_in7;

Privacy

© 2024 Zrna Research