def mkclick(freq, sr=<NUM_LIT>, duration=<NUM_LIT:0.1>):
times = np.arange(int(sr * duration))<EOL>click = np.sin(<NUM_LIT:2> * np.pi * times * freq / float(sr))<EOL>click *= np.exp(- times / (<NUM_LIT> * sr))<EOL>return click<EOL>
Generate a click sample.

    This replicates functionality from mir_eval.sonify.clicks,
    but exposes the target frequency and duration.