-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLCS_Works-Consecutive_Bugs.rb
More file actions
147 lines (147 loc) · 5.11 KB
/
LCS_Works-Consecutive_Bugs.rb
File metadata and controls
147 lines (147 loc) · 5.11 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
live_loop :bd do
with_fx :ping_pong, phase: rrand(0,1), phase_slide: 0.125 do |pp1|
use_random_seed rrand(0,rrand(1,10000))
use_random_source [:dark_pink,:light_pink,:perlin,:pink,:white].shuffle.choose
v=sample_names(sample_groups[3])[rrand(0,sample_names(sample_groups[3]).length)]
s=sample_duration v
t=rrand(0,s).to_f
u=rrand(s-t,s).to_f
if t>1 && u>1
sample v,start:1/t.to_f,finish:1/u.to_f,rate: [-1,1].choose
elsif t>1
sample v,start:1/t.to_f,finish:u.to_f,rate: [-1,1].choose
elsif u>1
sample v,start:t.to_f,finish:1/u.to_f,rate: [-1,1].choose
else
sample v,start:t.to_f,finish:u.to_f,rate: [-1,1].choose
end
sleep u-t
control pp1, phase: rrand(0,1)
end
end
live_loop :drum do
with_fx :ping_pong, phase: rrand(0,1), phase_slide: 0.125 do |pp2|
use_random_seed rrand(0,rrand(1,10000))
use_random_source [:dark_pink,:light_pink,:perlin,:pink,:white].shuffle.choose
v=sample_names(sample_groups[4])[rrand(0,sample_names(sample_groups[4]).length)]
s=sample_duration v
t=rrand(0,s).to_f
u=rrand(s-t,s).to_f
if t>1 && u>1
sample v,start:1/t.to_f,finish:1/u.to_f,rate: [-1,1].choose
elsif t>1
sample v,start:1/t.to_f,finish:u.to_f,rate: [-1,1].choose
elsif u>1
sample v,start:t.to_f,finish:1/u.to_f,rate: [-1,1].choose
else
sample v,start:t.to_f,finish:u.to_f,rate: [-1,1].choose
end
sleep u-t
control pp2, phase: rrand(0,1)
end
end
live_loop :elec do
with_fx :ping_pong, phase: rrand(0,1), phase_slide: 0.125 do |pp3|
use_random_seed rrand(0,rrand(1,10000))
use_random_source [:dark_pink,:light_pink,:perlin,:pink,:white].shuffle.choose
v=sample_names(sample_groups[5])[rrand(0,sample_names(sample_groups[5]).length)]
s=sample_duration v
t=rrand(0,s).to_f
u=rrand(s-t,s).to_f
if t>1 && u>1
sample v,start:1/t.to_f,finish:1/u.to_f,rate: [-1,1].choose
elsif t>1
sample v,start:1/t.to_f,finish:u.to_f,rate: [-1,1].choose
elsif u>1
sample v,start:t.to_f,finish:1/u.to_f,rate: [-1,1].choose
else
sample v,start:t.to_f,finish:u.to_f,rate: [-1,1].choose
end
sleep u-t
control pp3, phase: rrand(0,1)
end
end
live_loop :glitch do
with_fx :ping_pong, phase: rrand(0,1), phase_slide: 0.125 do |pp4|
use_random_seed rrand(0,rrand(1,10000))
use_random_source [:dark_pink,:light_pink,:perlin,:pink,:white].shuffle.choose
v=sample_names(sample_groups[6])[rrand(0,sample_names(sample_groups[6]).length)]
s=sample_duration v
t=rrand(0,s).to_f
u=rrand(s-t,s).to_f
if t>1 && u>1
sample v,start:1/t.to_f,finish:1/u.to_f,rate: [-1,1].choose
elsif t>1
sample v,start:1/t.to_f,finish:u.to_f,rate: [-1,1].choose
elsif u>1
sample v,start:t.to_f,finish:1/u.to_f,rate: [-1,1].choose
else
sample v,start:t.to_f,finish:u.to_f,rate: [-1,1].choose
end
sleep u-t
control pp4, phase: rrand(0,1)
end
end
live_loop :hat do
with_fx :ping_pong, phase: rrand(0,1), phase_slide: 0.125 do |pp5|
use_random_seed rrand(0,rrand(1,10000))
use_random_source [:dark_pink,:light_pink,:perlin,:pink,:white].shuffle.choose
v=sample_names(sample_groups[8])[rrand(0,sample_names(sample_groups[8]).length)]
s=sample_duration v
t=rrand(0,s).to_f
u=rrand(s-t,s).to_f
if t>1 && u>1
sample v,start:1/t.to_f,finish:1/u.to_f,rate: [-1,1].choose
elsif t>1
sample v,start:1/t.to_f,finish:u.to_f,rate: [-1,1].choose
elsif u>1
sample v,start:t.to_f,finish:1/u.to_f,rate: [-1,1].choose
else
sample v,start:t.to_f,finish:u.to_f,rate: [-1,1].choose
end
sleep u-t
control pp5, phase: rrand(0,1)
end
end
live_loop :sn do
with_fx :ping_pong, phase: rrand(0,1), phase_slide: 0.125 do |pp6|
use_random_seed rrand(0,rrand(1,10000))
use_random_source [:dark_pink,:light_pink,:perlin,:pink,:white].shuffle.choose
v=sample_names(sample_groups[13])[rrand(0,sample_names(sample_groups[13]).length)]
s=sample_duration v
t=rrand(0,s).to_f
u=rrand(s-t,s).to_f
if t>1 && u>1
sample v,start:1/t.to_f,finish:1/u.to_f,rate: [-1,1].choose
elsif t>1
sample v,start:1/t.to_f,finish:u.to_f,rate: [-1,1].choose
elsif u>1
sample v,start:t.to_f,finish:1/u.to_f,rate: [-1,1].choose
else
sample v,start:t.to_f,finish:u.to_f,rate: [-1,1].choose
end
sleep u-t
control pp6, phase: rrand(0,1)
end
end
live_loop :vinyl do
with_fx :ping_pong, phase: rrand(0,1), phase_slide: 0.125 do |pp7|
use_random_seed rrand(0,rrand(1,10000))
use_random_source [:dark_pink,:light_pink,:perlin,:pink,:white].shuffle.choose
v=sample_names(sample_groups[15])[rrand(0,sample_names(sample_groups[15]).length)]
s=sample_duration v
t=rrand(0,s).to_f
u=rrand(s-t,s).to_f
if t>1 && u>1
sample v,start:1/t.to_f,finish:1/u.to_f,rate: [-1,1].choose
elsif t>1
sample v,start:1/t.to_f,finish:u.to_f,rate: [-1,1].choose
elsif u>1
sample v,start:t.to_f,finish:1/u.to_f,rate: [-1,1].choose
else
sample v,start:t.to_f,finish:u.to_f,rate: [-1,1].choose
end
sleep u-t
control pp7, phase: rrand(0,1)
end
end