Hi. Can you add ADSR with your library sir?
http://en.flossmanuals.net/pure-data/audio-tutorials/envelope-generator/