Soft clipping and envelope