@@ -5,25 +5,25 @@ import sys import time random.seed(time.time()) def main(): - key = "C" + key = "A" note_grammars = { - "u": ["I V I IV u", "I IV", "I VII IV" , "e"], + "u": ["I V V V I I IV u u", "I IV u u", "I VII IV u u" , "e"], "e": [""], } chord_grammars = { - "u": ["I IV V IV I", "e"], + "u": ["I IV V IV I u u", "I VII IV u u", "I V IV u u", "e"], "e": [""] } compose_piece(key, note_grammars) compose_piece(key, chord_grammars, chords=True) def compose_piece(key, grammars, chords=False): score = "" - while len(score.split()) < 15: + while len(score.split()) < 200: score = "u u u" score = generate_score(score, grammars) score = transliterate_score(score, key, chords) score = generate_csound_score(score) print "f1 0 256 10 1 0 3 ; sine wave function table"