update sine wave