News for hackers. Stuff that matters.
Re:Algorithmic symphonies from one line of code (2011) by raflemakt on Friday September 17, 2021 @06:00AM (#28563343)
Here's an example to get you started. Compile and run with ./progname | tee /dev/tty | aplay

you can also pipe it into other programs like xxd: ./progname | xxd | tee /dev/tty | aplay

#include <stdio.h>

#include <math.h>

int main()

{

  int t;

  for ( t=0; ; t++ ) putchar( t*((t>>7|t>>13)&73&t>>6) );  
}

There are no comments on this comment yet.