Experimental music from very short C programs

A few weeks ago I ran onto this thread on poet:
http://www.pouet.net/topic.php?which=8357&page=1&x=25&y=6 witch had links to the following youtube videos

and

and

That shows what these extremely small programs can accomplish. Then little scale got a hold of it and made some pretty awesome Arduino examples.

of course Viznut wrote a great article about it all:

You can experiment online at http://wurstcaptures.untergrund.net/music/ or http://entropedia.co.uk/generative_music/

or use this little program to write the data out

main()
{
int t;
for(t=0;;t++)
{
putchar( t * ((t>>12|t>>16)&127&t>>8));
}
}

That little song was written by burri and sounds like this:
Tjollebolle2 by burri123

I have it as a ring-signal for my phone.

here are a few I’ve been fiddling around with:

http://wurstcaptures.untergrund.net/music/?oneliner=((t*(t%3E%3E12)%26t*2.01%26t*1.99)%26(t*(t%3E%3E14)%26t*3.01%26t*3.99))%2B((t*(t%3E%3E16)%26t*2.02%26t*1.98)-(t*(t%3E%3E18)%26t*3.02%26t*2.98))&oneliner2=&t0=0&tmod=0&duration=60&separation=0&rate=8000

and

http://wurstcaptures.untergrund.net/music/?oneliner=%283*t%29%5E%28t%3E%3E6%29%25256&oneliner2=%283.0001*t%29%5E%28t%3E%3E6.001%29%25256&t0=0&tmod=0&duration=60&separation=0&rate=8000

and

http://wurstcaptures.untergrund.net/music/?oneliner=%28t%2F2%3E%3E%281%2B%28%28t%3E%3E2%29%264%29%29%29*%28t%2F400%3E%3E%281%2B%28%28t%3E%3E2%29%264%29%29%29&oneliner2=&t0=0&tmod=0&duration=60&separation=100&rate=8000

 

I usually let them generate to be ten minutes or so and listen to them in headphones.

 

I’ve also ported somewhat like that to an ATtiny13 and ATTiny85, the later running an Arduino core. I will use that for the throw synth’s in trees project. Wich needs a better name.

And I’ve also made an iPhone program using this technique, let’s see if that will ever be something that I can release.

 

3 thoughts on “Experimental music from very short C programs

  1. hell yeah on the iphone thing. If you are worried about the apple rules, don’t, there are plenty of examples of glsl interpreters on the phone.

    How did you manage to make a c interpreter though?

  2. What a fun! Thanks! I hope anti-evil, anti-selfish, anti-greed fun-loving playful and creative people live long without aging-to-die. I hope you realize that “anything just exist” is the miracle bu the fact. The guidance for your eternal live below in return.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    [ The overlooked most important Truth ] by Otomakas

    It is not possible for you to know that “you are to die” as a fact, despite of you can assume and believe so. Anyone’s death only can show the facts that the one has died and others could also die. But it could never be the proof for anyone who still alive is going to die.

    When you meet anyone’s death you may think that “you may also die” but should not think nor believe that “you are also to die”.

    “Truth” is that neither of the future events “you may die” nor “you may not die” is possible to be known as fact. As the both of them are equally valid option for you to believe, you should believe “you may not have to die”. Ref: tenpage.pwp.blueyonder.co.uk/en/welcome.html

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    [ Preacher of Death ]

    There are many who carelessly say “Everyone is dying” as if it is the truth despite of the knowable fact that one only can assume and believe so but can never know it as a fact. Of course if you believe so you cannot complain if you die.

    Yet it is knowable to anyone that children had no such belief when they freshly started their lives. Despite of the fact if you teach children to believe “Everyone is dying” as if it is the truth, your death shall be the consequence for it only naturally. So I wish you not do that.

    *Otomakas, who has conquered the death for everyone on Earth, calls ones who voice “Everyone is dying” in public “preachers of death”, and says “Your death never was the God’s wish in gifting your life awareness which does not want to die”.
    * tenpage.pwp.blueyonder.co.uk/en/welcome.html
    music: tenpage.pwp.blueyonder.co.uk/en/godoten.html

Leave a Reply