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

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

116
117
118
119
120
121
122








123
124
125
126
127
128
129
130
131
        print "; Section " + section
        subsection_start = section_start
        section = composition[section]
        for subsection in ["intro", "body", "outro"]:
            try:
                print "; Subsection " + subsection
                subsection = section[subsection]








                instrs = []
                for instr in subsection:
                    print ";Instrument " + instr
                    instr = subsection[instr]
                    sync = None
                    max_time = instr["duration"]
                    instr_score = render_instr(instr, sync, max_time)
                    instrs.append(instr_score)
                    for line in generate_csound_score(instr_score, instr["score_line"], subsection_start):







>
>
>
>
>
>
>
>

|







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