24k-4: RT_FIRCONV=3 (application law 1.019*M^1.8345); rendersnap2 wav-path hazard fixed (RENDER_FILE parse, was destroying refs — dual_b1q_1.0.wav restored); corpus TOTAL 2.286
This commit is contained in:
@@ -47,8 +47,14 @@ def main():
|
||||
os.makedirs(OUT, exist_ok=True)
|
||||
subprocess.run("pkill -9 -x reaper; pkill -9 -f '[y]abridge'; "
|
||||
"rm -rf /run/user/1000/yabridge-soothe2_x64-*; sleep 1", shell=True)
|
||||
wav = rpp.replace('.rpp', '.wav')
|
||||
if os.path.exists(wav):
|
||||
# wav path = RENDER_FILE from the project (NOT rpp.replace!) — deleting the
|
||||
# wrong file destroyed corpus refs once (24k-3 hazard).
|
||||
wav = None
|
||||
for ln in open(rpp, 'r', errors='replace'):
|
||||
if 'RENDER_FILE' in ln and '"' in ln:
|
||||
wav = ln.split('"')[1]
|
||||
break
|
||||
if wav and os.path.exists(wav):
|
||||
os.remove(wav)
|
||||
proc = subprocess.Popen(['/usr/bin/reaper', '-nosplash', '-ignoreerrors',
|
||||
'-renderproject', rpp],
|
||||
@@ -187,7 +193,7 @@ def main():
|
||||
break
|
||||
time.sleep(0.1)
|
||||
print('saved=%d reaper_rc=%s wav=%s' % (saved, proc.poll(),
|
||||
os.path.getsize(wav) if os.path.exists(wav) else 'NONE'))
|
||||
os.path.getsize(wav) if wav and os.path.exists(wav) else 'NONE'))
|
||||
return 0
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user