-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimperial-march-theme.rb
98 lines (85 loc) · 1.19 KB
/
imperial-march-theme.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# Partition definitions
define :main_chord_inversion do
play :Ef5
sleep 0.45
play :Bf5
sleep 0.15
play :G5
sleep 0.6
end
define :first_theme do
first_theme_a
sleep 0.6
first_theme_b
end
define :first_theme_a do
3.times do
play :G5
sleep 0.6
end
2.times do
main_chord_inversion
end
end
define :first_theme_b do
3.times do
play :D6
sleep 0.6
end
play :Ef6
sleep 0.45
play :Bf5
sleep 0.15
play :G5
sleep 0.6
main_chord_inversion
end
define :second_theme do
play :G6
sleep 0.6
play :G5
sleep 0.45
play :G5
sleep 0.15
play :G6
sleep 0.6
play :Gf6
sleep 0.45
play :F6
sleep 0.15
play :E6
sleep 0.15
play :Ds6
sleep 0.15
play :E6
# NOTE: double sleeps are a reminder to add differentiation between duration and rest marks
sleep 0.30
sleep 0.30
play :Gs5
sleep 0.30
play :Cs6
sleep 0.6
play :Bs5
sleep 0.45
play :B5
sleep 0.15
play :Bf5
sleep 0.15
play :A5
sleep 0.15
play :Bf5
sleep 0.30
sleep 0.30
play :Ef5
sleep 0.30
play :Gf5
sleep 0.6
# resolve on first theme
2.times do
main_chord_inversion
end
end
## TO PLAY
first_theme
sleep 0.6
second_theme