Differences From Artifact [e9b556b4f37a3fa9]:
- Executable file
cfg.py
- 2011-02-10 23:50:20 - part of checkin [689adc054e] on branch master - Program generates a render order for the instruments based on their sync order (user: brian@linux-85dd.site) [annotate]
To Artifact [3cbe823f2fbe19fa]:
- Executable file
cfg.py
- 2011-06-12 20:32:21 - part of checkin [87435601e4] on branch master - Made some changes to the parser. Don't remember what. (user: brian) [annotate]
- 2011-06-12 20:32:59 - part of checkin [60bf1cfb19] on branch tree - Made some changes to the parser. Don't remember what. (user: brian) [annotate]
28 try: 28 try:
29 render_order = topsort.topsort([[composition[movement][secti 29 render_order = topsort.topsort([[composition[movement][secti
30 except topsort.CycleError as ex: 30 except topsort.CycleError as ex:
31 print "Your instruments are synced in a circle! This makes n 31 print "Your instruments are synced in a circle! This makes n
32 print movement, section 32 print movement, section
33 print ex 33 print ex
34 sys.exit(1) 34 sys.exit(1)
> 35 while None in render_order:
> 36 render_order.remove(None)
> 37 for instrument in render_order:
> 38 grammars = composition[movement][section][instrument]["gramm
> 39 for grammar in grammars:
> 40 if isinstance(grammars[grammar], list):
> 41 for option in range(len(grammar)):
> 42 grammars[grammar][option] = parse.parse(grammars
> 43 else:
> 44 grammars[grammar] = parse.parse(grammars[grammar])
> 45 print instrument, movement, section
> 46 print grammars
> 47
> 48
> 49 def generate_score_phrase(grammar, grammars):
> 50 count_length =
> 51 while count_length < 100000:
> 52
> 53
35 54
36 55
37 # for comp_name in progression.split(): 56 # for comp_name in progression.split():
38 # comp_start_time = max_t 57 # comp_start_time = max_t
39 # for instr_name, instr in composition[comp_name].iteritems(): 58 # for instr_name, instr in composition[comp_name].iteritems():
40 # generated_score = generate_score(instr["score"], instr["grammars"]) 59 # generated_score = generate_score(instr["score"], instr["grammars"])
41 ## print generated_score 60 ## print generated_score