The rate at which the amplitude climbs is determined by the y-pos of the mouse