music written in the C programming language
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
essay
2-6-2-7-2-8
3-6-3-7-3-8
4-512-s-11-63
512-3s-18-4s-27
512-3s-4s-512
512-3s-4t-9
512-3s-512-4s
6-3-4-7-2
6-7-2-4-8-2-4-7-8-9
6-7-8-4-5-2-8-4
6-7-8-4-5-4-7-3
6-7-8-4-5-4-8-4
6-8-4-4-7-3-2-6-2
7-4-8-3
8-4-6-2
8-5-2-6-4-3-4-3-4
PC-10
README
alarm
almost-pacman
beat-%60-r40
beat-r6*6
beat-r7%160
beat-r8&23
beat-r9^13
crowd
du-dup
emergency
fefe-6-6-6
fefe-9-11
flatline-8-11-11-11-16
flatline-8-11-16
hotline-3-6-8-11-3-11
hotline-3-8-8-8-11-7-11
it-crowd
kübelwagen
l2
l3
l4
l5
l6
makefile
mortal-kombat
noise-airplane
noise-creepy
noise-s-8
play
plot
quatsi-11-8-7
quatsi-8-7
quatsi-9-7
r10
r11
r12
r7
r8
r9
rolling
sawtooth
sig.c
sine
sine-nomath
square
symmetries
triangle
visualizer.c
wraparound-disco

README

This is a collection of minimal programs for sound synthesis, written in C. They are using techniques explained in <http://countercomplex.blogspot.com/2011/10/algorithmic-symphonies-from-one-line-of.html> and the followup discussions at <http://news.ycombinator.com/item?id=3063359> and <http://www.reddit.com/r/programming/comments/kyj77/algorithmic_symphonies_from_one_line_of_code_how/
>.

To compile the demo program and listen to its output, do:
    g++ ./munching-squares.c -o munching-squares
    ./munching-squares | sox -c 1 -e unsigned-integer -r 8000 -t u8 - -d --buffer 32

To generate a C program for any formula and play it immediately:
    ./play $FILENAME