4 ms·
I'm reminded of some of my favourite C 1-liners for synthesis: main(t){ for(t=0;;t++) putchar(t*(((t>>12)|(t>>8))&(63&(t>>4))));
by ibisum 12y ago
I'm reminded of some of my favourite C 1-liners for synthesis:
main(t){
for(t=0;;t++)
putchar(t*(((t>>12)|(t>>8))&(63&(t>>4))));
//putchar(t>>7|t%45)&(t>>8|t%35)&(t>>11|t%20); // try this too!
}
.. there's a whole world of 1-liners for synthesis out there, and some of them, frankly, are astounding. Sound is such a beautiful way to understand math ..
- akx 12y agoThese are called bytebeat nowadays. See viznut's (seminal) intro to the genre. http://countercomplex.blogspot.fi/2011/10/algorithmic-symphonies-from-one-line-of.html http://countercomplex.blogspot.fi/2011/10/algorithmic-sympho... https://www.youtube.com/watch?v=GtQdIYUtAHg https://www.youtube.com/watch?v=GtQdIYUtAHg
- ibisum 12y agoThanks for the update - bytebeat sounds like something thats a lot more searchable than 'c one-liners that generate sound' .. ;) Great stuff, eh?