Multichannel spike detector with an adaptive threshold based on a Sigma-delta control loop