int32 in
bool32 default value
int32 chain out (in-16)
bool32.pulse output
bin16 b16
int in_prev;
in_prev = 0;
if ((inlet_in >= 0) && (inlet_in < 16))
outlet_o = (in_prev != inlet_in) && (param_b16 & (1 << inlet_in));
else
outlet_o = inlet_def;
outlet_chain = inlet_in - 16;
in_prev = inlet_in;