nonfungible's capsule
________________
,--.
|oo |
|~~ |
|/\/\|
________________
Links
Gemini Protocol Resources
Recommended Browsers
Books
Searching and Directories
Other
Miscellaneous
Here is a one-liner that plays a tune:
printf '%s\n' '#include' 'static unsigned char g(int i,int x,int t,int o){const char *tbl=(3&(i>>16))? "BY}6YB6$":"Qj}6jQ6%";int v=i*(tbl[t%8]+51);return (unsigned char)(((3&x&(v>>o))<<4)&0xFF);}' 'int main(void){for(int i=0;;++i){int n=i>>14;int s=i>>17;unsigned char b=g(i,1,n,12)+g(i,s,n^(i>>13),10)+g(i,s/3,n+((i>>11)%3),10)+g(i,s/5,8+n-((i>>10)%3),9);if(putchar(b)==EOF) return 0;}return 0;}' > /tmp/tone.c && gcc -x c -O2 -o /tmp/tone /tmp/tone.c && /tmp/tone | ffplay -f u8 -ar 8000 -nodisp -
I got it from the following link, but modified it: