Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1. use_random_seed(Time.now.nsec)
  2. use_bpm(128)
  3.  
  4. arpTickRing = (ring 1,2,3,4,5)
  5. arpTick = 0
  6.  
  7. scaleRing = (ring :ritusen, :shang, :jiao, :zhi, :gong, :yu, :neapolitan_minor, :chinese)
  8.  
  9. masterScale = :ritusen
  10. masterRoot = :Eb3
  11.  
  12. arpInit = 1
  13. sampleInit = 1
  14. bubbleInit = 1
  15. slowInit = 1
  16.  
  17.  
  18. live_loop :fastsequencing do
  19. sleep 128 if arpInit == 1
  20. arpTick = arpTickRing.choose
  21.  
  22. sleep 4
  23. end
  24.  
  25. with_fx :gverb, room: 10, spread: 0.9, mix: 0.15 do
  26.  
  27. with_fx :reverb, Mix: 1 do
  28. with_fx :echo, phase: 0.1, mix: 0.8 do
  29. live_loop :bubble do
  30. bubbleSample = :elec_plip
  31. sleep 32 if bubbleInit == 1
  32. if one_in(10)
  33. 30.times do
  34. sample bubbleSample, rate: rrand(0.1, 2) if one_in(3)
  35. sleep rrand(0.1, 2)
  36. end
  37. end
  38. bubbleInit = 0
  39. sleep 16
  40. end
  41. end
  42.  
  43. use_synth :pretty_bell
  44. live_loop :slowsequencing do
  45. sleep 256 if slowInit == 1
  46.  
  47. use_octave +4
  48. play masterRoot
  49.  
  50. arpInit = 1 if one_in(2)
  51. sampleInit = 1 if one_in(20)
  52. bubbleInit = 1 if one_in(30)
  53.  
  54. masterScale = scaleRing.choose
  55.  
  56. slowInit = 0
  57.  
  58. sleep (ring 128, 256, 64).choose
  59. end
  60. end
  61.  
  62. use_synth :fm
  63.  
  64. arpAmp = 0.6
  65. arpAmpDirection = 0
  66.  
  67. with_fx :echo do
  68. live_loop :arp do
  69. sleep 128 if arpInit == 1
  70. play (scale masterRoot, masterScale, num_octaves:2).tick(step: arpTick), release: 0.15, amp: arpAmp, pan: rrand(-0.75, 0.75)
  71.  
  72. if arpAmpDirection == 0
  73. arpAmp = arpAmp - 0.025
  74. else
  75. arpAmp = arpAmp + 0.025
  76. end
  77.  
  78. (arpAmpDirection = 1) if arpAmp <= 0.1
  79. (arpAmpDirection = 0) if arpAmp >= 0.6
  80.  
  81. arpInit = 0
  82.  
  83. sleep 0.125
  84. end
  85. end
  86.  
  87. with_fx :lpf, cutoff: 64 do
  88. live_loop :ambience do
  89. sleep 64 if sampleInit == 1
  90. ambienceSample = :ambi_sauna
  91. sample ambienceSample, rate: 0.05
  92. sampleInit = 0
  93. sleep (sample_duration(ambienceSample) * 20)
  94. end
  95. end
  96.  
  97.  
  98.  
  99. end
  100.  
  101. use_synth :tri
  102. use_octave -2
  103. live_loop :bass do
  104. play (scale masterRoot, masterScale, num_octaves:2).tick(step: 4), release: 18, pan: -0.5
  105. play ((scale masterRoot, masterScale, num_octaves:2).tick(step: 3) + 0.25), release: 18, pan: 0.5
  106. sleep 16
  107. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement