This commit is contained in:
khodowany
2026-10-04 15:51:18 -05:00
parent 405066eb43
commit f234dd6d51
54 changed files with 2104 additions and 330 deletions
+4 -2
View File
@@ -23,7 +23,8 @@ def region(document, part):
def staged(document, details, stage, tempo):
notes=[]
for phrase in details['phrases']:
for n in phrase['lead_stages'].get(stage,{}).get('notes',[]):
selected=phrase['lead_stages'].get(stage) or phrase['draft']
for n in selected.get('notes',[]):
p=n['pitch']
notes.append(types.Note(F(n['start']),F(n['end']),types.Pitch(p['letter'],F(p['alter']),p['octave']),
tuple(n['sources']),n['role'],continuation=n['continuation'],event_id=n['event_id']))
@@ -86,7 +87,8 @@ def export(assets,baseline,output):
notes_report.append(f"{phrase['id']}: {phrase['start']}–{phrase['end']}; {phrase['ending']}; completed={phrase['ending_completed']}\n")
for n in phrase['draft']['notes']:
p=n['pitch'];tone=types.Pitch(p['letter'],F(p['alter']),p['octave'])
pos=n['position'];notes_report.append(f" {n['start']}–{n['end']} {tone.label()} {n['role']} string {pos[0]} fret {pos[1]}\n")
pos=n['position'];tab=f' string {pos[0]} fret {pos[1]}' if pos else ' (draft pitch; final TAB in XML)'
notes_report.append(f" {n['start']}–{n['end']} {tone.label()} {n['role']}{tab}\n")
back_audio=mix([backing],tempo,output,tone_cache)
for name,document in versions.items():
label=key+'_'+name