WAV is a standard container for digital audio, commonly storing uncompressed PCM samples. In Haskell, HCodecs writes generated signals to WAV files that most audio players can play. section 10.1.2
Export four waveforms
writeWav "4waves.wav" $ concatMap (\w -> tone w 220 5) [sin, tri, saw, sqw] generates a five-second, 220-Hz segment for each waveform and writes the combined audio to a WAV file.
