Overview
| Comment: | Added a few grammars, added G# to csound note conversion list |
|---|---|
| Timelines: | family | ancestors | descendants | both | ply |
| Files: | files | file ages | folders |
| SHA1: |
3cd7a5dcd0e9a896ac6bcd7d703b9428 |
| User & Date: | spiffytech@gmail.com on 2010-11-12 20:27:20.000 |
| Other Links: | branch diff | manifest | tags |
Context
|
2010-11-12
| ||
| 20:30 | Now generates scores until it makes one 50 notes ling check-in: e425f3d6c2 user: spiffytech@gmail.com tags: ply | |
| 20:27 | Added a few grammars, added G# to csound note conversion list check-in: 3cd7a5dcd0 user: spiffytech@gmail.com tags: ply | |
| 20:23 | Now prints score file header (function table), so I can just >> to foo.sco check-in: 00f4ddc9f3 user: spiffytech@gmail.com tags: ply | |
Changes
Modified cfg.py
from [e38fca44a4]
to [14f13b1d15].
1 2 3 4 5 6 7 8 9 |
#!/usr/bin/env python
import os
import random
import sys
import time
random.seed(time.time())
grammars = {
| | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
#!/usr/bin/env python
import os
import random
import sys
import time
random.seed(time.time())
grammars = {
"u": ["I V I IV u", "I IV", "I VII IV" , "e"],
"e": [""],
}
def main():
score = "u u u"
key = "G#"
score = generate_score(score)
score = keyify_score(score, key)
score = generate_csound_score(score)
print "f1 0 256 10 1 0 3 ; sine wave function table"
for line in score:
print line
|
| ︙ | ︙ | |||
70 71 72 73 74 75 76 |
"C#": "01",
"D": "02",
"D#": "03",
"E": "04",
"F": "05",
"F#": "06",
"G": "07",
| | | 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
"C#": "01",
"D": "02",
"D#": "03",
"E": "04",
"F": "05",
"F#": "06",
"G": "07",
"G#": "08",
"A": "09",
"A#": "10",
"B": "11",
}
t = 0
csound_score = []
for token in score:
|
| ︙ | ︙ |
Modified test.sco
from [9469105036]
to [3aef217c82].
1 | f1 0 256 10 1 0 3 ; sine wave function table | | | | | | | | | | | | | | | < < < < < < < < < < < < < < < < < < | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | f1 0 256 10 1 0 3 ; sine wave function table i2 0.000000 2 7000 8.08 9.08 0 6 i2 0.250000 2 7000 8.07 8.07 0 6 i2 0.500000 2 7000 8.01 8.01 0 6 i2 0.750000 2 7000 9.08 8.08 0 6 i2 1.000000 2 7000 8.03 8.03 0 6 i2 1.250000 2 7000 8.08 8.08 0 6 i2 1.500000 2 7000 9.01 8.01 0 6 i2 1.750000 2 7000 9.08 8.08 0 6 i2 2.000000 2 7000 9.03 9.03 0 6 i2 2.250000 2 7000 9.08 9.08 0 6 i2 2.500000 2 7000 8.01 9.01 0 6 i2 2.750000 2 7000 8.08 9.08 0 6 i2 3.000000 2 7000 8.07 9.07 0 6 i2 3.250000 2 7000 8.01 8.01 0 6 |