Adding Envelope to an Output?

Alternatively, if you were planning on using PWM and filter over a DAC chip, you could use the Vref on an op-amp, again driven by filtered PWM.

M