in stop_sifting() the line: "sx = np.abs(envmoy) / amp" sometimes causes a divide by zero error.
also, I notice that right above this line (currently 376) there are some try/except checks for the return values of self.mean_and_amplitude(), but ONLY for two very specific errors. seems there should be an unconditional "except" too.
what's the right fix here?
-- jdm