spiffyscore

Check-in [e425f3d6c2]
Login
Overview
Comment:Now generates scores until it makes one 50 notes ling
Timelines: family | ancestors | descendants | both | ply
Files: files | file ages | folders
SHA1: e425f3d6c2e12718d60fc1734a6e09973f8480f0
User & Date: spiffytech@gmail.com on 2010-11-12 20:30:17
Other Links: branch diff | manifest | tags
Context
2010-11-13
00:12
Now handles chords check-in: 5aa14570f1 user: spiffytech@gmail.com tags: ply
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
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Modified cfg.py from [14f13b1d15] to [d8090f9de3].

     9      9   grammars = {
    10     10       "u": ["I V I IV u", "I IV", "I VII IV"  , "e"],
    11     11       "e": [""],
    12     12   }
    13     13   
    14     14   
    15     15   def main():
    16         -    score = "u u u"
    17     16       key = "G#"
    18         -    score = generate_score(score)
           17  +    score = ""
           18  +    while len(score.split()) < 50:
           19  +        score = "u u u"
           20  +        score = generate_score(score)
    19     21       score = keyify_score(score, key)
    20     22       score = generate_csound_score(score)
    21     23       print "f1  0   256 10  1 0 3   ; sine wave function table"
    22     24       for line in score:
    23     25           print line
    24     26   
    25     27   

Modified test.sco from [3aef217c82] to [9253ead855].

     1      1   f1  0   256 10  1 0 3   ; sine wave function table
     2         -i2 0.000000 2 7000 8.08 9.08 0 6
     3         -i2 0.250000 2 7000 8.07 8.07 0 6
     4         -i2 0.500000 2 7000 8.01 8.01 0 6
     5         -i2 0.750000 2 7000 9.08 8.08 0 6
     6         -i2 1.000000 2 7000 8.03 8.03 0 6
     7         -i2 1.250000 2 7000 8.08 8.08 0 6
     8         -i2 1.500000 2 7000 9.01 8.01 0 6
     9         -i2 1.750000 2 7000 9.08 8.08 0 6
    10         -i2 2.000000 2 7000 9.03 9.03 0 6
    11         -i2 2.250000 2 7000 9.08 9.08 0 6
    12         -i2 2.500000 2 7000 8.01 9.01 0 6
    13         -i2 2.750000 2 7000 8.08 9.08 0 6
    14         -i2 3.000000 2 7000 8.07 9.07 0 6
    15         -i2 3.250000 2 7000 8.01 8.01 0 6
            2  +i2 0.000000 2 7000 8.08 8.08 0 6
            3  +i2 0.250000 2 7000 9.03 9.03 0 6
            4  +i2 0.500000 2 7000 9.08 8.08 0 6
            5  +i2 0.750000 2 7000 8.01 9.01 0 6
            6  +i2 1.000000 2 7000 8.08 8.08 0 6
            7  +i2 1.250000 2 7000 9.03 9.03 0 6
            8  +i2 1.500000 2 7000 9.08 9.08 0 6
            9  +i2 1.750000 2 7000 9.01 9.01 0 6
           10  +i2 2.000000 2 7000 8.08 9.08 0 6
           11  +i2 2.250000 2 7000 8.03 9.03 0 6
           12  +i2 2.500000 2 7000 9.08 9.08 0 6
           13  +i2 2.750000 2 7000 8.01 8.01 0 6
           14  +i2 3.000000 2 7000 9.08 9.08 0 6
           15  +i2 3.250000 2 7000 8.03 8.03 0 6
           16  +i2 3.500000 2 7000 8.08 8.08 0 6
           17  +i2 3.750000 2 7000 9.01 9.01 0 6
           18  +i2 4.000000 2 7000 9.08 9.08 0 6
           19  +i2 4.250000 2 7000 8.03 9.03 0 6
           20  +i2 4.500000 2 7000 8.08 9.08 0 6
           21  +i2 4.750000 2 7000 8.01 9.01 0 6
           22  +i2 5.000000 2 7000 8.08 8.08 0 6
           23  +i2 5.250000 2 7000 8.03 9.03 0 6
           24  +i2 5.500000 2 7000 9.08 8.08 0 6
           25  +i2 5.750000 2 7000 9.01 9.01 0 6
           26  +i2 6.000000 2 7000 8.08 8.08 0 6
           27  +i2 6.250000 2 7000 9.03 8.03 0 6
           28  +i2 6.500000 2 7000 8.08 8.08 0 6
           29  +i2 6.750000 2 7000 8.01 9.01 0 6
           30  +i2 7.000000 2 7000 8.08 9.08 0 6
           31  +i2 7.250000 2 7000 9.03 8.03 0 6
           32  +i2 7.500000 2 7000 8.08 9.08 0 6
           33  +i2 7.750000 2 7000 8.01 9.01 0 6
           34  +i2 8.000000 2 7000 8.08 8.08 0 6
           35  +i2 8.250000 2 7000 8.03 8.03 0 6
           36  +i2 8.500000 2 7000 9.08 8.08 0 6
           37  +i2 8.750000 2 7000 9.01 9.01 0 6
           38  +i2 9.000000 2 7000 9.08 9.08 0 6
           39  +i2 9.250000 2 7000 9.03 8.03 0 6
           40  +i2 9.500000 2 7000 9.08 9.08 0 6
           41  +i2 9.750000 2 7000 8.01 8.01 0 6
           42  +i2 10.000000 2 7000 8.08 8.08 0 6
           43  +i2 10.250000 2 7000 8.03 9.03 0 6
           44  +i2 10.500000 2 7000 8.08 9.08 0 6
           45  +i2 10.750000 2 7000 8.01 9.01 0 6
           46  +i2 11.000000 2 7000 8.08 8.08 0 6
           47  +i2 11.250000 2 7000 8.03 9.03 0 6
           48  +i2 11.500000 2 7000 8.08 9.08 0 6
           49  +i2 11.750000 2 7000 9.01 8.01 0 6
           50  +i2 12.000000 2 7000 8.08 8.08 0 6
           51  +i2 12.250000 2 7000 9.03 8.03 0 6
           52  +i2 12.500000 2 7000 8.08 8.08 0 6
           53  +i2 12.750000 2 7000 9.01 9.01 0 6