spiffyscore

Check-in [00f4ddc9f3]
Login
Overview
Comment:Now prints score file header (function table), so I can just >> to foo.sco
Timelines: family | ancestors | descendants | both | ply
Files: files | file ages | folders
SHA1: 00f4ddc9f3f301d29ddb32b0e6541b56f4653e27
User & Date: spiffytech@gmail.com on 2010-11-12 20:23:05
Other Links: branch diff | manifest | tags
Context
2010-11-12
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
20:12
Moved all logic into neat, orderly functions. Now prints only the csound score portion. check-in: 6a17d4d36a user: spiffytech@gmail.com tags: ply
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Modified cfg.py from [4cae783255] to [e38fca44a4].

    14     14   
    15     15   def main():
    16     16       score = "u u u"
    17     17       key = "C"
    18     18       score = generate_score(score)
    19     19       score = keyify_score(score, key)
    20     20       score = generate_csound_score(score)
           21  +    print "f1  0   256 10  1 0 3   ; sine wave function table"
    21     22       for line in score:
    22     23           print line
    23     24   
    24     25   
    25     26   def make_scale(key):
    26     27       notes = ["A", "A#", "B", "C", "C#", "D", "D#", "E", "F", "F#", "G", "G#"]
    27     28       scale = [key]

Modified test.sco from [acb8a904c1] to [9469105036].

     1      1   f1  0   256 10  1 0 3   ; sine wave function table
     2         -
     3         -i2 0.000000 2 7000 8.00 9.00 0 6
     4         -i2 0.250000 2 7000 8.07 8.07 0 6
     5         -i2 0.500000 2 7000 9.00 8.00 0 6
     6         -i2 0.750000 2 7000 8.05 9.05 0 6
            2  +i2 0.000000 2 7000 8.00 8.00 0 6
            3  +i2 0.250000 2 7000 8.07 9.07 0 6
            4  +i2 0.500000 2 7000 8.00 9.00 0 6
            5  +i2 0.750000 2 7000 8.05 8.05 0 6
     7      6   i2 1.000000 2 7000 8.00 9.00 0 6
     8         -i2 1.250000 2 7000 9.07 9.07 0 6
     9         -i2 1.500000 2 7000 9.00 9.00 0 6
    10         -i2 1.750000 2 7000 8.05 9.05 0 6
    11         -i2 2.000000 2 7000 9.00 8.00 0 6
    12         -i2 2.250000 2 7000 8.07 9.07 0 6
    13         -i2 2.500000 2 7000 8.00 8.00 0 6
    14         -i2 2.750000 2 7000 9.05 9.05 0 6
    15         -i2 3.000000 2 7000 8.00 8.00 0 6
    16         -i2 3.250000 2 7000 8.07 9.07 0 6
    17         -i2 3.500000 2 7000 9.00 9.00 0 6
    18         -i2 3.750000 2 7000 8.05 9.05 0 6
    19         -i2 4.000000 2 7000 8.00 9.00 0 6
            7  +i2 1.250000 2 7000 9.07 8.07 0 6
            8  +i2 1.500000 2 7000 9.00 8.00 0 6
            9  +i2 1.750000 2 7000 9.05 8.05 0 6
           10  +i2 2.000000 2 7000 8.00 8.00 0 6
           11  +i2 2.250000 2 7000 9.07 9.07 0 6
           12  +i2 2.500000 2 7000 8.00 9.00 0 6
           13  +i2 2.750000 2 7000 8.05 9.05 0 6
           14  +i2 3.000000 2 7000 9.00 8.00 0 6
           15  +i2 3.250000 2 7000 8.07 8.07 0 6
           16  +i2 3.500000 2 7000 8.00 9.00 0 6
           17  +i2 3.750000 2 7000 9.05 9.05 0 6
           18  +i2 4.000000 2 7000 9.00 8.00 0 6
    20     19   i2 4.250000 2 7000 9.07 9.07 0 6
    21         -i2 4.500000 2 7000 9.00 9.00 0 6
           20  +i2 4.500000 2 7000 8.00 9.00 0 6
    22     21   i2 4.750000 2 7000 8.05 8.05 0 6
    23     22   i2 5.000000 2 7000 9.00 8.00 0 6
    24         -i2 5.250000 2 7000 8.07 8.07 0 6
    25         -i2 5.500000 2 7000 8.00 9.00 0 6
    26         -i2 5.750000 2 7000 9.05 9.05 0 6
    27         -i2 6.000000 2 7000 9.00 9.00 0 6
    28         -i2 6.250000 2 7000 9.07 9.07 0 6
    29         -i2 6.500000 2 7000 9.00 8.00 0 6
    30         -i2 6.750000 2 7000 8.05 8.05 0 6
    31         -i2 7.000000 2 7000 9.00 9.00 0 6
    32         -i2 7.250000 2 7000 8.07 9.07 0 6
    33         -i2 7.500000 2 7000 8.00 8.00 0 6
           23  +i2 5.250000 2 7000 9.07 9.07 0 6
           24  +i2 5.500000 2 7000 9.00 8.00 0 6
           25  +i2 5.750000 2 7000 8.05 8.05 0 6
           26  +i2 6.000000 2 7000 9.00 8.00 0 6
           27  +i2 6.250000 2 7000 8.07 8.07 0 6
           28  +i2 6.500000 2 7000 8.00 9.00 0 6
           29  +i2 6.750000 2 7000 9.05 9.05 0 6
           30  +i2 7.000000 2 7000 8.00 8.00 0 6
           31  +i2 7.250000 2 7000 9.07 9.07 0 6
           32  +i2 7.500000 2 7000 8.00 9.00 0 6
    34     33   i2 7.750000 2 7000 9.05 8.05 0 6
    35         -i2 8.000000 2 7000 9.00 8.00 0 6
    36         -i2 8.250000 2 7000 8.07 8.07 0 6
    37         -i2 8.500000 2 7000 9.00 9.00 0 6
    38         -i2 8.750000 2 7000 8.05 9.05 0 6