Cycle through a series of values on a sinewave