bytetunes


  _           _       _                         
 | |__  _   _| |_ ___| |_ _   _ _ __   ___  ___ 
 | '_ \| | | | __/ _ \ __| | | | '_ \ / _ \/ __|
 | |_) | |_| | ||  __/ |_| |_| | | | |  __/\__ \
 |_.__/ \__, |\__\___|\__|\__,_|_| |_|\___||___/
        |___/                                   


players for bytebeat music.

./bin/bytetunes.sh is a shell wrapper to compile C tunes (with gcc) and play
    them back (with aplay)

./bytetunes.py is a python program to parse and play (to stdout/aplay) tunes in
    "normal" C-syntax 

./bytetunes.cpp is an interactive microcontroller program (for libmaple and ARM
    Cortex-M3 controllers) with PWM audio output that parses and plays tunes in
    limited S-EXPR syntax

### Example Tunes

The original (to me) UNIX one-liner:

    echo "main(i){for(i=0;;i++)putchar((i*(i>>8|i>>9)&46&i>>8)^(i&i>>13|i>>6));}" | gcc -x c - && ./a.out | aplay

My favorite tune (thus far):

    (t*9&t>>4|t*5&t>>7|t*3&t/1024)-1

### References

projects:
    http://wurstcaptures.untergrund.net/music/
    http://shackspace.de/?p=2509 (The Noiseplug)
    http://hackaday.com/2011/11/01/annoy-your-sound-guy-even-more/ (Noiseplug HaD)
    https://github.com/erlehmann/libglitch
    opcodes: http://paste.ubuntu.com/733764/
    HTTP://0Xa.kuri.mu/2011/10/09/bitop-videos/
    GlitchMachine: http://www.umlautllama.com/w2/?action=view&page=GlitchMachine

listings:
    http://shackspace.de/wiki/doku.php?id=project:algorithmicsoundscapes
    http://pelulamu.net/countercomplex/music_formula_collection.txt

commentary, other:
    http://countercomplex.blogspot.de/2011/10/algorithmic-symphonies-from-one-line-of.html
    http://countercomplex.blogspot.de/2011/10/some-deep-analysis-of-one-line-music.html
    http://countercomplex.blogspot.de/2011/06/16-byte-frontier-extreme-results-from.html
    http://canonical.org/~kragen/bytebeat/
    http://pouet.net/topic.php?which=8357
    http://royal-paw.com/2012/01/bytebeats-in-c-and-python-generative-symphonies-from-extremely-small-programs/
    http://www.metafilter.com/111959/Todays-formulaic-music
    http://arxiv.org/abs/1112.1368 "Discovering novel computer music techniques by exploring the space of short computer programs"

similar:
    http://yaxu.org/haskell-hack/
    http://sunsite.univie.ac.at/Mozart/dice/
    http://music.columbia.edu/~douglas/strange_things/?p=78

git clone git://git.numm.org/bytetunes

snapshot: bytetunes.zip

files