kscope 128 p

positive control rate signal oscilloscope (time domain), showing 128 consecutive samples
Author: Johannes Taelman
License: BSD
Github: disp/kscope 128 p.axo

Inlets

bool32 hold

frac32.positive input

Outlets

None

Displays

uint8array128.vbar scope

Declaration
int8_t t[128];
int index;
Init
int i;
for (i = 0; i < 128; i++)
  t[i] = 0;
index = 0;
Control Rate
int i;
t[index++] = (uint8_t)(inlet_in >> 20);
if (index == 128) {
  index = 0;
  if (!inlet_hold) {
    for (i = 0; i < 128; i++)
      disp_scope[i] = t[i];
  }
}

Privacy

© 2024 Zrna Research