-
Notifications
You must be signed in to change notification settings - Fork 1
/
mario.rb
74 lines (62 loc) · 1.02 KB
/
mario.rb
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
require_relative 'req'
live_loop :director do
cue_sync
sleep 8
end
live_loop :sand0 do
sync RUN_SAND0
sand BEATS_SAND0
end
live_loop :sand1 do
sync RUN_SAND1
sand BEATS_SAND1
end
def n_drum(bts)
(bts >> 1).times do
sample HARD_DRUM, pan: -0.3
sleep 0.25
sample SOFT_DRUM, pan: -0.3
sleep 0.25
sample SOFT_DRUM, pan: -0.3
sleep 0.25
sample HEAVY_KICK, pan: -0.3
sleep 0.25
sample SOFT_DRUM, pan: -0.3
sleep 0.5
sample HARD_DRUM, pan: -0.3
sleep 0.5
end
end
live_loop :n_drum0 do
sync RUN_N_DRUM0
n_drum BEATS_N_DRUM0
end
live_loop :n_drum1 do
sync RUN_N_DRUM1
n_drum BEATS_N_DRUM1
end
live_loop :f_drum do
sync RUN_F_DRUM
f_drum
end
live_loop :n_ry do
sync RUN_N_RY
play_intro
[R_B, R_C, R_D].each do |r|
inter_play_sns r
end
end
live_loop :f_ry do
sync RUN_F_RY
with_fx FX_REVERB do |rev|
fast_flinger rev
end
end
live_loop :n_tail do
sync RUN_N_TAIL
inter_play_sns R_E
end
live_loop :hum_chime do
sync RUN_HUM_CHIME
hum_chime
end