diff options
author | bnewbold <bnewbold@robocracy.org> | 2012-12-13 22:43:14 +0100 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2012-12-13 22:43:14 +0100 |
commit | 0daa0360d510e2a1b32eb55f856933aadf69061f (patch) | |
tree | b37b8b25690af0ac1e277e5d5cb46c8fd2551a80 /bin | |
download | bytetunes-0daa0360d510e2a1b32eb55f856933aadf69061f.tar.gz bytetunes-0daa0360d510e2a1b32eb55f856933aadf69061f.zip |
initial commit
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/bytebeat.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/bytebeat.sh b/bin/bytebeat.sh new file mode 100755 index 0000000..71c614b --- /dev/null +++ b/bin/bytebeat.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env sh + +FORMULA="(t>>6)&(2*t)&(t>>1)" + +if [ $1 ]; then + FORMULA=$1 +fi + + +echo "$FORMULA" +echo "main(t){for(t=0;;t++)putchar($FORMULA);}" | gcc -x c -o /tmp/bytebeat - && /tmp/bytebeat | aplay -f U8 -r 8000 -c 1 -q |