Generates a .wav file of specified duration, frequency, filename, and other parameters.