Added window function and ability to constantly generate signal