Editing Bytebeat
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 97: | Line 97: | ||
python -c'import sys;[sys.stdout.write(chr(( t|(((t>>1)%(8+(t>>14)%4))+(t>>6)) )%256)) for t in xrange(2**18)]'|aplay | python -c'import sys;[sys.stdout.write(chr(( t|(((t>>1)%(8+(t>>14)%4))+(t>>6)) )%256)) for t in xrange(2**18)]'|aplay | ||
python -c'import sys;[sys.stdout.write(chr(( t*(3+(t>>10)%(4+(t>>11)%8))|(t>>5) )%256)) for t in xrange(2**20)]'|aplay | python -c'import sys;[sys.stdout.write(chr(( t*(3+(t>>10)%(4+(t>>11)%8))|(t>>5) )%256)) for t in xrange(2**20)]'|aplay | ||
− | |||
− | |||
− | |||
− | |||
From @isislovecruft (#FYB): | From @isislovecruft (#FYB): | ||
Line 107: | Line 103: | ||
python -c'import sys;[sys.stdout.write(chr((((t*(t>>13|t>>8))|(t>>16)^t)-64)%256)) for t in xrange(2**18)]'|aplay | python -c'import sys;[sys.stdout.write(chr((((t*(t>>13|t>>8))|(t>>16)^t)-64)%256)) for t in xrange(2**18)]'|aplay | ||
− | |||
− | |||
− | |||
− | |||
for OSX | for OSX | ||
Line 117: | Line 109: | ||
sox -r 8000 -c 1 -t u8 out.raw out.wav; | sox -r 8000 -c 1 -t u8 out.raw out.wav; | ||
open out.wav | open out.wav | ||
− | |||
− | |||
− | |||
− | |||
=== an attempt with luajit === | === an attempt with luajit === | ||
Line 147: | Line 135: | ||
=== busybox awk === | === busybox awk === | ||
− | + | might work with gawk, dunno. | |
− | |||
− | |||
− | + | throw it to /dev/dsp | |
#!/bin/busybox awk -f | #!/bin/busybox awk -f | ||
Line 160: | Line 146: | ||
} | } | ||
− | + | of course awk will eat your processor alive. | |
+ | |||
+ | alternately from your shell | ||
seq 11111111 | busybox awk '{printf("%c",and($1,rshift($1,8)))}' > /dev/dsp | seq 11111111 | busybox awk '{printf("%c",and($1,rshift($1,8)))}' > /dev/dsp | ||
+ | |||
+ | should also summon cthulhu | ||
=== With Haskell! === | === With Haskell! === | ||
Line 172: | Line 162: | ||
* https://github.com/kragen/pytebeat - Python Bytebeat livecoding software in SDL | * https://github.com/kragen/pytebeat - Python Bytebeat livecoding software in SDL | ||
* http://music.columbia.edu/~douglas/strange_things/?p=78 - Algorithmic beat rotation with the EchoNest API | * http://music.columbia.edu/~douglas/strange_things/?p=78 - Algorithmic beat rotation with the EchoNest API | ||
+ | |||
+ | [[Category:Python]] | ||
+ | [[Category:Lua]] | ||
+ | [[Category:Assembler]] |