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
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
|
bps = 0.15
##modes to choose scale from
modes = [:harmonic_minor, :minor, :hex_aeolian, :melodic_minor, :hungarian_minor]
roots = [:A3, :A4, :A5]
#turn scale background on/off
scal_on = true
#turn snare on/off
snar_on = true
#turn background pitter-patter bass drum on/off
drive_bass = true
#turn foreground bass on/off
main_bass = true
#turn woosh and weird wobble sound sample on/off
fx_on = true
#turn chirp noise on/off
noiz1_on = false
#turn wiggle snare on/off
noiz2_on = true
#turn background harmony on/off
sing_on = true
#turn melody on/off
over_on = true
sing_mode = 0
live_loop :bas_drum do
if drive_bass
vol = 1
else
vol = 0
end
c = rrand(65, 100)
with_fx :lpf, cutoff: c do
with_fx :krush, gain: 1 do
4.times do
sample :bd_fat, amp: vol
sleep bps/2
end
end
end
end
live_loop :xtra_bass do
if main_bass
sample :bd_haus, amp: 1
end
sleep bps*2
end
live_loop :spook do
if fx_on
if(one_in(2))
sample :ambi_dark_woosh
end
if(one_in(3))
wubble bps/3, 4, choose([true,false]), rrand(80, 95), 32
end
end
sleep bps*32
end
live_loop :snar do
if snar_on
vol = 0.7
svol = 0.5
else
vol = 0
svol = 0
end
use_synth :cnoise
with_fx :hpf do
4.times do
if (one_in(2))
play 80, amp: svol, release: 0.05
end
sleep bps/2
end
play 80, amp: vol, release: 0.1
4.times do
if (one_in(2))
play 80, amp: svol, release: 0.05
end
sleep bps/2
end
4.times do
if (one_in(2))
play 80, amp: svol, release: 0.05
end
sleep bps/2
end
end
with_fx :rhpf, amp: vol, res: 0.8 do
play 80, release: 0.2
end
sleep bps*2
end
define :swap do |scal|
nscal = [] * 8
i = 0
8.times do
nscal[i] = scal[7-i]
i = i + 1
end
return nscal
end
live_loop :noiz1 do
if noiz1_on
sleep bps*2
if(one_in(2))
c = choose([1,2,4])
c.times do
with_fx :compressor do
noise_1 rrand(3,4)
end
sleep bps
end
end
sleep bps*6
else
sleep bps*8
end
end
live_loop :noiz2 do
sleep bps*2
if noiz2_on
wubble bps/(rrand_i(1,4)), rrand_i(0,4), false, 100, 2
use_synth :saw
#with_fx :lpf do
# play choose([:A2, :Ab2]), release: 0.2
#end
end
sleep bps*2
end
live_loop :scales do
if one_in(4)
r = 2
else
r = 1
end
if scal_on
vol = 1
else
vol = 0
end
use_synth :dull_bell
with_fx :wobble, amp: vol, wave: 3, phase: bps/r do
#with_fx :rlpf, cutoff: rrand(60,100), res: 0.7 do
r.times do
sc = scale(choose(roots), choose(modes))
if one_in(2)
play_pattern_timed sc, bps/r, release: 0.1, cutoff: rrand(60,100)
else
play_pattern_timed swap(sc), bps/r, release: 0.1, cutoff: rrand(60,100)
end
end
#end
end
end
live_loop :ostenato do
use_synth :chiplead
if sing_mode == 0
soprano 0.7
end
if sing_mode == 1
with_fx :panslicer, phase: bps, wave: 3 do
soprano 0.5
end
end
if sing_mode == 2
with_fx :ixi_techno, phase: bps*2 do
with_fx :ring_mod, freq: rrand_i(30,60) do
soprano 0.4
end
end
end
end
live_loop :singahs do
l = 12
if sing_on
sing :A5, l
sing :C6, l
sleep bps*16
sing :G5, l
sing :B5, l
sleep bps*16
sing :G5, l
sing :E5, l
sleep bps*16
sing :B5, l
sing :Ab5, l
sleep bps*16
sing :A5, l
sleep bps*16
else
sleep bps*16
end
end
define :noise_1 do |rat|
r = 0.1
att = 0.1
with_fx :nrlpf, freq: 88, res: 0.7 do
with_fx :distortion, distort: 0.9 do
sample :elec_bell, amp: 0.5, rate: rat
use_synth :chipbass
play 88, amp: 0.1, attack: att, release: r
end
end
end
define :soprano do |v|
sc = scale( :A4, modes[1])
if over_on
vol = v
else
vol = 0
end
i=7
s = play sc[0], amp: vol, sustain: bps*16*5, note_slide: 0.075
5.times do
control s, note: sc[0]
sleep bps*4
control s, note: sc[4]
sleep bps*4
control s, note: sc[i]
sleep bps*2
control s, note: sc[i-1]
sleep bps*2
control s, note: sc[i-2]
sleep bps*2
control s, note: sc[i-3]
sleep bps*2
i = i - 1
if i == 4
sc = scale( :A4, modes[0])
end
end
end
define :wubble do |ph, wav, fad, freq, len|
use_synth :cnoise
with_fx :wobble, wave: 3, phase: ph do
with_fx :rlpf, cutoff: freq do
if fad
play 70, amp: 0.7, attack: bps*len
else
play 70, amp: 0.7, release: bps*len
end
end
end
end
define :sing do |pitch, len|
with_fx :gverb do
with_fx :compressor do
with_fx :rlpf, cutoff: 89, res: 0.7 do
with_fx :vowel do
with_fx :slicer, amp_min: 0.2, amp_max: 0.9 , phase: 0.1, wave: 3 do
play pitch, attack: 1, release: bps*len
end
end
end
end
end
end
|