As you may have tried yourself, the tiny binaries produced by the preceding code create long tunes directly coded by a function of time !
So you basically have s=f(t) where s is the output sample, t the sample id and f a simple expression as the one I put on the title.
The thing is you can actually build quite complex song with it !
This technique has been called bytebeat and the main article describing it was made by someone named "viznut".
See the original article here http://countercomplex.blogspot.fr/2011/10/algorithmic-symphonies-from-one-line-of.html or here http://canonical.org/~kragen/bytebeat/
The game is open source and the release is here : https://github.com/makapuf/bitbox-fmv
For more info about the game see : http://www.dragons-lair-project.com/games/pages/dl.asp
for Bitbox itself see main repo / wiki : https://github.com/makapuf/bitbox/

This game / engine is aimed at reproducing the dragons lair game on the Bitbox. It's only compatible with the standard bitbox since the data is streamed from SD card.