I’m wondering if the attack of sounds can be generally modulated after the fact to an arbitrary audio file and similarly for a piano-pedal sustain type effect.

Can they be gradually and arbitrarily modulated?