Overview
Comment: | Did some composing stuff |
---|---|
Timelines: | family | ancestors | descendants | both | master |
Files: | files | file ages | folders |
SHA1: |
1987470dfca0b2cd7c64427fcd91b5aa |
User & Date: | spiffytech@gmail.com on 2010-11-18 16:06:54 |
Other Links: | branch diff | manifest | tags |
Context
2010-11-18
| ||
16:18 | Removed empty terminals from the grammars check-in: e16a1f5203 user: spiffytech@gmail.com tags: master | |
16:06 | Did some composing stuff check-in: 1987470dfc user: spiffytech@gmail.com tags: master | |
03:10 | Can now set an instrument's default octave beside the instrument's score check-in: ff85cece1d user: spiffytech@gmail.com tags: master | |
Changes
Modified cfg.py from [8500dd2d15] to [3dbac50436].
︙ | |||
12 13 14 15 16 17 18 | 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 | - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + - + - + + - + - - + + | key = "A" bps = 60/60 tempo = 1/bps max_duration = 1 composition = { "a": { # Movement block 'a' for reuse throughout the piece |
︙ | |||
75 76 77 78 79 80 81 | 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 | - - + + | found_substitution = False for key,value in grammars.iteritems(): if score.find(key) != -1: found_substitution = True while score.find(key) != -1: score = score.replace(key, random.choice(grammars[key]), 1) if len(score.split()) > 200: |
︙ | |||
102 103 104 105 106 107 108 | 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 | + - - + + - - + | for i in range(len(score)): if isinstance(score[i], parse.Note): score[i].value = scale[scale_conversion[score[i].value]-1] elif isinstance(score[i], parse.Chord): chord = [] root_note_index = scale.index(key) + scale_conversion[score[i].value] chord.append(scale[root_note_index]) chord.append(scale[(root_note_index+3) % 8]) |
︙ |
Modified parse.py from [668286027e] to [b9f73ddafd].
︙ | |||
122 123 124 125 126 127 128 | 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | - + - - + + - | def p_accidental(p): '''pitch : ACCIDENTAL pitch ''' p[2].accidental = p[1] p[0] = p[2] |
︙ |
Modified test.orc from [ca3bb46446] to [cf2b0ca1e3].
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | - - - - - - - - + - - - + + - + - - - - - + - - - + - - - + - - - - - - - - - - - - + - - - + + - - + - - - |
|
Modified test.sco from [5fa24f6626] to [884f965d5b].
|
Modified todo.org from [d5cbe62893] to [08d0834b4e].
1 2 3 | 1 2 3 4 5 6 7 8 9 10 11 12 | - - + + - | * Features [3/9] - [X] Top-down composition - [ ] Coordinate the melody and rhythm |
︙ |