Hey there, I'm trying to build an envelope generator based off the tutorial found here (http://en.flossmanuals.net/pure-data/audio-tutorials/envelope-generator/) but instead of triggering the ADS and R values through midi on/off values, I will be applying it to audio samples in a sequencer. Is there any documentation anyone would suggest for creating an EG for a sampler/sequencer and also information on how to write that envelope information to an array?

Thank you very much.