scriabin/csv_to_score.py : Print the begin/end locations of the inserted Scriabin excerpts
This commit is contained in:
parent
3c412a3c96
commit
0ee2a37438
@ -222,7 +222,13 @@ def gen_reference( scoreL, out_dir, out_fn ):
|
||||
|
||||
out_fn = os.path.join(out_dir,out_fn)
|
||||
|
||||
|
||||
with open(out_fn,"w") as f:
|
||||
|
||||
f.write("source meas oloc op secs\n")
|
||||
f.write("------ ---- ----- ---- ----------\n")
|
||||
|
||||
r0 = None
|
||||
for r in scoreL:
|
||||
|
||||
if r['opcode']=='ped' or r['oloc']:
|
||||
@ -236,6 +242,14 @@ def gen_reference( scoreL, out_dir, out_fn ):
|
||||
s = f"{src:7} {meas:4} {oloc:5} {label:5} {secs}\n"
|
||||
f.write(s)
|
||||
|
||||
if r0 and (r0['src'] == 'gutim' and r['src'] != 'gutim'):
|
||||
print(r['src'],r['oloc'],end=" ")
|
||||
|
||||
if r0 and (r0['src'] != 'gutim' and r['src'] == 'gutim'):
|
||||
print(r0['oloc'])
|
||||
|
||||
r0 = r
|
||||
|
||||
def insert_pedal( scoreL, locL ):
|
||||
|
||||
def _ped_msg( secs, d1 ):
|
||||
|
Loading…
Reference in New Issue
Block a user