Index: cfg.py ================================================================== --- cfg.py +++ cfg.py @@ -11,13 +11,15 @@ "e": [""], } def main(): - score = "u u u" key = "G#" - score = generate_score(score) + score = "" + while len(score.split()) < 50: + score = "u u u" + 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 Index: test.sco ================================================================== --- test.sco +++ test.sco @@ -1,15 +1,53 @@ 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 +i2 0.000000 2 7000 8.08 8.08 0 6 +i2 0.250000 2 7000 9.03 9.03 0 6 +i2 0.500000 2 7000 9.08 8.08 0 6 +i2 0.750000 2 7000 8.01 9.01 0 6 +i2 1.000000 2 7000 8.08 8.08 0 6 +i2 1.250000 2 7000 9.03 9.03 0 6 +i2 1.500000 2 7000 9.08 9.08 0 6 +i2 1.750000 2 7000 9.01 9.01 0 6 +i2 2.000000 2 7000 8.08 9.08 0 6 +i2 2.250000 2 7000 8.03 9.03 0 6 +i2 2.500000 2 7000 9.08 9.08 0 6 +i2 2.750000 2 7000 8.01 8.01 0 6 +i2 3.000000 2 7000 9.08 9.08 0 6 +i2 3.250000 2 7000 8.03 8.03 0 6 +i2 3.500000 2 7000 8.08 8.08 0 6 +i2 3.750000 2 7000 9.01 9.01 0 6 +i2 4.000000 2 7000 9.08 9.08 0 6 +i2 4.250000 2 7000 8.03 9.03 0 6 +i2 4.500000 2 7000 8.08 9.08 0 6 +i2 4.750000 2 7000 8.01 9.01 0 6 +i2 5.000000 2 7000 8.08 8.08 0 6 +i2 5.250000 2 7000 8.03 9.03 0 6 +i2 5.500000 2 7000 9.08 8.08 0 6 +i2 5.750000 2 7000 9.01 9.01 0 6 +i2 6.000000 2 7000 8.08 8.08 0 6 +i2 6.250000 2 7000 9.03 8.03 0 6 +i2 6.500000 2 7000 8.08 8.08 0 6 +i2 6.750000 2 7000 8.01 9.01 0 6 +i2 7.000000 2 7000 8.08 9.08 0 6 +i2 7.250000 2 7000 9.03 8.03 0 6 +i2 7.500000 2 7000 8.08 9.08 0 6 +i2 7.750000 2 7000 8.01 9.01 0 6 +i2 8.000000 2 7000 8.08 8.08 0 6 +i2 8.250000 2 7000 8.03 8.03 0 6 +i2 8.500000 2 7000 9.08 8.08 0 6 +i2 8.750000 2 7000 9.01 9.01 0 6 +i2 9.000000 2 7000 9.08 9.08 0 6 +i2 9.250000 2 7000 9.03 8.03 0 6 +i2 9.500000 2 7000 9.08 9.08 0 6 +i2 9.750000 2 7000 8.01 8.01 0 6 +i2 10.000000 2 7000 8.08 8.08 0 6 +i2 10.250000 2 7000 8.03 9.03 0 6 +i2 10.500000 2 7000 8.08 9.08 0 6 +i2 10.750000 2 7000 8.01 9.01 0 6 +i2 11.000000 2 7000 8.08 8.08 0 6 +i2 11.250000 2 7000 8.03 9.03 0 6 +i2 11.500000 2 7000 8.08 9.08 0 6 +i2 11.750000 2 7000 9.01 8.01 0 6 +i2 12.000000 2 7000 8.08 8.08 0 6 +i2 12.250000 2 7000 9.03 8.03 0 6 +i2 12.500000 2 7000 8.08 8.08 0 6 +i2 12.750000 2 7000 9.01 9.01 0 6