scope 128 b

bipolar audio rate signal oscilloscope (time domain), showing 128 consecutive samples
Author: Johannes Taelman
License: BSD
Github: disp/scope 128 b.axo

Inlets

frac32buffer.bipolar input

bool32 hold

Outlets

None

Displays

int8array128.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;
for (i = 0; i < 16; i++)
  t[index++] = (uint8_t)(inlet_in[i] >> 21);
if (index == 128) {
  index = 0;
  if (!inlet_hold) {
    for (i = 0; i < 128; i++)
      disp_scope[i] = t[i];
  }
}

Privacy

© 2024 Zrna Research