Added time-dependent frequency generator function for sine.