def riseFallAmp():
    """Rises and falls amplitude between -30 and -3 dB, 1 db at the time."""
    global db, dir
    db += dir
    if db >= -3:
        dir = -1
    elif db < -30:
        dir = 1
    return db
