@cthl not directly, you'd need to store the values you want for each sample and when those samples are triggered you set the envelope to the correct values
You'll need a separate script to do the setting because the deferred ui script will probably be too slow.