Steffen Hönig
Shared posts
30 Jun 18:20
guitar synthesizer in one line of C
by tehdog
Steffen Hönigtotally awesome
$ f=220;echo "int s=16e3/$f;main(i){unsigned char v[s];read(0,v,s);for(;;)putchar(v[i%s]=(v[i%s]+v[++i%s])/2);}"|gcc -x c -&&./a.out</dev/urandom|aplay -d 2
outputs a f=220Hz guitar string sound (fifth string A)
needs ALSA
by David Winterbottom (codeinthehole.com)
schtzngrmm and -1 others like this
No more posts. Check out what's trending.