Fixed a bug in interpolation and added aftertouch control