-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdrones_at_dusk.rb
More file actions
51 lines (46 loc) · 1.18 KB
/
drones_at_dusk.rb
File metadata and controls
51 lines (46 loc) · 1.18 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
with_fx :reverb, mix: 0.8 do
live_loop :hellfarm do
sp_name = choose sample_names :misc
sp_time = [1, 2].choose
sp_rate = 0.5
s = sample sp_name, amp: rrand(1.5,2), cutoff: rrand(70, 130), rate: sp_rate * choose([0.5, 1]), pan: rrand(-1, 1), pan_slide: sp_time
control s, pan: rrand(-1, 1)
sleep sp_time
end
end
live_loop :drone do
with_fx :reverb, room: 1 do
with_fx fx_names.sample do
sample :ambi_choir, attack: 1, amp: 3, beat_stretch: 4, pitch: rrand(-10, 10)
end
with_fx fx_names.shuffle.sample do
sample :ambi_drone, attack: 1, amp: 3, beat_stretch: 4, pitch: rrand(-10, 10)
end
end
sleep 4
end
drum_sample = :loop_safari
define :drums do |effect|
tick
puts look
case look
when 20
drum_sample = :loop_amen
when 45
drum_sample = :loop_mika
when 80
drum_sample = :loop_breakbeat
end
with_fx effect, gain: 10, cutoff: 0, cutoff_slide: 4 do |fx|
s = sample drum_sample, rate: 0.25, beat_stretch: 4, pan: 0, pan_slide: 4
control fx, cutoff: rrand(60, 100)
control s, pan: rrand(-0.5, 0.5)
end
sleep 4
end
live_loop :drumz do
drums :krush
end
live_loop :drumz2 do
drums fx_names.sample
end