Pausing Sinusoidal motion

See this post: Keeping track of curve or sine cycles even with interruption

-Jacob