frac32buffer a
frac32buffer quant(a)
int counter;
int sample;
counter = 0;
if (inlet_a > 0 && (counter < 2)) {
sample = (1 << 26);
counter = counter + 1;
}
if (inlet_a > 0 && counter == 2) {
sample = -(1 << 26);
counter = 0;
}
outlet_b = sample;