FEAT: cài đặt các thư viện để chuẩn bị build exe trên window
This commit is contained in:
@@ -105,6 +105,7 @@ class PythonRenderEngine:
|
||||
# Parse synth_engine struct (Task C) — fall back to flat fields
|
||||
se = track.get("synth_engine", {}) or {}
|
||||
instrument_id = se.get("plugin_id") or track.get("instrument_id", "") or track.get("instrument", "")
|
||||
vst_path = se.get("plugin_path") or "" # spec desktop: load VST3 từ plugin_path
|
||||
instrument_source = se.get("type") or track.get("instrument_source", "soundfont")
|
||||
soundfont_bank = se.get("soundfont_bank") if se.get("soundfont_bank") is not None else track.get("soundfont_bank", 0)
|
||||
soundfont_program = se.get("soundfont_program") if se.get("soundfont_program") is not None else track.get("soundfont_program", 0)
|
||||
@@ -189,7 +190,8 @@ class PythonRenderEngine:
|
||||
if midi_events:
|
||||
try:
|
||||
plugin_mgr = PluginManager()
|
||||
vst = plugin_mgr.load_vst(instrument_id) if instrument_id else None
|
||||
# Ưu tiên plugin_path (spec desktop) — fallback plugin_id theo tên
|
||||
vst = plugin_mgr.load_vst(vst_path or instrument_id) if (vst_path or instrument_id) else None
|
||||
|
||||
if instrument_source == "pianobook":
|
||||
dspreset_path = track.get("dspreset_path", "")
|
||||
|
||||
Reference in New Issue
Block a user