Differences From Artifact [3dbac50436059769]:
- Executable file
cfg.py
- 2010-11-18 16:06:54 - part of checkin [1987470dfc] on branch master - Did some composing stuff (user: spiffytech@gmail.com) [annotate]
To Artifact [654b4a673eacd4fe]:
- Executable file
cfg.py
- 2010-11-18 16:18:56 - part of checkin [e16a1f5203] on branch master - Removed empty terminals from the grammars (user: spiffytech@gmail.com) [annotate]
16 16
17 composition = { 17 composition = {
18 "a": { # Movement block 'a' for reuse throughout the piece 18 "a": { # Movement block 'a' for reuse throughout the piece
19 "melody": { # Instrument 'melody' 19 "melody": { # Instrument 'melody'
20 "score_line": "i2 %(time)f %(duration)f 7000 %(octave)d.%(note)s 20 "score_line": "i2 %(time)f %(duration)f 7000 %(octave)d.%(note)s
21 "octave": 8, 21 "octave": 8,
22 "grammars": { # Notes for this instrument to use in this piece 22 "grammars": { # Notes for this instrument to use in this piece
23 "u": ["I V/2 V/2 V/2 I VII, IV' x u", "I IV w w", "I VII IV | 23 "u": ["I V/2 V/2 V/2 I VII, IV' x u", "I IV w w", "I VII IV
24 "w": ['VII I IV V VI u', 'w w', "e"], | 24 "w": ['VII I IV V VI u', 'w w'],
25 "x": ['VI/4 III/4 II/4 I/4 w', 'x x', "e"], | 25 "x": ['VI/4 III/4 II/4 I/4 w', 'x x'],
26 "e": [""], <
27 }, 26 },
28 "score": "u u u u u", 27 "score": "u u u u u",
29 }, 28 },
30 "rhythm": { 29 "rhythm": {
31 "score_line": "i1 %(time)f %(duration)f 7000 %(octave)d.%(note)s 30 "score_line": "i1 %(time)f %(duration)f 7000 %(octave)d.%(note)s
32 "octave": 7, 31 "octave": 7,
33 "grammars": { 32 "grammars": {
34 "u": ['"I" "ii"/4 "ii"/4 "IV"/2 "V"2 "IV" "ii" x u', '"I" "v | 33 "u": ['"I" "ii"/4 "ii"/4 "IV"/2 "V"2 "IV" "ii" x u', '"I" "v
35 "w": ['"i" "VII"2 "VI"/4 "V"/4 "i"/4 "VII"2 "VI" "V" w u', " | 34 "w": ['"i" "VII"2 "VI"/4 "V"/4 "i"/4 "VII"2 "VI" "V" w u'],
36 "x": ['"III/2" "VI"/2 "III"/2 "vii"2 "i"2 "V" u', "e"], | 35 "x": ['"III/2" "VI"/2 "III"/2 "vii"2 "i"2 "V" u'],
37 "y": ['"I" "vi"2 "IV" "V" y y u', "e"], | 36 "y": ['"I" "vi"2 "IV" "V" y y u'],
38 "e": [""] <
39 }, 37 },
40 "score": "u x u y x w u", 38 "score": "u x u y x w u",
41 }, 39 },
42 # "bass": { 40 # "bass": {
43 # "score_line": "i2 %(time)f %(duration)f 7000 %(octave)d.%(note) 41 # "score_line": "i2 %(time)f %(duration)f 7000 %(octave)d.%(note)
44 # "octave": 5, 42 # "octave": 5,
45 # "grammars": { # Notes for this instrument to use in this piece 43 # "grammars": { # Notes for this instrument to use in this piece
................................................................................................................................................................................
50 # }, 48 # },
51 }, 49 },
52 "b": { # Movement block 'a' for reuse throughout the piece 50 "b": { # Movement block 'a' for reuse throughout the piece
53 "melody": { # Instrument 'melody' 51 "melody": { # Instrument 'melody'
54 "score_line": "i2 %(time)f %(duration)f 7000 %(octave)d.%(note)s 52 "score_line": "i2 %(time)f %(duration)f 7000 %(octave)d.%(note)s
55 "octave": 8, 53 "octave": 8,
56 "grammars": { # Notes for this instrument to use in this piece 54 "grammars": { # Notes for this instrument to use in this piece
57 "u": ['I VII V III u', "y", "e"], | 55 "u": ['I VII V III u', "y"],
58 "w": ['VII I IV V VI u', 'w w', "e"], | 56 "w": ['VII I IV V VI u', 'w w'],
59 "x": ['VI/4 III/4 II/4 I/4 w', 'x x', "e"], | 57 "x": ['VI/4 III/4 II/4 I/4 w', 'x x'],
60 "y": ["III/4 VI/4 II/4 V/4 VI/4 IV/4 VII2", "e"], | 58 "y": ["III/4 VI/4 II/4 V/4 VI/4 IV/4 VII2"],
61 "e": [""], <
62 }, 59 },
63 "score": "w w x x w", 60 "score": "w w x x w",
64 }, 61 },
65 "rhythm": { 62 "rhythm": {
66 "score_line": "i1 %(time)f %(duration)f 7000 %(octave)d.%(note)s 63 "score_line": "i1 %(time)f %(duration)f 7000 %(octave)d.%(note)s
67 "octave": 7, 64 "octave": 7,
68 "grammars": { 65 "grammars": {
69 "u": ['"I" "V" "vi" "iii" "IV" "I" "IV" "V" u u', "y", "e"], | 66 "u": ['"I" "V" "vi" "iii" "IV" "I" "IV" "V" u u', "y"],
70 "y": ['"I" "vi"2 "IV" "V" y y u', "e"], | 67 "y": ['"I" "vi"2 "IV" "V" y y u'],
71 "e": [""] <
72 }, 68 },
73 "score": "u u y y u", 69 "score": "u u y y u",
74 }, 70 },
75 }, 71 },
76 } 72 }
77 73
78 max_t = 0 # max time encountered so far. Used for movement timing 74 max_t = 0 # max time encountered so far. Used for movement timing