17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

random.seed(time.time())
mymidi = midifile(15)
def main():
composition = {
"intro": {
"body": {
"pan_flute": { # Instrument 'melody'
"channel": 8,
"octave": 5,
"duration": 60,
"grammars": { # Notes for this instrument to use in this piece
"u": ["C2' B2  A3 D3  B  C'  D  C2' C2'  z  (u)", "C2' C2'  C2' C2'  (x)"],
"v": ["G2 F2  E2 F2  D5 (u)", "B/4 C/4' B/4 A/4  D2 D2  z  (u)"],
"x": ["z4  (v)"],


17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39

random.seed(time.time())
mymidi = midifile(15)
def main():
composition = {
"intro": {
"body": {
"percusion": {
"channel": 14,
"octave": 4,
"duration": 60,
"grammars": {
"u": ["A ^A (u)"]
}
},
"pan_flute": {
"channel": 8,
"octave": 5,
"duration": 60,
"grammars": { # Notes for this instrument to use in this piece
"u": ["C2' B2  A3 D3  B  C'  D  C2' C2'  z  (u)", "C2' C2'  C2' C2'  (x)"],
"v": ["G2 F2  E2 F2  D5 (u)", "B/4 C/4' B/4 A/4  D2 D2  z  (u)"],
"x": ["z4  (v)"],
