bytebeat.txt 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. These are my experiments with bytebeat. I don't believe copyright can be
  2. claimed on bytebeat formulas, but just in case I release everything here
  3. under CC0 1.0 public domain
  4. (https://creativecommons.org/publicdomain/zero/1.0/).
  5. Miloslav "drummyfish" Ciz
  6. ---------------------------------------------------
  7. (-1 + (t / 256) * 2) * t <-- wow
  8. (t * t) >> 10 <-- seems same
  9. ((t & 128) ? t : -t) >> 5 <-- pulses
  10. t >> 1 + t >> 3 | (t >> 5)
  11. ((t & 128) ? t : -t) & 0xf0 <--- squares
  12. (t & 4096) ? 100 : 0 <--- click beat
  13. ((t & 256) ? t : -t) >> 3 <---- triangle
  14. ((t & 0x00ff) > 127) ? (t >> 3) : (~t >> 5)
  15. t >> 4 + (t & 2048 ? ((t * t) >> 7) & (t << 2) : ((t << 1) | (t << 3))) <--- snare
  16. t >> 4 + (t & 4096 ? (t >> 9 | (t + 70)) : (t << 3 + t << 1)) <--- funny
  17. (t >> 4 + (t & 4096 ? (t >> 9 + t + 70) : (t << 3 + t << 2))) | (t >> 9) <--- cool
  18. t >> 1 + t >> 4 | (t >> 7) | ~t
  19. t >> (t & 8)
  20. (t & 128 ? (t * t) >> 5 : (t * t) >> 7) + t >> 6 & t >> 5 | (t * t) >> 12 <--- car engine
  21. t >> 4 + (t & 2048 ? ((t * t) >> 16) & (t << 2) : 0) <--- slap
  22. (t & 4096 ? (t * t) >> 5 : 0) | (t * t) >> 20 <--- funny sounds
  23. (((t & 128) ? t : -t) & 0xf0) << 1 & (t >> 7) <--- square music
  24. (((t & 128) ? t : -t) & 0xf0) << 1 & (t >> 7) | (t >> 6) + (t & 0x03)
  25. (t >> 9) & (t ^ (t << 1)) | ((~t) >> 10)
  26. (t >> 7) + (t ^ (t << 1)) | ((~t) >> 10)
  27. t >> 14 | (t >> 6) | (t >> 8) | (~t << 1) | ~t
  28. (t >> (t & 2)) & (~t >> 5) & (t >> 9) | (t >> 5)
  29. ((t * t) >> 8) & ((t * t) >> 4) | (~t >> 5)
  30. ((t * t) >> 8) & ((t * t) >> 4) | (~t >> 5) & (t >> 2)
  31. ((t * t) >> 5) & (t >> 3) | (t >> 5)
  32. (t >> (t >> 6)) & (t * t) >> (-t) <--- clicking
  33. ((t * t) >> 7) & (t >> 3) | (t >> 4) - (t >> 5) - (t >> 6)
  34. ((t >> 8) + (t ^ (t << 1))) | 0xee <--- bell
  35. ((t * t) >> 7) & ((t << 3) & (t >> 5))
  36. (t * 3) & ((t * 5) >> 8) ^ (t * 6) & (t >> 9)
  37. 0x0f ^ t & (t >> 9) | (t & 0x07) - (((t & 0xff) >> t) & (t >> 6)) | t >> 6 <--- good
  38. ((t * 7) >> 1) ^ ((t * t) >> (t >> 9))
  39. ((t * 7) >> 12) ^ ((t * t) >> (t >> 5)) & (t >> 5) & (t * t) >> 6
  40. (((t & 256) ? t : -t) >> 8) ^ (t >> ((t >> 10) & 0x08))
  41. (((t * 5) >> 7) - ((t * 3) >> 6)) ^ (t >> 11) <--- beat
  42. ((t * t) >> 12) & ((t << 5) & (t >> 7)) ^ (t >> 7)
  43. (0xff >> ((t >> 13) & 0x03)) <--- beat
  44. (t >> 4) ^ (0x73 >> ((t >> 12) & 0x03))
  45. (t & (0x01 << (t >> 10)) ? (t >> 5) : (t >> 7))
  46. (t & (0x01 << (t >> 11)) ? ((t >> t) & 0xcf) : (t >> 3))
  47. (((t + (t >> 6)) ^ t)) + ((~t * 5) >> 9) + ((~t * 3) >> 8)
  48. t >> (t >> 2) <---- voice
  49. (t >> (t >> 2)) + (t >> (t >> 9)) | (t >> 4) <--- heavy beat
  50. (t >> (t >> 2)) + (t >> (t >> 9)) | (t >> 4) + (0x01 << (t >> 1)) <--- aborigines
  51. ((t >> (t >> 2)) + (t >> (t >> 7))) >> 4 <--- bass + drums
  52. (((t >> (t >> 2)) + (t >> (t >> 7)))) & 0x3f
  53. (((t >> (t >> 2)) + (t >> (t >> 7)))) & 0x3f | (t >> 5) <--- another beat
  54. (t + 1000) & (t + 116) | ((t * 5) + 230) <--- kinda chord
  55. (t + ((t >> 9) & 0x0fff)) ^ (t + ((t >> 7) & 0x0fff)) | ((t * 3) + (t >> 10)) <--- organ
  56. (t + ((t >> 12) & 0x01fa)) ^ (t + ((t >> 7) & 0x0af7)) | ((t >> 10)) & ((t * 3) >> 7) & ~((t * 6) >> 10)
  57. (t >> (t & 0x8)) >> 4 <--- melodic rythm
  58. ((t * 3) ^ ((t * 6) >> 10) ^ ~t | (t >> 6))
  59. (((t * t) >> 6) & ((t << 4) & (t >> 6))) | ((((t * 3) >> 5) - ((t * 3) >> 6)))
  60. (t + (((t >> 13) & 0x05) * 110)) ^ (t + (((t >> 10) & 0x0e) * 641))
  61. (t ^ (t - ((t >> 12) & 0x0f) * 76)) & 0x30
  62. (t & (1 << (((t >> 10) ^ ((t >> 10) << 4))))) <---- number 4 changes melody
  63. (t & (5 << (((t >> 10) + ((t >> 10) << 4)))))
  64. (t & (3 << (((t >> 10) ^ ((t >> 10) << (t >> 1)))))) <---- nice melody
  65. (t & (3 << (((t >> 10) ^ ((t >> 10) << (t >> 6))))))
  66. (( ((t * t) ^ (t - 100)) >> 22 ) >> (t >> 8)) <---- C scale can be heard in this, WTF
  67. ((((t * t) - ((t * t) >> 1)) >> 22) >> (t >> 6)) <---- string
  68. (t >> (t & (t + 6))) >> 4
  69. (((((t * t) - ((t * t) >> 1)) >> 20) >> (t >> 6))) ^ ((t ^ (t + ((t >> 14) & 0x0f) * 68)) & 0x70) >> 4
  70. GOOD COMPLETE:
  71. --------------
  72. ((t >> 7 + t >> 5) | (t >> 7) | t ^ ((t * 3) >> 10)) & (t & 65536 ? (((t * t) >> 16) & 0x0f) : 0xff)
  73. ((t >> 6) | (t >> 8) | (~t << 1) | t) & (t & 65536 ? (((t * t) >> 16) & 0x0f) : 0xff)
  74. (((t & 128) ? t : -t) & 0xf6) << 2 & (t >> 9) | (t >> 6) + (t & 0x03)
  75. (t >> 10) & (((t + 20) ^ t) | (~t >> 10)) + ((t & 4096) ? 100 : 0)
  76. 0x0f ^ t & (t >> 9) | (t & 0x07) - (((t & 0xff) >> t) & (t >> 6)) | t >> 7
  77. (t >> 4 + ((t & 4096) ? (t >> 3 + t) : (t << 3 + t << 4))) | (t >> 9) & (t >> 1)
  78. (t & 2048 ? t : 0) + (t & 4096 ? t >> 7 : (t << 3 - t)) & (t & 8192 ? t >> 9 : 0x03)
  79. (t >> 1 & 0xa7) | (~t >> 8) ^ ((t * t) >> 14) & 0x1f & (t >> 8)
  80. (((t & 256) ? t : -t) & 0xf0) & ~(t >> 9) | (t >> 6) + ~((t << 2) & 0x07)
  81. (t * 3) & ((t * 5) >> 8) ^ (t * 7) & (t >> 10)
  82. (t >> 12) ^ (t >> (t >> 5)) & (t >> 6) & (t * t) >> 18
  83. ((((t * 5) >> 7) - ((t * 3) >> 6)) ^ (t >> 11)) >> ((t >> 13) & 0x05)
  84. ((t >> 9) ^ (t >> (t >> 5)) & (t >> 4) & (t * t) >> 10) & (0xff >> (t >> 17))
  85. (t >> 6) | (0x73 >> ((t >> 16) & 0x03)) + (((t >> 6) ^ ((t * t) >> 13) | (t >> 4)) & 0x05)
  86. ((((t >> 7) + (t ^ (t << 1)) | ((~t) >> 11)) & 0x3e) >> 2) | (t >> 11)
  87. ((t >> 7) & (((t + (t >> 6)) ^ t)) | ((~t >> 10)) + ((t & 4096) ? 100 : 0) & 0xcf)
  88. (((t - (t >> 6)) ^ t)) + ((t * 5) >> 8) | ((~t * 3) >> 7) & ((t * 6) << 2)
  89. (((t >> (t >> 2)) + (t >> (t >> 7)))) & 0x3f | (t >> 5) | (t >> 11)
  90. (((t >> (t >> 2)) + (t >> (t >> 7)))) & 0x3f | (t >> 5) | (99 << (t >> 12))
  91. (t + ((t >> 12) & 0x01fa)) ^ (t + ((t >> 7) & 0x0af7)) | ((t >> 8)) & (t >> 9)
  92. (((t & 256) ? t : -t) >> 8) ^ (t >> ((t >> 10) & 0x78))
  93. (t + (((t >> 12) & 0x72) * 17)) ^ (t + (((t >> 10) & 0x5e) * 641))
  94. ((((t >> (t >> 2)) + (t >> (t >> 7)))) & 0x3f | (t >> 5) | (t >> 11)) & (t & (32768 | 8192) ? 0xf0 : 0x30)
  95. EXTENDED:
  96. ---------
  97. (t >> y[3]) + (t ^ (t << 1)) | ((~t) >> 9)
  98. (y[0] & (512 + 1024)) ? (t >> 2) : (t >> 3)
  99. (t >> (y[0] & 0x3)) >> 3
  100. (t >> (y[0] & 0x7)) >> 7 <---- long unrepeated random beeping
  101. (t >> (y[0] & 0x0a)) >> 2 <---- sounds cool
  102. a = ((t >> 7) | (t >> 9) | (~t << 1) | t); ((t) & 65536 ? (a & (((t * t) >> 16) & 0x09)) : ~a)