Guest User

Max2023 - Liver Chase

a guest
May 11th, 2023
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. // Liver Chase
  2.  
  3. t/=5,
  4.  
  5. c=523.25, // C note
  6.  
  7. cs=554.36, // C# note
  8.  
  9. e=659.26, // E note
  10.  
  11. g=784, // G note
  12.  
  13. L=(((((((((t*[cs,e,cs,g,cs,e,cs,c][(t>>14)%8]/(t&2<<16?440:220)*(3-(1&t>>9))>>(3&t>>8)|t>>([5,4,4,4,4,4,4,3,4,4,4,3,4,4,4,4,5,4,4,4,4,4,4,3,5,4,4,4,5,4,4,4][(t>>12)%32]))&127)+ // main melody
  14.  
  15. (3E5/(t&4095)&128-64)+ // kick (almost not hearable)
  16.  
  17. (random()*(((-t>>([6,5,4,5,5,5,4,5][(t>>12)%8]))%64)+64)))/2+ // snare (also almost not hearable)
  18.  
  19. ((t/4*[cs,e,cs,g,cs,e,cs,c][(t>>14)%8]/(t&2<<16?440:220))&64)+ // square wave
  20.  
  21. (((t/440*[cs,e,cs,g,cs,e,cs,c][(t>>14)%8]%63)+(t/440*[cs,e,cs,g,cs,e,cs,c][(t>>14)%8]%64))/2))/2)+ // phaser(?)
  22.  
  23. ((((sin(19*cbrt((t)%4096))+4*128))|t>>5)&63))+ // kick 2 (also almost not hearable)
  24.  
  25. (random()*[32,0][(t>>9)%2]))/2+ // snare
  26.  
  27. (tan(sin(4e3/(t&4095)))*31+60))/2)+ // kick 3
  28.  
  29. (((t/4*[cs,e,cs,g,cs,e,cs,c][(t>>14)%8]/(t&2<<16?440:220)*(3-(1&t>>9))>>(3&t>>8))|t>>[6,7][(t>>12)%2])&31) // you can hear this
  30.  
  31. +(abs(sin(t*[cs,e,cs,g,cs,e,cs,c][(t>>14)%8]/(t&2<<16?440:220)*(3-(1&t>>9))/120))*32+32) // bass(?)
  32. ,
  33.  
  34. R=(((((((((t*[cs,e,cs,g,cs,e,cs,c][(t>>14)%8]/(t&2<<16?440:220)*(3-(1&t>>9))>>(3&t>>8)|t>>([5,4,4,4,4,4,4,3,4,4,4,3,4,4,4,4,5,4,4,4,4,4,4,3,5,4,4,4,5,4,4,4][(t>>12)%32]))&127)+ // main melody
  35.  
  36. (3E5/(t&4095)&128-64)+ // kick (almost not hearable)
  37.  
  38. (random()*(((-t>>([6,5,4,5,5,5,4,5][(t>>12)%8]))%64)+64)))/2+ // snare (also almost not hearable)
  39.  
  40. ((t/4*[cs,e,cs,g,cs,e,cs,c][(t>>14)%8]/(t&2<<16?440:220))&64)+ // square wave
  41.  
  42. (((t/440*[cs,e,cs,g,cs,e,cs,c][(t>>14)%8]%63)+(t/440*[cs,e,cs,g,cs,e,cs,c][(t>>14)%8]%64))/2))/2)+ // phaser(?)
  43.  
  44. ((((sin(19*cbrt((t)%4096))+4*128))|t>>5)&63))+ // kick 2 (also almost not hearable)
  45.  
  46. (random()*[32,0][(t>>9)%2]))/2+ // snare
  47.  
  48. (tan(sin(4e3/(t&4095)))*31+60))/2)+ // kick 3
  49.  
  50. (((t/4*[cs,e,cs,g,cs,e,cs,c][(t>>14)%8]/(t&2<<16?440:220)*(3-(1&t>>9))>>(3&t>>8))|t>>[6,7][(t>>12)%2])&31) // you can hear this
  51.  
  52. +(abs(sin(t*[cs,e,cs,g,cs,e,cs,c][(t>>14)%8]/(t&2<<16?440:220)*(3-(1&t>>9))/120))*32+32) // bass(?)
  53. ,
  54.  
  55. [L,R] // stereo
Advertisement
Add Comment
Please, Sign In to add comment