-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestsongs.py
161 lines (149 loc) · 6.99 KB
/
testsongs.py
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
148
149
150
151
152
153
154
155
156
157
158
159
160
from constants import BASS_STANDARD_TUNE_4, BASS_ONE_OCTAVE_UP_4
from structs import *
riff = measure(metronome=120, meter=timevalue.common_time(), title="riff")
riff.notes = [
note(fret=0, string=1, beginning=timevalue(0, 8)),
note(fret=7, string=2, beginning=timevalue(1, 8)),
note(fret=7, string=1, beginning=timevalue(2, 8)),
note(fret=5, string=2, beginning=timevalue(3, 8)),
note(fret=0, string=1, beginning=timevalue(4, 8)),
note(fret=0, string=1, beginning=timevalue(5, 8)),
note(fret=7, string=1, beginning=timevalue(6, 8)),
note(fret=5, string=2, beginning=timevalue(7, 8)),
]
variation = measure(metronome=None, meter=None, title="variation")
variation.notes = [
note(fret=0, string=1, beginning=timevalue(0, 8)),
note(fret=7, string=2, beginning=timevalue(1, 8)),
note(fret=7, string=1, beginning=timevalue(2, 8)),
note(fret=5, string=2, beginning=timevalue(3, 8)),
note(fret=5, string=3, beginning=timevalue(4, 8)),
note(fret=4, string=3, beginning=timevalue(5, 8)),
note(fret=5, string=3, beginning=timevalue(6, 8)),
note(fret=4, string=3, beginning=timevalue(7, 8)),
]
bridge_riff = measure(metronome=120, meter=timevalue.common_time(), title="bridge to pre-chorus")
bridge_riff.notes = [
note(fret=0, string=1, beginning=timevalue(0, 8)),
note(fret=7, string=2, beginning=timevalue(1, 8)),
note(fret=7, string=1, beginning=timevalue(2, 8)),
note(fret=5, string=2, beginning=timevalue(3, 8)),
note(fret=0, string=1, beginning=timevalue(4, 8)),
note(fret=2, string=1, beginning=timevalue(5, 8)),
note(fret=3, string=1, beginning=timevalue(6, 8)),
note(fret=2, string=2, beginning=timevalue(7, 8)),
]
prechorus_1 = measure(metronome=None, meter=None, title="pre-chorus")
prechorus_1.notes = [
note(fret=3, string=2, beginning=timevalue(0, 8)),
note(fret=3, string=2, beginning=timevalue(1, 8)),
note(fret=3, string=2, beginning=timevalue(2, 8)),
note(fret=5, string=2, beginning=timevalue(3, 8)),
note(fret=5, string=2, beginning=timevalue(4, 8)),
note(fret=5, string=2, beginning=timevalue(5, 8)),
note(fret=5, string=2, beginning=timevalue(6, 8)),
note(fret=5, string=2, beginning=timevalue(7, 8)),
]
prechorus_2 = measure(metronome=None, meter=None, title="")
prechorus_2.notes = [
note(fret=5, string=2, beginning=timevalue(0, 8)),
note(fret=5, string=2, beginning=timevalue(1, 8)),
note(fret=5, string=2, beginning=timevalue(2, 8)),
note(fret=7, string=2, beginning=timevalue(3, 8)),
note(fret=7, string=2, beginning=timevalue(4, 8)),
note(fret=7, string=2, beginning=timevalue(5, 8)),
]
prechorus_3 = measure(metronome=None, meter=None, title="")
prechorus_3.notes = [
note(fret=3, string=2, beginning=timevalue(0, 8)),
note(fret=3, string=2, beginning=timevalue(1, 8)),
note(fret=3, string=2, beginning=timevalue(2, 8)),
note(fret=5, string=2, beginning=timevalue(3, 8)),
note(fret=5, string=2, beginning=timevalue(4, 8)),
note(fret=5, string=2, beginning=timevalue(5, 8)),
note(fret=5, string=2, beginning=timevalue(6, 8)),
note(fret=0, string=1, beginning=timevalue(7, 8)),
]
prechorus_4 = measure(metronome=None, meter=None, title="")
prechorus_4.notes = [
note(fret=5, string=2, beginning=timevalue(0, 8)),
note(fret=7, string=2, beginning=timevalue(1, 8)),
note(fret=5, string=3, beginning=timevalue(2, 8)),
note(fret=4, string=3, beginning=timevalue(3, 8)),
note(fret=7, string=2, beginning=timevalue(4, 8)),
note(fret=7, string=2, beginning=timevalue(5, 8)),
note(fret=7, string=2, beginning=timevalue(6, 8)),
]
prechorus_5 = measure(metronome=None, meter=None, title="")
prechorus_5.notes = [
note(fret=3, string=2, beginning=timevalue(0, 8)),
note(fret=3, string=2, beginning=timevalue(1, 8)),
note(fret=3, string=2, beginning=timevalue(2, 8)),
note(fret=5, string=2, beginning=timevalue(3, 8)),
note(fret=5, string=2, beginning=timevalue(4, 8)),
note(fret=5, string=2, beginning=timevalue(5, 8)),
note(fret=5, string=2, beginning=timevalue(6, 8)),
note(fret=5, string=2, beginning=timevalue(7, 8)),
]
prechorus_6 = measure(metronome=None, meter=None, title="")
prechorus_6.notes = [
note(fret=5, string=2, beginning=timevalue(0, 8)),
note(fret=5, string=2, beginning=timevalue(1, 8)),
note(fret=5, string=2, beginning=timevalue(2, 8)),
note(fret=7, string=2, beginning=timevalue(3, 8)),
note(fret=7, string=2, beginning=timevalue(4, 8)),
note(fret=5, string=2, beginning=timevalue(5, 8)),
]
prechorus_7 = measure(metronome=120, meter=timevalue.common_time(), title="")
prechorus_7.notes = [
note(fret=3, string=2, beginning=timevalue(0, 8)),
note(fret=3, string=1, beginning=timevalue(1, 8)),
note(fret=5, string=1, beginning=timevalue(2, 8)),
note(fret=3, string=2, beginning=timevalue(3, 8)),
note(fret=3, string=1, beginning=timevalue(5, 8)),
note(fret=5, string=1, beginning=timevalue(6, 8)),
note(fret=3, string=2, beginning=timevalue(7, 8)),
]
prechorus_8 = measure(metronome=None, meter=None, title="")
prechorus_8.notes = [
note(fret=5, string=2, beginning=timevalue(0, 16), duration=timevalue(3, 32)),
note(fret=5, string=2, beginning=timevalue(3, 16), duration=timevalue(3, 32)),
note(fret=5, string=2, beginning=timevalue(6, 16), duration=timevalue(1, 16)),
note(fret=5, string=2, beginning=timevalue(8, 16), duration=timevalue(3, 32)),
note(fret=3, string=2, beginning=timevalue(6, 8)), #there's supposed to be a slide here
]
variation2 = measure(metronome=None, meter=None, title="variation")
variation2.notes = [
note(fret=0, string=1, beginning=timevalue(0, 8)),
note(fret=7, string=2, beginning=timevalue(1, 8)),
note(fret=7, string=1, beginning=timevalue(2, 8)),
note(fret=5, string=2, beginning=timevalue(3, 8)),
note(fret=5, string=3, beginning=timevalue(4, 8)),
note(fret=4, string=3, beginning=timevalue(5, 8)),
note(fret=7, string=2, beginning=timevalue(6, 8)),
note(fret=5, string=2, beginning=timevalue(7, 8)),
]
bonjovi_measures = [riff for i in range(23)] + [variation] + [riff for i in range(7)] + [bridge_riff] + [prechorus_1, prechorus_2, prechorus_3, prechorus_4, prechorus_5, prechorus_6, prechorus_7, prechorus_8]
ggg = song(measures=[prechorus_7, prechorus_8], name="", author="", tuning=BASS_ONE_OCTAVE_UP_4)
bonjovi = song (
measures = bonjovi_measures,
name = "Livin' On A Prayer",
author = "Bon Jovi",
tuning = BASS_STANDARD_TUNE_4
)
notes1 = [note(fret=0, string=1, beginning=timevalue(i, 8)) for i in range(8)]
eighth = song(
name="",
author="",
tuning=BASS_STANDARD_TUNE_4,
measures = [ measure(metronome=120, meter=timevalue.common_time(), notes=notes1) for i in range(4) ]
)
notes2 = [note(fret=0, string=1, beginning=timevalue(i, 16)) for i in range(16)]
sixteenth = song(
name="",
author="",
tuning=BASS_STANDARD_TUNE_4,
measures = [ measure(metronome=120, meter=timevalue.common_time(), notes=notes2) for i in range(4) ]
)
# from musicengine import PlaySong
# PlaySong(ggg)