renderizando projetos com sample tracks. basslines ok

This commit is contained in:
JotaChina committed 2025-12-28 16:56:31 -03:00
1 parent be5b12e845
commit 43a9aff447
3 files changed
+130 -32

No files matched your search

+4 -1
View File
@@ -5,7 +5,7 @@ import {
restartAudioEditorIfPlaying,
} from "./audio/audio_audio.js";
import { initializeAudioContext } from "./audio.js";
import { handleFileLoad, generateMmpFile, generateXmlFromStateExported } from "./file.js";
import { handleFileLoad, generateMmpFile, generateXmlFromStateExported, buildRenderPackageBase64 } from "./file.js";
import {
renderAll,
loadAndRenderSampleBrowser,
@@ -156,6 +156,9 @@ document.addEventListener("DOMContentLoaded", () => {
format: chosenFormat, // ✅ sem shorthand
name: appState.global?.currentBeatBasslineName || appState.global?.projectName || "projeto",
};
const pkg = await buildRenderPackageBase64(body.name);
body.mmpzBase64 = pkg.mmpzBase64;
body.mmpzName = pkg.mmpzName;
// ✅ Modo Local: manda XML direto (senão dá missing_xml_or_room)
if (!roomName) {