Advertisement
Stelpa6

kilobeat.ck

Jun 21st, 2012
431
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. SinOsc sinner => dac;
  2. StifKarp string1 => LPF o => dac;
  3. StifKarp string2 => o => dac;
  4. StifKarp string3 => o => dac;
  5. SawOsc saww => LPF l => ADSR e => dac;
  6.  
  7. 200 => float fr;
  8. 5 => l.Q;
  9.  
  10. 4000 => o.freq;
  11.  
  12. 0.1 => float vol;
  13. 50 => float beet;
  14. 0 => float offset;
  15. 20 => float offness;
  16. 0 => float countz;
  17. 1 => float top;
  18. 0 => float topped;
  19. 0.1 => float pos;
  20. 200 => float dec;
  21.  
  22. 1 => float bar;
  23. 1 => float lastbar;
  24.  
  25. fr/3 => saww.freq;
  26. vol*0.75 => saww.gain;
  27.  
  28. fr/4 => sinner.freq;
  29. vol*0.75 => sinner.gain;
  30.  
  31. vol*0.5 => float strings;
  32.  
  33. fr => string1.freq;
  34. pos+0.2 => string1.pickupPosition;
  35.  
  36. fr/2 => string2.freq;
  37. pos+0.1 => string2.pickupPosition;
  38.  
  39. fr*0.75 => string3.freq;
  40. pos => string3.pickupPosition;
  41.  
  42. 1 => int i;
  43.  
  44. while ( true )
  45. {
  46. if (i == 1025) {1::week => now;};
  47.  
  48. fr*(1+countz) => l.freq;
  49. (fr/4)*(1+countz) => saww.freq;
  50. ((fr/2)*(1+countz)+0.314) => sinner.freq;
  51. e.set( 0::ms, 0::ms, 1, dec*(countz+1)::ms );
  52. e.value(1);
  53. e.keyOn();
  54. e.keyOff();
  55.  
  56. strings => string1.pluck;
  57. if ( i%countz != 1 )
  58. {strings => string2.pluck;};
  59. 1 +=> i;
  60.  
  61. beet::ms => now;
  62.  
  63. strings => string3.pluck;
  64.  
  65. (beet+offset)::ms => now;
  66.  
  67. if (topped == 0) {offness +=> offset; 1 +=> countz;};
  68. if (countz == top) {1 => topped;};
  69. if (topped == 1) {offness -=> offset; 1 -=> countz; 1 +=> bar;};
  70. if (countz == 0) {0 => topped;};
  71. if (bar > (31+lastbar)) {1 +=> top; (31*(countz/5+1)) +=> lastbar;};
  72.  
  73. ((countz+1)*beet)::ms => now;
  74.  
  75. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement