Version 1.1: Added smoothing to sine curves such that the sine curve is seamless at higher amplitudes.
Version 1.0