made x movement speed constant

used algorithm from [http://www.iforce2d.net/b2dtut/constant-speed] to
make ADSR envelope fully adjustable