fix midi value conversion to fixed [x1,x2] range