def wav2zc(fname, divratio=8, hpfilter_khz=20, threshold_factor=1.0, interpolation=False, brickwall_hpf=True):
    """Convert a single .wav file to Anabat format.
    Produces (times in seconds, frequencies in Hz, amplitudes, metadata).