Guest User

Untitled

a guest
May 24th, 2018
155
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2. var t, output;
  3. t = PulseCount.ar(Impulse.ar(8000));
  4.  
  5.  
  6. }.play
  7.  
  8.  
  9.  
  10.  
  11. // 8-bit magic
  12. (
  13. play {
  14. var srate, bitdepth, r, t;
  15. srate = 8000;
  16. bitdepth = 2**8;
  17.  
  18. t = PulseCount.ar(Impulse.ar(srate));
  19. HPF.ar(
  20. (
  21. ((t * 15) & (t >> 5)) |
  22. ((t * 5) & (t >> [3, 4])) |
  23. ((t * 2) & (t >> 9)) |
  24. ((t * 8) & (t >> 11))
  25. - 3 % (bitdepth)
  26. ) / (bitdepth/2 -1) -1 * 3
  27. , 20
  28. ).tanh
  29. }
  30. )
  31.  
  32.  
  33. // 8-bit magic
  34. (
  35. {
  36. var srate, bitdepth, r, t;
  37. srate = 8000;
  38. bitdepth = 2**8;
  39.  
  40. t = PulseCount.ar(Impulse.ar(srate));
  41. t = ((t * 15) & (t >> 5)) |
  42. ((t * 5) & (t >> [3, 4])) |
  43. ((t * 2) & (t >> 9)) |
  44. ((t * 8) & (t >> 11))
  45. - 3;
  46.  
  47. t = (t% (bitdepth)) / (bitdepth/2 -1) -1 * 3;
  48. HPF.ar(t, 20).tanh
  49. }.play
  50. )
  51.  
  52. // 8-bit magic
  53. (
  54. {
  55. var srate, bitdepth, r, t, x;
  56. srate = 8000;
  57. bitdepth = 3**7;
  58. t = PulseCount.ar(Impulse.ar(srate));
  59.  
  60. // t = (t*3) | (t >> 7) & (t >> 6) & (t >> 5);
  61.  
  62. t = (t*3) | (t / (3**7)).floor;
  63.  
  64. /* t = ((t * 15) & (t >> 5)) |
  65. ((t * 5) & (t >> [3, 4])) |
  66. ((t * 2) & (t >> 9)) |
  67. ((t * 8) & (t >> 11))
  68. - 3;*/
  69.  
  70. t = (t % (bitdepth)) / (bitdepth/2 -1) -1 * 3;
  71. HPF.ar(t, 20).tanh
  72. }.scope
  73. )
  74.  
  75.  
  76. // migos flow
  77. (
  78. {
  79. var srate, bitdepth, r, t, x;
  80. srate = 8000;
  81. bitdepth = 3**5;
  82. t = PulseCount.ar(Impulse.ar(srate));
  83.  
  84. // t = (t*3) | (t >> 7) & (t >> 6) & (t >> 5);
  85.  
  86. t = (t*3) | (t >>7);
  87.  
  88. /* t = ((t * 15) & (t >> 5)) |
  89. ((t * 5) & (t >> [3, 4])) |
  90. ((t * 2) & (t >> 9)) |
  91. ((t * 8) & (t >> 11))
  92. - 3;*/
  93.  
  94. t = (t % (bitdepth)) / (bitdepth/2 -1) -1 * 3;
  95. HPF.ar(t, 20).tanh
  96. }.scope
  97. )
  98.  
  99. // 8-bit magic
  100. (
  101. {
  102. var srate, bitdepth, t, x;
  103. srate = 8000;
  104. bitdepth = 3**5;
  105. t = PulseCount.ar(Impulse.ar(srate));
  106.  
  107. // t = (t*3) | (t >> 7) & (t >> 6) & (t >> 5);
  108.  
  109. //t = (t*3) | (t << 24);
  110. t = (t*3) ;
  111. t = (t * 3) | (t >> 12);
  112.  
  113.  
  114. /* t = ((t * 15) & (t >> 5)) |
  115. ((t * 5) & (t >> [3, 4])) |
  116. ((t * 2) & (t >> 9)) |
  117. ((t * 8) & (t >> 11))
  118. - 3;*/
  119.  
  120. t = (t % (bitdepth)) / (bitdepth/2 -1) -1 * 3;
  121. HPF.ar(t, 20).tanh
  122. }.freqscope
  123. )
  124.  
  125.  
  126. // 8-bit magic
  127. (
  128. {
  129. var srate, bitdepth, out, t, x;
  130. srate = 8000;
  131. bitdepth = 3**5;
  132. t = PulseCount.ar(Impulse.ar(srate));
  133.  
  134. // t = (t*3) | (t >> 7) & (t >> 6) & (t >> 5);
  135.  
  136. //t = (t*3) | (t << 24);
  137. t = (t*3) ;
  138. t = (t * 3) | (t >> 12);
  139.  
  140.  
  141. /* t = ((t * 15) & (t >> 5)) |
  142. ((t * 5) & (t >> [3, 4])) |
  143. ((t * 2) & (t >> 9)) |
  144. ((t * 8) & (t >> 11))
  145. - 3;*/
  146.  
  147. t = (t % (bitdepth)) / (bitdepth/2 -1) -1 * 3;
  148.  
  149. out = HPF.ar(t, 20).tanh;
  150. out = out + CombC.ar(out, 0.2, 0.6)/2;
  151. Out.ar(0, out);
  152. }.freqscope
  153. )
  154.  
  155.  
  156. 8 >> 0;
  157. 246.
RAW Paste Data