fade out smoothly using gain and ramping to value. I've chosen an arbitrary amount to fade by here, which I guess isn't great.