-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrobot_rager.rb
More file actions
73 lines (66 loc) · 1.42 KB
/
robot_rager.rb
File metadata and controls
73 lines (66 loc) · 1.42 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
SPL = :loop_amen
RATE = 1
DUR = 1
live_loop :drums do
fx = ring(:bitcrusher, :krush, :whammy, :panslicer, :hpf, :distortion, :ixi_techno).tick
puts fx
with_fx fx, amp: 2 do
with_fx :wobble, res: 0.5, phase: 2, amp: 2 do
4.times{ run_beat }
end
end
end
define :run_beat do
val = 0.5
a1 = {ring(:start, :finish).choose => val}
a2 = {ring(:finish, :start).choose => val}
sample SPL, rate: RATE, **a1
sleep DUR
sample SPL, rate: (RATE * [1, -1].choose), **a2
sleep DUR
end
live_loop :bass do
use_random_seed rrand(1, 100000)
n = ring(33, 36, 40, 38).tick
puts n
with_fx :ixi_techno, cutoff_min: 70, cutoff_max: 90 do
with_synth :dsaw do
4.times do
play n, release: 0.3
sleep 0.25
end
sleep 1
4.times do
play n, release: 0.25
sleep 0.25
end
sleep 1
end
end
end
live_loop :kick do
##| sample :bd_haus
sleep 0.5 #one_in(4) ? 0.125 : 0.5
end
live_loop :hat do
##| sample :drum_cymbal_closed
sleep one_in(4) ? 0.25 : 0.125
end
live_loop :beep do
sleep 1
with_fx :flanger do
8.times do
sleep 0.125
sample :elec_beep, pre_amp: 1.5, rate: rrand(1.5, 4.5), amp: rrand(0.4, 0.6) #if one_in(4)
end
end
end
live_loop :beep2 do
with_fx :wobble do
16.times do
sleep 0.0625
sample :elec_beep, pre_amp: 1.5, rate: rrand(1.5, 4.5), amp: rrand(0.4, 0.6) #if one_in(4)
end
end
sleep 1
end