LFO_xy_scopeLowRes

low resolution xy scope for control signals
Author: Remco van der Most
License: BSD
Github: sss/disp/LFO_xy_scopeLowRes.axo

Inlets

frac32 x

frac32 y

Outlets

None

Displays

int32.bar16 display1

int32.bar16 display2

int32.bar16 display3

int32.bar16 display4

int32.bar16 display5

int32.bar16 display6

int32.bar16 display7

int32.bar16 display8

int32.bar16 display9

int32.bar16 display10

int32.bar16 display11

int32.bar16 display12

int32.bar16 display13

int32.bar16 display14

int32.bar16 display15

int32.bar16 display16

Declaration
int i;
int32_t table[64];
Control Rate
int x = inlet_x >> 23;
switch (inlet_y >> 23 > 0 ? inlet_y >> 23 : 0) {
case 0:
  disp_display16 = x;
  break;
case 1:
  disp_display15 = x;
  break;
case 2:
  disp_display14 = x;
  break;
case 3:
  disp_display13 = x;
  break;
case 4:
  disp_display12 = x;
  break;
case 5:
  disp_display11 = x;
  break;
case 6:
  disp_display10 = x;
  break;
case 7:
  disp_display9 = x;
  break;
case 8:
  disp_display8 = x;
  break;
case 9:
  disp_display7 = x;
  break;
case 10:
  disp_display6 = x;
  break;
case 11:
  disp_display5 = x;
  break;
case 12:
  disp_display4 = x;
  break;
case 13:
  disp_display3 = x;
  break;
case 14:
  disp_display2 = x;
  break;
case 15:
  disp_display1 = x;
  break;
}
if (!(inlet_y >> 23 == 0)) {
  disp_display16 = -1;
}
if (!(inlet_y >> 23 == 1)) {
  disp_display15 = -1;
}
if (!(inlet_y >> 23 == 2)) {
  disp_display14 = -1;
}
if (!(inlet_y >> 23 == 3)) {
  disp_display13 = -1;
}
if (!(inlet_y >> 23 == 4)) {
  disp_display12 = -1;
}
if (!(inlet_y >> 23 == 5)) {
  disp_display11 = -1;
}
if (!(inlet_y >> 23 == 6)) {
  disp_display10 = -1;
}
if (!(inlet_y >> 23 == 7)) {
  disp_display9 = -1;
}
if (!(inlet_y >> 23 == 8)) {
  disp_display8 = -1;
}
if (!(inlet_y >> 23 == 9)) {
  disp_display7 = -1;
}
if (!(inlet_y >> 23 == 10)) {
  disp_display6 = -1;
}
if (!(inlet_y >> 23 == 11)) {
  disp_display5 = -1;
}
if (!(inlet_y >> 23 == 12)) {
  disp_display4 = -1;
}
if (!(inlet_y >> 23 == 13)) {
  disp_display3 = -1;
}
if (!(inlet_y >> 23 == 14)) {
  disp_display2 = -1;
}
if (!(inlet_y >> 23 == 15)) {
  disp_display1 = -1;
}

Privacy

© 2024 Zrna Research