Page 1 of 1

An interesting way to generate somewhat musical sonic mayhem

PostPosted: 05 Oct 2011, 14:59
by smcameron
The approach described here:

Algorithmic symphonies from one line of code -- how and why?

may be of interest to some folks here.

http://www.youtube.com/watch?v=GtQdIYUtAHg

^^^ the above video shows the result of little programs like this:

{l Code}: {l Select All Code}
main(t) {
for (t=0;;t++) putchar(
t*((t>>12|t>>8)&63&t>>4)
);}


piped to /dev/audio (or /dev/dsp?)

(in other words, output treated as 8 bit 8khz unsigned mono audio.)
There are some other videos there as well. Would be trivial to fill a buffer
with those algos and then save them to wav files with libsndfile.

Oh yeah, there's an online javascript one you can use to explore this sonic mathscape:
http://wurstcaptures.untergrund.net/music/

-- steve

Re: An interesting way to generate somewhat musical sonic ma

PostPosted: 05 Oct 2011, 21:36
by qubodup
:shock:
I don't know what I'm doing but t * ((t>>2|t>>7)&((2^11)-1)&t>>6|t>>7) is a 4s loop