fix: normalize peak audio render offline chống clip polyphony; TCP wheel điều chỉnh volume/pan

This commit is contained in:
2026-08-17 20:04:34 +07:00
parent dc331f39d8
commit bbde74f1a7
5 changed files with 344 additions and 210 deletions
+2
View File
@@ -1048,6 +1048,8 @@ async def soundfont_render(req: SoundfontRenderRequest, current_user: dict = Dep
bank=req.bank, program=req.program,
sr=req.sample_rate, bpm=req.bpm,
)
from app.core import native_render
audio = native_render.normalize_audio_peak(audio)
sf.write(out_path, audio.T, req.sample_rate)
return {
"success": True,