by Sandro Maffiodo
This is a song generator. The generated song is based on an obscure sequence of numbers. Who can understand what is this sequence?
$(CC) prog.c -o prog
./prog 1000 > song.wav
This program generate a 44100Hz 16bit mono audio file. The length and duration of the file depends on the argument given to the program. You can try with these values:
./prog 200 ./prog 1000 ./prog 6000
The more the number is great, the more the length of the file will be big.
The build process will generate some cute warnings about: