Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const technoRiff1 = [1, 1, 1, 1];
  2. const technoRiff2 = [1, 0.5, 0.5, 1, 0.5, 0.5];
  3. const technoRiff3 = [1, 0.5, 0.5, -1, 0.5, 0.5];
  4. const technoRiff4 = [1, -0.5, 0.5, -1, -0.5, 0.5];
  5. const technoRiff5 = [1, -0.5, 0.5, 1, 0.5, -0.5];
  6. const technoRiff6 = [1, -0.5, 0.5, 1, 0.5, -0.5];
  7. const technoRiff7 = [1, 0.5, 0.5, -1, 0.5, -0.5];
  8. const technoRiff8 = [1, 0.5, 0.5, -1, 1];
  9. const technoRiff9 = [1, -0.5, 0.5, -1, 1];
  10. const technoRiff10 = [1, 0.5, 0.5, 0.125, 0.875, 1];
  11. const technoRiff11 = [0.5, 0.5, 0.5, 0.5, 0.125, 0.875, 0.5, 0.5];
  12. const technoRiff12 = [1, 1, 0.125, 0.875, 1];
  13. const technoRiff13 = [1, 1, 0.125, 0.875, 0.5, 0.5];
  14. const technoRiff14 = [1, 0.5, 0.5, 0.125, 0.875, 0.5, 0.5];
  15. const technoRiff15 = [1, 0.5, 0.5, -0.125, 0.875, 0.5, 0.5];
  16. const technoRiff16 = [1, 0.5, 0.5, 0.125, -0.875, 0.5, 0.5];
  17. const technoRiff17 = [1, 0.5, 0.5, 0.125, 0.875, 0.5, 0.5];
  18. const technoRiff18 = [1, 0.5, -0.5, 0.125, 0.875, -0.5, 0.5];
  19. const technoRiff19 = [1, 0.5, -0.5, 0.125, 0.875, -0.5, 0.5];
  20. const technoRiff20 = [1, -0.5, 0.5, -0.125, 0.875, 0.5, 0.5];
  21.  
  22. function superRhtyhmGenerator() {
  23.  
  24.     let modulator1=4; let modulator2=3;  let a1=0; let a2=0;
  25.  
  26.     for(let i=0; i<160000; i++) {
  27.  
  28.         a1=i%modulator1; a2=i%modulator2; let a3; let a5; let a6; let a7=Math.random()%20;
  29.         if(a1===0 && a2===0) {modulator1+=1; modulator2+=1; modulator1=modulator1%20; modulator2=modulator2%20;}
  30.  
  31.         switch (a1) {
  32.             case 1: a5=technoRiff1; break;
  33.             case 2: a5=technoRiff2; break;
  34.             case 3: a5=technoRiff3; break;
  35.             case 4: a5=technoRiff4; break;
  36.             case 5: a5=technoRiff5; break;
  37.             case 6: a5=technoRiff6; break;
  38.             case 7: a5=technoRiff7; break;
  39.             case 8: a5=technoRiff8; break;
  40.             case 9: a5=technoRiff9; break;
  41.             case 10: a5=technoRiff10; break;
  42.             case 11: a5=technoRiff11; break;
  43.             case 12: a5=technoRiff12; break;
  44.             case 13: a5=technoRiff13; break;
  45.             case 14: a5=technoRiff14; break;
  46.             case 15: a5=technoRiff15; break;
  47.             case 16: a5=technoRiff16; break;
  48.             case 17: a5=technoRiff17; break;
  49.             case 18: a5=technoRiff18; break;
  50.             case 19: a5=technoRiff19; break;
  51.             case 20: a5=technoRiff20; break;
  52.         }
  53.  
  54.         switch (a2) {
  55.             case 1: a6=technoRiff1; break;
  56.             case 2: a6=technoRiff2; break;
  57.             case 3: a6=technoRiff3; break;
  58.             case 4: a6=technoRiff4; break;
  59.             case 5: a6=technoRiff5; break;
  60.             case 6: a6=technoRiff6; break;
  61.             case 7: a6=technoRiff7; break;
  62.             case 8: a6=technoRiff8; break;
  63.             case 9: a6=technoRiff9; break;
  64.             case 10: a6=technoRiff10; break;
  65.             case 11: a6=technoRiff11; break;
  66.             case 12: a6=technoRiff12; break;
  67.             case 13: a6=technoRiff13; break;
  68.             case 14: a6=technoRiff14; break;
  69.             case 15: a6=technoRiff15; break;
  70.             case 16: a6=technoRiff16; break;
  71.             case 17: a6=technoRiff17; break;
  72.             case 18: a6=technoRiff18; break;
  73.             case 19: a6=technoRiff19; break;
  74.             case 20: a6=technoRiff20; break;
  75.         }
  76.  
  77.         switch (a7) {
  78.             case 1: a3=technoRiff1; break;
  79.             case 2: a3=technoRiff2; break;
  80.             case 3: a3=technoRiff3; break;
  81.             case 4: a3=technoRiff4; break;
  82.             case 5: a3=technoRiff5; break;
  83.             case 6: a3=technoRiff6; break;
  84.             case 7: a3=technoRiff7; break;
  85.             case 8: a3=technoRiff8; break;
  86.             case 9: a3=technoRiff9; break;
  87.             case 10: a3=technoRiff10; break;
  88.             case 11: a3=technoRiff11; break;
  89.             case 12: a3=technoRiff12; break;
  90.             case 13: a3=technoRiff13; break;
  91.             case 14: a3=technoRiff14; break;
  92.             case 15: a3=technoRiff15; break;
  93.             case 16: a3=technoRiff16; break;
  94.             case 17: a3=technoRiff17; break;
  95.             case 18: a3=technoRiff18; break;
  96.             case 19: a3=technoRiff19; break;
  97.             case 20: a3=technoRiff20; break;
  98.         }
  99.  
  100.         console.log(a3 + a6 + a3 + a5);
  101.         console.log(modulator1 + " " + modulator2 + " " + a1 + " " + a2 + " " + a3 + " " + a5 + " " + a6 + " " + a7);
  102.  
  103.     }
  104.  
  105.     return 0;
  106.  
  107. }
  108.  
  109. superRhtyhmGenerator();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement