Starting a mix. I set a few levels with th gain envelope. Next, I tune the vocals. When I applied Melodyne to a vocal event, the amplitude decreases significantly. Tried it the other way around where I applied Melodyne first, and then use the gain envelope. No difference. When I remove Melodyne from the event, the amplitude returns to the level I had originally set.