Gain envelope example