Generate WAVE file

Generates a WAVE sound file