fix(bridge): load dung VSTi theo track (V9) - bo early-return mui theo flag, load qua Tauri invoke khi co path, guard path sai (WaveObserver vs Nexus), chi mo GUI khi load OK; sync 6 ban JS + index.html ?v; kem cac fix bridge truoc (bugs 1-4, GUI restore)
This commit is contained in:
@@ -39,7 +39,7 @@ def find_bridge_exe() -> str:
|
||||
return ""
|
||||
|
||||
|
||||
def normalize_audio_peak(audio, target_db=-3.0):
|
||||
def normalize_audio_peak(audio, target_db=0.0):
|
||||
"""Scale audio (numpy array, peak) về target_db nếu vượt; giữ nguyên nếu dưới.
|
||||
|
||||
Chống clip do note MIDI chồng (polyphony) — spec midi_polyphony_loudness §II:
|
||||
@@ -57,7 +57,7 @@ def normalize_audio_peak(audio, target_db=-3.0):
|
||||
return audio
|
||||
|
||||
|
||||
def normalize_peak_file(path, target_db=-3.0):
|
||||
def normalize_peak_file(path, target_db=0.0):
|
||||
"""Post-render WAV: scan peak, vượt target_db → scale toàn file (giữ format)."""
|
||||
try:
|
||||
info = sf.info(path)
|
||||
|
||||
Reference in New Issue
Block a user