Experimental music from very short C programs
category: code [glöplog]
The Flash tool has been improved, now with visualization!
http://entropedia.co.uk/generative_music/#(t%26t%25255)-(t%3E%3E6%26t%3E%3E13%26t)
http://entropedia.co.uk/generative_music/#(t%26t%25255)-(t%3E%3E6%26t%3E%3E13%26t)
Oops... The correct tittle should be "Our Friends from Orion's Belt".
:D
:D
Great tool, btw!
Very interesting...
"Our Friends from Orion's Belt", visual mode:
http://entropedia.co.uk/generative_music/#((t%260xF00D)%3F(t%26(t%3E%3E7)%3F(t%3E%3E2%2F(t%3E%3E7-(t%3E%3E13)))%3At-t%3E%3E7%2B(t%3E%3E13))%3A(t*3)%3E%3E11)
"Our Friends from Orion's Belt", visual mode:
http://entropedia.co.uk/generative_music/#((t%260xF00D)%3F(t%26(t%3E%3E7)%3F(t%3E%3E2%2F(t%3E%3E7-(t%3E%3E13)))%3At-t%3E%3E7%2B(t%3E%3E13))%3A(t*3)%3E%3E11)
Sierpinski triangles:
http://entropedia.co.uk/generative_music/#%20%28t%3C%3C1|t%3E%3E4%29
http://entropedia.co.uk/generative_music/#%20%28t%3C%3C1|t%3E%3E4%29
Almost any formula with ANDs or ORs in it plots some sierpinski tirangles :)
I'm not clicking any more of ham's links with headphones on
para: You should put your headphones in a moderate volume when you try those experiments. (I have mines at 40% now)
Coded Transmitter: ((t%5)*(0xBADF00D>>(t>>9)&0xC)|t>>11)+(((t>>3)*5)&0xC4)>>3
http://entropedia.co.uk/generative_music/#%28%28t%2542%29*%28t%3E%3E4%29|%280x15483113%29-%28t%3E%3E4%29%29%2F%28t%3E%3E16%29^%28t|%28t%3E%3E4%29%29
Still b0rked. You've got a space between 154 and 831, and probably some other encoding errors too.
Ok I give up with the links, sorry for the noise ;)
((t%42)*(t>>4)|(0x15483113)-(t>>4))/(t>>16)^(t|(t>>4))
((t%42)*(t>>4)|(0x15483113)-(t>>4))/(t>>16)^(t|(t>>4))
the visualization is pointless. kills the experiment and the code sounds a lil off. and @tundrah WTF eww!!!! :D
RRROLLA RULEZZZ ! Seriously. I stole his pattern and now I feel like the richest nerd in the world
"The fall of Derp Herp" t*(0x13371337>>(t>>13&27)&127)|t>>4|t<<5
"The fall of Derp Herp" t*(0x13371337>>(t>>13&27)&127)|t>>4|t<<5
another take on simplifying mu6k's thing :)
sin(2000/(y=t&4095))*25+((x=t*(15&0x9866>>(t>>12&12))/6)&127)*(y/1e+4)+((t>>6^t>>8|t>>12|x)&63)
sin(2000/(y=t&4095))*25+((x=t*(15&0x9866>>(t>>12&12))/6)&127)*(y/1e+4)+((t>>6^t>>8|t>>12|x)&63)
what was i thinking!
sin(2e3/(y=t&4095))*25+(x=t*(15&0x9866>>(t>>12&12))/6&127)*y/1e4+((t>>6^t>>8|t>>12|x)&63)
ok i'll stop flogging this dead horse now :)
sin(2e3/(y=t&4095))*25+(x=t*(15&0x9866>>(t>>12&12))/6&127)*y/1e4+((t>>6^t>>8|t>>12|x)&63)
ok i'll stop flogging this dead horse now :)
variable assignment? well, that changes everything...
and another thing for when you're targeting javascript only: array literals!
but don't tell anyone!!!1111
Code:
[6,6,8,9][t>>14&3]
but don't tell anyone!!!1111
that works in C too
btw ryg, that song you composed is pretty amazing!
Code:
"\x6\x6\x8\x9"[t>>14&3]
btw ryg, that song you composed is pretty amazing!
not mine, sadly :)
a bit better: (well, for oneliners anyway)
<code>"6689'[t>>14&3]-48</code>
and has obvious generalization to alphabetical chars if you need more range than just 0..9
a bit better: (well, for oneliners anyway)
<code>"6689'[t>>14&3]-48</code>
and has obvious generalization to alphabetical chars if you need more range than just 0..9
bbcode fail! well, you get the idea.