def amp_mod_audio(Dists,AS,modamp):
    """
    Returns audio array with amplitude modulation applied

    Parameters
    ----------
    Dists:  array()
        Array of distances used for amplitude modulation
    AS: array()
        Audio array that will have amplitude modulation applied
    modamp: float
        Value to help calculate amount of modulation at a specific distance

    Returns
    -------
    Audio: array()
        Audio array with amplitude modulation applied

    """
    ampchange = 1.0 + modamp
    Audio = AS[:] / (0.005 + Dists[:]**ampchange)
    #Audio = AS[:]*np.exp(-Dists[:]**ampchange)
    return Audio