An interesting way to generate somewhat musical sonic mayhem

An interesting way to generate somewhat musical sonic mayhem

Postby smcameron » 05 Oct 2011, 14:59

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
smcameron
 
Posts: 377
Joined: 29 Oct 2010, 23:44

Re: An interesting way to generate somewhat musical sonic ma

Postby qubodup » 05 Oct 2011, 21:36

: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
User avatar
qubodup
Global Moderator
 
Posts: 1671
Joined: 08 Nov 2009, 22:52
Location: Berlin, Germany

Who is online

Users browsing this forum: No registered users and 1 guest