123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166 |
- These are my experiments with bytebeat. I don't believe copyright can be
- claimed on bytebeat formulas, but just in case I release everything here
- under CC0 1.0 public domain
- (https://creativecommons.org/publicdomain/zero/1.0/).
- Miloslav "drummyfish" Ciz
- ---------------------------------------------------
- (-1 + (t / 256) * 2) * t <-- wow
- (t * t) >> 10 <-- seems same
- ((t & 128) ? t : -t) >> 5 <-- pulses
- t >> 1 + t >> 3 | (t >> 5)
- ((t & 128) ? t : -t) & 0xf0 <--- squares
- (t & 4096) ? 100 : 0 <--- click beat
- ((t & 256) ? t : -t) >> 3 <---- triangle
- ((t & 0x00ff) > 127) ? (t >> 3) : (~t >> 5)
- t >> 4 + (t & 2048 ? ((t * t) >> 7) & (t << 2) : ((t << 1) | (t << 3))) <--- snare
- t >> 4 + (t & 4096 ? (t >> 9 | (t + 70)) : (t << 3 + t << 1)) <--- funny
- (t >> 4 + (t & 4096 ? (t >> 9 + t + 70) : (t << 3 + t << 2))) | (t >> 9) <--- cool
- t >> 1 + t >> 4 | (t >> 7) | ~t
- t >> (t & 8)
- (t & 128 ? (t * t) >> 5 : (t * t) >> 7) + t >> 6 & t >> 5 | (t * t) >> 12 <--- car engine
- t >> 4 + (t & 2048 ? ((t * t) >> 16) & (t << 2) : 0) <--- slap
- (t & 4096 ? (t * t) >> 5 : 0) | (t * t) >> 20 <--- funny sounds
- (((t & 128) ? t : -t) & 0xf0) << 1 & (t >> 7) <--- square music
- (((t & 128) ? t : -t) & 0xf0) << 1 & (t >> 7) | (t >> 6) + (t & 0x03)
- (t >> 9) & (t ^ (t << 1)) | ((~t) >> 10)
- (t >> 7) + (t ^ (t << 1)) | ((~t) >> 10)
- t >> 14 | (t >> 6) | (t >> 8) | (~t << 1) | ~t
- (t >> (t & 2)) & (~t >> 5) & (t >> 9) | (t >> 5)
- ((t * t) >> 8) & ((t * t) >> 4) | (~t >> 5)
- ((t * t) >> 8) & ((t * t) >> 4) | (~t >> 5) & (t >> 2)
- ((t * t) >> 5) & (t >> 3) | (t >> 5)
- (t >> (t >> 6)) & (t * t) >> (-t) <--- clicking
- ((t * t) >> 7) & (t >> 3) | (t >> 4) - (t >> 5) - (t >> 6)
- ((t >> 8) + (t ^ (t << 1))) | 0xee <--- bell
- ((t * t) >> 7) & ((t << 3) & (t >> 5))
- (t * 3) & ((t * 5) >> 8) ^ (t * 6) & (t >> 9)
- 0x0f ^ t & (t >> 9) | (t & 0x07) - (((t & 0xff) >> t) & (t >> 6)) | t >> 6 <--- good
- ((t * 7) >> 1) ^ ((t * t) >> (t >> 9))
- ((t * 7) >> 12) ^ ((t * t) >> (t >> 5)) & (t >> 5) & (t * t) >> 6
- (((t & 256) ? t : -t) >> 8) ^ (t >> ((t >> 10) & 0x08))
- (((t * 5) >> 7) - ((t * 3) >> 6)) ^ (t >> 11) <--- beat
- ((t * t) >> 12) & ((t << 5) & (t >> 7)) ^ (t >> 7)
- (0xff >> ((t >> 13) & 0x03)) <--- beat
- (t >> 4) ^ (0x73 >> ((t >> 12) & 0x03))
- (t & (0x01 << (t >> 10)) ? (t >> 5) : (t >> 7))
- (t & (0x01 << (t >> 11)) ? ((t >> t) & 0xcf) : (t >> 3))
- (((t + (t >> 6)) ^ t)) + ((~t * 5) >> 9) + ((~t * 3) >> 8)
- t >> (t >> 2) <---- voice
- (t >> (t >> 2)) + (t >> (t >> 9)) | (t >> 4) <--- heavy beat
- (t >> (t >> 2)) + (t >> (t >> 9)) | (t >> 4) + (0x01 << (t >> 1)) <--- aborigines
- ((t >> (t >> 2)) + (t >> (t >> 7))) >> 4 <--- bass + drums
- (((t >> (t >> 2)) + (t >> (t >> 7)))) & 0x3f
- (((t >> (t >> 2)) + (t >> (t >> 7)))) & 0x3f | (t >> 5) <--- another beat
- (t + 1000) & (t + 116) | ((t * 5) + 230) <--- kinda chord
- (t + ((t >> 9) & 0x0fff)) ^ (t + ((t >> 7) & 0x0fff)) | ((t * 3) + (t >> 10)) <--- organ
- (t + ((t >> 12) & 0x01fa)) ^ (t + ((t >> 7) & 0x0af7)) | ((t >> 10)) & ((t * 3) >> 7) & ~((t * 6) >> 10)
- (t >> (t & 0x8)) >> 4 <--- melodic rythm
- ((t * 3) ^ ((t * 6) >> 10) ^ ~t | (t >> 6))
- (((t * t) >> 6) & ((t << 4) & (t >> 6))) | ((((t * 3) >> 5) - ((t * 3) >> 6)))
- (t + (((t >> 13) & 0x05) * 110)) ^ (t + (((t >> 10) & 0x0e) * 641))
- (t ^ (t - ((t >> 12) & 0x0f) * 76)) & 0x30
- (t & (1 << (((t >> 10) ^ ((t >> 10) << 4))))) <---- number 4 changes melody
- (t & (5 << (((t >> 10) + ((t >> 10) << 4)))))
- (t & (3 << (((t >> 10) ^ ((t >> 10) << (t >> 1)))))) <---- nice melody
- (t & (3 << (((t >> 10) ^ ((t >> 10) << (t >> 6))))))
- (( ((t * t) ^ (t - 100)) >> 22 ) >> (t >> 8)) <---- C scale can be heard in this, WTF
- ((((t * t) - ((t * t) >> 1)) >> 22) >> (t >> 6)) <---- string
- (t >> (t & (t + 6))) >> 4
- (((((t * t) - ((t * t) >> 1)) >> 20) >> (t >> 6))) ^ ((t ^ (t + ((t >> 14) & 0x0f) * 68)) & 0x70) >> 4
- GOOD COMPLETE:
- --------------
- ((t >> 7 + t >> 5) | (t >> 7) | t ^ ((t * 3) >> 10)) & (t & 65536 ? (((t * t) >> 16) & 0x0f) : 0xff)
- ((t >> 6) | (t >> 8) | (~t << 1) | t) & (t & 65536 ? (((t * t) >> 16) & 0x0f) : 0xff)
- (((t & 128) ? t : -t) & 0xf6) << 2 & (t >> 9) | (t >> 6) + (t & 0x03)
- (t >> 10) & (((t + 20) ^ t) | (~t >> 10)) + ((t & 4096) ? 100 : 0)
- 0x0f ^ t & (t >> 9) | (t & 0x07) - (((t & 0xff) >> t) & (t >> 6)) | t >> 7
- (t >> 4 + ((t & 4096) ? (t >> 3 + t) : (t << 3 + t << 4))) | (t >> 9) & (t >> 1)
- (t & 2048 ? t : 0) + (t & 4096 ? t >> 7 : (t << 3 - t)) & (t & 8192 ? t >> 9 : 0x03)
- (t >> 1 & 0xa7) | (~t >> 8) ^ ((t * t) >> 14) & 0x1f & (t >> 8)
- (((t & 256) ? t : -t) & 0xf0) & ~(t >> 9) | (t >> 6) + ~((t << 2) & 0x07)
- (t * 3) & ((t * 5) >> 8) ^ (t * 7) & (t >> 10)
- (t >> 12) ^ (t >> (t >> 5)) & (t >> 6) & (t * t) >> 18
- ((((t * 5) >> 7) - ((t * 3) >> 6)) ^ (t >> 11)) >> ((t >> 13) & 0x05)
- ((t >> 9) ^ (t >> (t >> 5)) & (t >> 4) & (t * t) >> 10) & (0xff >> (t >> 17))
- (t >> 6) | (0x73 >> ((t >> 16) & 0x03)) + (((t >> 6) ^ ((t * t) >> 13) | (t >> 4)) & 0x05)
- ((((t >> 7) + (t ^ (t << 1)) | ((~t) >> 11)) & 0x3e) >> 2) | (t >> 11)
- ((t >> 7) & (((t + (t >> 6)) ^ t)) | ((~t >> 10)) + ((t & 4096) ? 100 : 0) & 0xcf)
- (((t - (t >> 6)) ^ t)) + ((t * 5) >> 8) | ((~t * 3) >> 7) & ((t * 6) << 2)
- (((t >> (t >> 2)) + (t >> (t >> 7)))) & 0x3f | (t >> 5) | (t >> 11)
- (((t >> (t >> 2)) + (t >> (t >> 7)))) & 0x3f | (t >> 5) | (99 << (t >> 12))
- (t + ((t >> 12) & 0x01fa)) ^ (t + ((t >> 7) & 0x0af7)) | ((t >> 8)) & (t >> 9)
- (((t & 256) ? t : -t) >> 8) ^ (t >> ((t >> 10) & 0x78))
- (t + (((t >> 12) & 0x72) * 17)) ^ (t + (((t >> 10) & 0x5e) * 641))
- ((((t >> (t >> 2)) + (t >> (t >> 7)))) & 0x3f | (t >> 5) | (t >> 11)) & (t & (32768 | 8192) ? 0xf0 : 0x30)
- EXTENDED:
- ---------
- (t >> y[3]) + (t ^ (t << 1)) | ((~t) >> 9)
- (y[0] & (512 + 1024)) ? (t >> 2) : (t >> 3)
- (t >> (y[0] & 0x3)) >> 3
- (t >> (y[0] & 0x7)) >> 7 <---- long unrepeated random beeping
- (t >> (y[0] & 0x0a)) >> 2 <---- sounds cool
- a = ((t >> 7) | (t >> 9) | (~t << 1) | t); ((t) & 65536 ? (a & (((t * t) >> 16) & 0x09)) : ~a)
|