kscope 128 b sl

slow positive control rate signal oscilloscope (time domain), showing 128 consecutive samples or sub samples.
Author: Smashed Transistors based on Johannes Taelman
License: BSD
Github: tiar/disp/kscope 128 b sl.axo

Inlets

frac32.positive input

Outlets

None

Parameters

int32 subSample

Displays

int8array128.vbar scope

Declaration
int8_t t[128];
int cpt;
int index;
Init
int i;
for (i = 0; i < 128; i++)
  t[i] = 0;
index = 0;
cpt = 0;
Control Rate
cpt++;
if (cpt >= param_subSample) {
  cpt = 0;
  disp_scope[index] = t[index] = (uint8_t)(inlet_in >> 21);

  index++;
  if (index >= 128) {
    index = 0;
  }

  /*for(int i = 0; i < 128; i++)
          disp_scope[i] = t[i];*/
}

Privacy

© 2024 Zrna Research