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 Unified Diffs Ignore Whitespace Patch

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):