fixed amplitude ramping. need to typecast the info[x].pos to 'int' before checking if it's less than 0.