def zero_cross(signal, samplerate, divratio, amplitudes=True, interpolation=False):
    """Produce (times in seconds, frequencies in Hz, and amplitudes) from calculated zero crossings"""
    log.debug('zero_cross(..., %d, %d, amplitudes=%s, interpolation=%s)', samplerate, divratio, amplitudes, interpolation)
    divratio //= 2  # required so that our algorithm agrees with the Anabat ZCAIM algorithm