frac32buffer.bipolar input
bool32 hold
None
int32 rate
frac32.u.map.gain16 gain
int8array128.vbar scope
int8_t t[128];
int index;
int32_t pval;
int count;
int i;
int C1;
int gtrig;
for (i = 0; i < 128; i++)
t[i] = 0;
index = 0;
pval = 0;
if (C1 == 127) {
for (i = 0; i < 128; i++) {
disp_scope[i] = t[i];
}
}
if ((inlet_in > 0) && !gtrig) {
gtrig = 1;
C1 = 0;
count = 0;
} else if (C1 == 127) {
gtrig = 0;
}
if (count >= param_rate) {
count = 0;
}
if (count == 0) {
t[C1] = ___SMMUL(inlet_in >> 16, param_gain);
C1 += 1;
C1 = C1 & 127;
}
count += 1;