BIGscopeKS

bipolar audio rate signal oscilloscope (time domain), showing 128 consecutive samples after the signal becomes positive. this module has outputs to link several scopes behind each other for a big scope
Author: Remco van der Most
License: BSD
Github: sss/disp/BIGscopeKS.axo

Inlets

frac32 in

bool32 snc

Outlets

None

Displays

int8array128.vbar 1

int8array128.vbar 2

int8array128.vbar 3

int8array128.vbar 4

int8array128.vbar 5

int8array128.vbar 6

int8array128.vbar 7

int8array128.vbar 8

Declaration
int8_t t[1024];
bool trg;
int32_t write;
int32_t sum;
bool snc;
Init
int i;
for (i = 0; i < 1024; i++)
  t[i] = 0;
Control Rate
write += 1;
write = write & ((1 << 13) - 1);
int i;

if ((inlet_snc > 0) && !snc) {
  snc = 1;
  write = 0;
} else if (inlet_snc == 0) {
  snc = 0;
}

i = write >> 3;

if (i < 128) {
  disp_1[i] = inlet_in >> 21;
} else if (i < 256) {
  disp_2[i - 128] = inlet_in >> 21;
} else if (i < 384) {
  disp_3[i - 256] = inlet_in >> 21;
} else if (i < 512) {
  disp_4[i - 384] = inlet_in >> 21;
} else if (i < 640) {
  disp_5[i - 512] = inlet_in >> 21;
} else if (i < 768) {
  disp_6[i - 640] = inlet_in >> 21;
} else if (i < 768) {
  disp_7[i - 768] = inlet_in >> 21;
} else {
  disp_8[i - 896] = inlet_in >> 21;
}

Privacy

© 2024 Zrna Research