Differences From Artifact [4cae783255]:
- Executable file cfg.py — part of check-in [6a17d4d36a] at 2010-11-12 20:12:48 on branch ply — Moved all logic into neat, orderly functions. Now prints only the csound score portion. (user: spiffytech@gmail.com, size: 2012) [annotate] [blame] [check-ins using]
To Artifact [e38fca44a4]:
- Executable file cfg.py — part of check-in [00f4ddc9f3] at 2010-11-12 20:23:05 on branch ply — Now prints score file header (function table), so I can just >> to foo.sco (user: spiffytech@gmail.com, size: 2075) [annotate] [blame] [check-ins using]
︙ | |||
14 15 16 17 18 19 20 21 22 23 24 25 26 27 | 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | + | def main(): score = "u u u" key = "C" 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 def make_scale(key): notes = ["A", "A#", "B", "C", "C#", "D", "D#", "E", "F", "F#", "G", "G#"] scale = [key] |
︙ |