Advertisement
Guest User

Untitled

a guest
Mar 11th, 2019
371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 5.59 KB | None | 0 0
  1. use_bpm 132
  2.  
  3. #Arpeggios and Note Methods
  4. define :intro do
  5.   introNotes = [:cs6,:fs5,:fs5,:cs6,:fs5,:fs5,:cs6,:fs5, :d6, :fs5]
  6.   x = 0
  7.   #Sleep 5 total
  8.   10.times do
  9.     play introNotes[x]
  10.     x = x + 1
  11.     sleep 0.5
  12.   end
  13. end
  14.  
  15. define :introdownstep do
  16.   introNotes = [:c6,:f5,:f5,:c6,:f5,:f5,:c6,:f5, :cs6, :f5]
  17.   x = 0
  18.   #Sleep 5 total
  19.   10.times do
  20.     play introNotes[x]
  21.     x = x + 1
  22.     sleep 0.5
  23.   end
  24. end
  25.  
  26. define :introdownstep2 do
  27.   introNotes = [:b5,:e5,:e5,:b5,:e5,:e5,:b5,:e5, :c6, :e5]
  28.   x = 0
  29.   #Sleep 5 total
  30.   10.times do
  31.     play introNotes[x]
  32.     x = x + 1
  33.     sleep 0.5
  34.   end
  35. end
  36.  
  37. define :introdownstep3 do
  38.   introNotes = [:as5,:ds5,:ds5,:as5,:ds5,:ds5,:as5,:ds5, :b5, :ds5]
  39.   x = 0
  40.   #Sleep 5 total
  41.   10.times do
  42.     play introNotes[x]
  43.     x = x + 1
  44.     sleep 0.5
  45.   end
  46. end
  47.  
  48. define :introfulldownstep do
  49.   introNotes = [:fs5,:b4,:b4,:fs5,:b4,:b4,:fs5,:b4,:g5,:b4]
  50.   x = 0
  51.   #Sleep 5 total
  52.   10.times do
  53.     play introNotes[x]
  54.     x = x + 1
  55.     sleep 0.5
  56.   end
  57. end
  58.  
  59. define :windStart do
  60.   play :fs2, sustain: 7, release: 5
  61.   sleep 5
  62.   play :a2, sustain: 7, release: 5
  63.   sleep 5
  64.   play :as2, sustain: 7, release: 5
  65.   play :f2, sustain: 7, release: 5
  66.   sleep 10
  67. end
  68.  
  69. define :introdark do
  70.   play :fs2, release: 4
  71.   sleep 5
  72.   play :a2, release: 4
  73.   sleep 5
  74.   play :as2, sustain: 4, release: 4
  75.   play :f2, sustain: 4,release: 4
  76.   sleep 10
  77. end
  78.  
  79. define :firstlow do
  80.   play :fs2, sustain: 8, release: 8, amp: 2
  81.   sleep 5
  82.   play :a2, sustain: 8, release: 8, amp: 2
  83.   sleep 5
  84.   play :as2, sustain: 10, release: 8, amp: 1.5
  85.   play :f2, sustain: 10, release: 8, amp: 1.5
  86.   sleep 10
  87. end
  88.  
  89. define :firstlowbass do
  90.   play :fs3, attack: 0, release: 6, amp: 1
  91.   sleep 5
  92.   play :a3, attack: 0, release: 6, amp: 1
  93.   sleep 5
  94.   play :as3, attack: 0, release: 8, amp: 0.7
  95.   play :f3, attack: 0, release: 8, amp: 0.7
  96.   sleep 10
  97. end
  98.  
  99. define :secondlow do
  100.   play :fs2, sustain: 8, release: 8
  101.   sleep 5
  102.   play :a2, sustain: 8, release: 8
  103.   sleep 5
  104.   play :as2, sustain: 8, release: 8
  105.   play :f2, sustain: 8, release: 8
  106.   sleep 10
  107. end
  108.  
  109. define :secondlowbass do
  110.   play :fs2, attack: 0, release: 6, amp: 1
  111.   sleep 5
  112.   play :a2, attack: 0, release: 6, amp: 1
  113.   sleep 5
  114.   play :as2, attack: 0, release: 8, amp: 0.7
  115.   play :f2, attack: 0, release: 8, amp: 0.7
  116.   sleep 10
  117. end
  118.  
  119. define :mainlow do
  120.   play :b2, sustain: 8, release: 8, amp: 1
  121.   play :b3, sustain: 16, release: 16, amp: 2
  122.   sleep 5
  123.   play :d2, sustain: 8, release: 8
  124.   sleep 5
  125.   play :e2, sustain: 8, release: 8
  126.   sleep 5
  127.   play :fs2, sustain: 8, release: 8
  128.   sleep 5
  129. end
  130.  
  131. define :mainlowbass do
  132.   play :b3, attack: 0, release: 28, amp: 0.7
  133.   sleep 5
  134.   play :d2, attack: 0, release: 5, amp: 0.8
  135.   sleep 5
  136.   play :e2, attack: 0, release: 5, amp: 0.8
  137.   sleep 5
  138.   play :fs2, attack: 0, release: 5, amp: 0.8
  139.   sleep 5
  140. end
  141.  
  142.  
  143. define :mainlowx do
  144.   play :b4, sustain: 16, release: 16, amp: 2
  145.   sleep 5
  146.   play :b5, sustain: 16, release: 16
  147.   sleep 5
  148.   play :d4, sustain: 8, release: 8
  149.   sleep 5
  150.   play :fs4, sustain: 8, release: 8
  151.   sleep 5
  152.   play :b5, sustain: 8, release: 8
  153.   sleep 5
  154.   play :e5, sustain: 8, release: 8
  155.   sleep 5
  156.   play :fs5, sustain: 8, release: 8
  157.   sleep 5
  158. end
  159.  
  160. define :mainlowbassx do
  161.   play :b3, attack: 0, release: 28, amp: 0.7
  162.   sleep 5
  163.   play :b3, attack: 0, release: 8, amp: 0.7
  164.   sleep 5
  165.   play :d3, attack: 0, release: 5, amp: 0.7
  166.   sleep 5
  167.   play :fs4, attack: 0, release: 5, amp: 0.8
  168.   sleep 5
  169.   play :b5, attack: 0, release: 5, amp: 0.8
  170.   sleep 5
  171.   play :e5, attack: 0, release: 5, amp: 0.8
  172.   sleep 5
  173. end
  174.  
  175.  
  176.  
  177. #Song Structure Methods
  178. define :songStart do
  179.   3.times do
  180.     in_thread do
  181.       with_synth :dark_ambience do
  182.         windStart
  183.       end
  184.     end
  185.     with_synth :piano do
  186.       intro
  187.     end
  188.   end
  189.   4.times do
  190.     in_thread do
  191.       with_synth :dark_ambience do
  192.         introdark
  193.       end
  194.     end
  195.     with_synth :piano do
  196.       intro
  197.     end
  198.   end
  199. end
  200.  
  201.  
  202. define :lowNoteStart do
  203.   2.times do
  204.     in_thread do
  205.       with_synth :piano do
  206.         2.times do
  207.           intro
  208.         end
  209.         2.times do
  210.           introdownstep
  211.         end
  212.       end
  213.     end
  214.     in_thread do
  215.       with_synth :piano do
  216.         firstlow
  217.       end
  218.     end
  219.     with_synth :growl do
  220.       firstlowbass
  221.     end
  222.   end
  223. end
  224.  
  225. define :downstep do
  226.   2.times do
  227.     in_thread do
  228.       with_synth :piano do
  229.         2.times do
  230.           introdownstep2
  231.         end
  232.         2.times do
  233.           introdownstep3
  234.         end
  235.       end
  236.     end
  237.     in_thread do
  238.       with_synth :piano do
  239.         secondlow
  240.       end
  241.     end
  242.     with_synth :growl do
  243.       firstlowbass
  244.     end
  245.   end
  246. end
  247.  
  248. define :fulldownstep do
  249.   in_thread do
  250.     with_synth :piano do
  251.       9.times do
  252.         introfulldownstep
  253.       end
  254.     end
  255.   end
  256.   2.times do
  257.     in_thread do
  258.       with_synth :piano do
  259.         mainlow
  260.       end
  261.     end
  262.     with_synth :growl do
  263.       mainlowbass
  264.     end
  265.   end
  266. end
  267.  
  268. define :mainfull do
  269.   in_thread do
  270.     with_synth :piano do
  271.       10.times do
  272.         introfulldownstep
  273.       end
  274.     end
  275.   end
  276.   in_thread do
  277.     with_synth :piano do
  278.       in_thread do
  279.         mainlow
  280.       end
  281.       sleep 5
  282.       mainlowx
  283.     end
  284.   end
  285.   with_synth :growl do
  286.     mainlowbass2
  287.     mainlowbassx
  288.   end
  289. end
  290.  
  291.  
  292. with_fx :compressor do
  293.   with_fx :reverb, room: 0.9 do
  294.     songStart
  295.     lowNoteStart
  296.     downstep
  297.     fulldownstep
  298.     sleep 5
  299.     songStart
  300.     lowNoteStart
  301.     downstep
  302.     mainfull
  303.     sleep 5
  304.     with_synth :piano do
  305.       4.times do
  306.         intro
  307.       end
  308.     end
  309.   end
  310. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement