Sound enveloppe

Is it possible to create a sound envelope of a sound in c++ target?