stop() Stop the ramp where it is. linearramp.stop() Your function stops being called until the ramp is started again.