scope6K

6 displays with a shared sync input to track phase-relations of modulation signals
Author: Remco van der Most
License: BSD
Github: sss/disp/scope6K.axo

Inlets

frac32 i1

frac32 i2

frac32 i3

frac32 i4

frac32 i5

frac32 i6

frac32 snc

Outlets

None

Displays

int8array128.vbar s1

int8array128.vbar s2

int8array128.vbar s3

int8array128.vbar s4

int8array128.vbar s5

int8array128.vbar s6

Declaration
int32_t t[6][128];
int index;
bool trg;
Init
int i;
int j;
for (j = 0; j < 6; j++) {
  for (i = 0; i < 128; i++) {
    t[j][i] = 0;
  }
}
index = 0;
Control Rate
int i;
if ((inlet_snc > 0) && (!trg) && (index == 128)) {
  index = 0;
}
trg = inlet_snc > 0 ? 1 : 0;

if (index < 128) {

  t[0][index] = (uint8_t)(inlet_i1 >> 21);
  t[1][index] = (uint8_t)(inlet_i2 >> 21);
  t[2][index] = (uint8_t)(inlet_i3 >> 21);
  t[3][index] = (uint8_t)(inlet_i4 >> 21);
  t[4][index] = (uint8_t)(inlet_i5 >> 21);
  t[5][index] = (uint8_t)(inlet_i6 >> 21);
  index += 1;
}
if (index == 128) {

  for (i = 0; i < 128; i++) {
    disp_s1[i] = t[0][i];
    disp_s2[i] = t[1][i];
    disp_s3[i] = t[2][i];
    disp_s4[i] = t[3][i];
    disp_s5[i] = t[4][i];
    disp_s6[i] = t[5][i];
  }
}

Privacy

© 2024 Zrna Research