scale sample by envelopValue as JPCSP