frac32buffer level input
frac32buffer trigger input, triggers on rising zero-crossing
frac32buffer.bipolar audio output
int32_t in0;
int32_t hold;
in0 = 0;
hold = 0;
if ((inlet_trig > 0) && !(in0 > 0)) {
hold = inlet_in >> 1;
}
in0 = inlet_trig;
outlet_out = hold;