SHARE
TWEET

Untitled

a guest May 19th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 16.times do
  2.   sample :ambi_glass_hum if look%4 == 0 #requirement 5
  3.   sleep 0.5
  4. end
  5. 8.times do
  6.   tick
  7.   sample :ambi_glass_hum if look%4 == 0
  8.   play 40, release: 0.1, cutoff: rrand(20,50) #requirement 6
  9.   sleep 0.5
  10. end
  11. in_thread do
  12.   live_loop :drums do
  13.     tick
  14.     play sample :ambi_glass_hum if look%4 == 0
  15.     play 52 if look%8 == 7
  16.     play 40, release: 0.1, cutoff: rrand(20,30)
  17.     sleep 0.5
  18.   end
  19. end
  20. sleep 4
  21. define :minor_scale do #requirement 4
  22.   play_pattern_timed (scale :e3, :minor_pentatonic, num_octaves: 3), 0.25,
  23.     release: 0.25, amp: 0.5 #requirement 2 & 8
  24. end
  25. live_loop :play do #requirement 1
  26.   tick
  27.   play minor_scale
  28. end
  29. live_loop :play2 do
  30.   with_fx :flanger do #requirement 7
  31.     [1,3,6,4].each do |d|
  32.       (range 0, 4).each do |i|
  33.         play_chord (chord_degree d, :e, :minor, 3, invert: i),amp: 0.4 #requirement 2
  34.         sleep 0.5
  35.       end
  36.     end
  37.   end
  38. end
  39. sleep 8
  40. notes = [76,74,72,71,67,64,66,67,69,76,74,72,71,67,64,72,69].ring
  41. release_times = [2,0.5,0.5,1,1,0.5,0.5,0.5,1.5,2,0.5,0.5,1,0.5,0.5,1].ring
  42. sleep_times= [2,0.5,0.5,1,1,0.5,0.5,0.5,1.5,2,0.5,0.5,1,0.5,0.5,1,2].ring
  43. tick_reset
  44. 17.times do
  45.   use_synth :beep #requirement 5
  46.   tick
  47.   play notes.look, release: release_times.look
  48.   sleep sleep_times.look
  49. end
  50. chorus_notes = [71,71,74,74,71,67,64,64,66,67, 67,67,71,71,74,74,71, 67, 72,72,71,67].ring #requirement 2
  51. hold = [0.5,1,0.5,1,0.5,0.5,0.5,1,0.5,1,0.5,0.5,0.5,1,0.5,1,0.5,0.5,0.5,1,0.5,4].ring
  52. rest =[0.5,1,0.5,1,0.5,0.5,0.5,1,0.5,1,0.5,0.5,0.5,1,0.5,1,0.5,0.5,0.5,1,0.5,4].ring
  53. tick_reset
  54. 22.times do
  55.   tick #requirement 3
  56.   play chorus_notes.look, release: hold.look;
  57.   sleep rest.look #requirement 3
  58. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top