spiffyscore

Check-in [fde4a012ea]
Login
Overview
SHA1:fde4a012ea2aae50da5590bba75b1fd1e1f2d781
Date: 2011-10-13 18:15:20
User: brian
Comment:Program now renders instruments according to sync order
Timelines: family | ancestors | descendants | both | develop
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2011-10-20
18:38
[8c559c112b] Merged the refactor branch into the main develop branch (user: brian, tags: develop)
2011-10-18
20:19
[42c3ba150c] 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. (user: brian, tags: refactor)
2011-10-13
18:15
[fde4a012ea] Program now renders instruments according to sync order (user: brian, tags: develop)
2011-10-11
15:31
[192b8b1639] Merged in rewrite of core functionality (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):