Initial commit: soothe2 RE workspace + roadmap
- Инфраструктура: RTTI-дампы (rtti_dsp/full.json), декомпиляции DSP-классов (decomp_*.txt), Ghidra-скрипты (Dump*.java, ImportRtti*.java, Diag.java), depthcurve/curve_fits LUT. - Поведенческая модель sim_v5.py + sim.py (RMSE ~0.3dB), утилиты (measure, tt_sweep, patchparam, sweep, harness_*, verify_sim). - summary.md + roadmap.md (контракт из manual M1-M12, топология пайплайна из OCR, фазы A-C). - pipeline_ocr.txt: OCR диаграммы Appendix A (mid/side ручка, trim/mix/bypass порядок).
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import re, sys
|
||||
def patch_tt(template, src_wav, out_rpp, out_wav, dur=6.0):
|
||||
t = open(template).read()
|
||||
t = t.replace('/home/m/soothe-bt/testtone.wav', src_wav)
|
||||
ns = int(44100*dur)
|
||||
t = re.sub(r'LENGTH 6\.000000 264600 264600 1', f'LENGTH {dur:.6f} {ns} {ns} 1', t)
|
||||
t = re.sub(r'NAME ".*?"', 'NAME "' + out_wav.split("/")[-1] + '"', t)
|
||||
t = t.replace('RENDER_FILE "/home/m/soothe-bt/tt_ref.wav"', f'RENDER_FILE "{out_wav}"')
|
||||
open(out_rpp, 'w').write(t)
|
||||
Reference in New Issue
Block a user