-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCustomMercy.rb
More file actions
252 lines (212 loc) · 4 KB
/
CustomMercy.rb
File metadata and controls
252 lines (212 loc) · 4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
#Mercy by Shawn Mendes
use_bpm 148
use_synth :piano
vocals = "/Users/queennini/Downloads/Mercy (ACAPELLA) Clip.wav"
dun = "/Users/queennini/Downloads/DunDunDun.wav"
R2D = "/Users/queennini/Downloads/ReadyToDie.wav"
define :my_fxn do
play :a4, amp: 10
sleep 0.5
play :b4, amp: 10
sleep 0.5
end
define :bc1 do |a|
play :g3, release: 4, amp: a
play :e3, release: 4, amp: a
play :b2, release: 4, amp: a
sleep 4
end
define :bc2 do |a|
play :g3, release: 4, amp: a
play :d3, release: 4, amp: a
play :b2, release: 4, amp: a
sleep 4
end
define :bc3 do |a|
play :f3, release: 4, amp: a
play :d3, release: 4, amp: a
play :b2, release: 4, amp: a
sleep 4
end
define :bc4 do |a|
play :e3, release: 4, amp: a
play :c3, release: 4, amp: a
play :a2, release: 4, amp: a
sleep 4
end
#array for measure 12
notes = ["e4", "f4", "d4", "c4"]
i = 0
s = [1, 1, 1.5, 0.5]
x = 0
#INTRO
sample dun
sleep 5
sample R2D
#bass clef
live_loop:bass_clef_fade do
sleep 4
1.times do
with_fx :hpf do
#measure 1
bc1 5
#measure 2
bc2 10
#measure 3
bc3 15
#measure 4
bc4 20
end
end
stop
end
#treble clef
live_loop:treble_clef do
sleep 4
2.times do
with_fx :hpf do
#measures 1 and 5
sleep 1
my_fxn
play :d5, sustain: 2, amp: 10
sleep 1
play :b4, sustain: 2, amp: 10
sleep 2
#measures 2 and 6
my_fxn
play :f4, sustain: 2, amp: 10
sleep 1
play :e4, sustain: 2, amp: 10
sleep 2
#measures 3 and 7
play :d4, amp: 10
sleep 0.5
play :e4, amp: 10
sleep 0.5
play :f4, sustain: 2, amp: 10
sleep 1
play :c4, sustain: 2, amp: 10
sleep 1
#measures 4 and 8
play :d4, sustain: 2, amp: 10
sleep 0.5
play :e4, sustain: 2, amp: 10
sleep 3.5
end
end
stop
end
live_loop:treble_clef2 do
sleep 32
#enter vocals
sample vocals, amp: 5
1.times do
with_fx :hpf do
#measure 9
sleep 1.5
play :f4, sustain: 2, amp: 10
sleep 1
play :f4, amp: 10
sleep 0.5
play :e4, sustain: 2, amp: 10
sleep 1
#measure 10
sleep 1
play :c4, amp: 10
sleep 0.5
play :d4, amp: 10
sleep 0.5
play :e4, amp: 10
sleep 0.5
play :e4, sustain: 2, amp: 10
sleep 1.5
#measure 11
sleep 1.5
play :e4, sustain: 2, amp: 10
sleep 1
play :e4, sustain: 2, amp: 10
sleep 1
play :d4, amp: 10
sleep 0.5
#measure 12
4.times do
play notes[i], sustain: 2, amp: 10
sleep s[x]
i = i + 1
x = x + 1
end
#measure 13
sleep 1.5
play :f4, sustain: 2, amp: 10
sleep 1
play :e4, sustain: 2, amp: 10
sleep 1.5
#measure 14
sleep 0.5
play :c4, amp: 10
sleep 0.5
play :d4, amp: 10
sleep 0.5
play :e4, amp: 10
sleep 0.5
play :e4, sustain: 2, amp: 10
sleep 1.5
#measure 15
sleep 1.5
play :c4, amp: 10
sleep 0.5
play :e4, sustain: 2, amp: 10
sleep 1
play :e4, sustain: 2, amp: 10
sleep 1
play :d4, amp: 10
sleep 0.5
#measure 16
play :e4, amp: 8
sleep 1
play :f4, sustain: 2, amp: 6
sleep 1
play :d4, sustain: 2, amp: 4
sleep 1.5
play :d4, sustain: 4, amp: 2
sleep 1.5
end
end
stop
end
sleep 16
live_loop:bass_clef do
3.times do
with_fx :hpf do
#measure 1
bc1 20
#measure 2
bc2 20
#measure 3
bc3 20
#measure 4
bc4 20
end
end
stop
end
sleep 48
live_loop:bass_clef_end do
with_fx :hpf do
x = 12
1.times do
#measure 1
bc1 x
x = x - 3
#measure 2
bc2 x
x = x - 3
#measure 3
bc3 x
x = x - 3
#measure 4
bc4 x
end
end
stop
end