prototype of envelope (ADHSR) based sound generation