diff options
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 |