added basic adsr envelope