spiffyscore

Check-in [fde4a012ea]
Login
Overview
Comment:Program now renders instruments according to sync order
Timelines: family | ancestors | descendants | both | develop
Files: files | file ages | folders
SHA1: fde4a012ea2aae50da5590bba75b1fd1e1f2d781
User & Date: brian on 2011-10-13 18:15:20
Other Links: branch diff | manifest | tags
Context
2011-10-20
18:38
Merged the refactor branch into the main develop branch check-in: 8c559c112b user: brian tags: develop
2011-10-18
20:19
Broke the score generator by not initialing a first phrase in an empty score. Checkpointing so I can refactor and clean things up to make more progress. check-in: 42c3ba150c user: brian tags: refactor
2011-10-13
18:15
Program now renders instruments according to sync order check-in: fde4a012ea user: brian tags: develop
2011-10-11
15:31
Merged in rewrite of core functionality check-in: 192b8b1639 user: brian tags: develop
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Modified cfg.py from [24a74756aa] to [52bf709d42].

   116    116           print "; Section " + section
   117    117           subsection_start = section_start
   118    118           section = composition[section]
   119    119           for subsection in ["intro", "body", "outro"]:
   120    120               try:
   121    121                   print "; Subsection " + subsection
   122    122                   subsection = section[subsection]
   123         -                instrs = []
          123  +                unordered_instrs = []
   124    124                   for instr in subsection:
          125  +                    if not "sync" in subsection[instr]:
          126  +                        subsection[instr]["sync"] = None
          127  +                    unordered_instrs.append([subsection[instr]["sync"], instr])
          128  +                ordered_instrs = topsort.topsort(unordered_instrs)
          129  +                ordered_instrs.remove(None)
          130  +                pdb.set_trace()
          131  +                instrs = []
          132  +                for instr in ordered_instrs:
   125    133                       print ";Instrument " + instr
   126    134                       instr = subsection[instr]
   127    135                       sync = None
   128    136                       max_time = instr["duration"]
   129    137                       instr_score = render_instr(instr, sync, max_time)
   130    138                       instrs.append(instr_score)
   131    139                       for line in generate_csound_score(instr_score, instr["score_line"], subsection_start):