makes a sine wave with time varying frequency