From 0daa0360d510e2a1b32eb55f856933aadf69061f Mon Sep 17 00:00:00 2001 From: bnewbold Date: Thu, 13 Dec 2012 22:43:14 +0100 Subject: initial commit --- bin/bytebeat.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 bin/bytebeat.sh (limited to 'bin') 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 -- cgit v1.2.3