renderizando projetos no mmpCreator utilizando o lmms
Deploy / Deploy (push) Successful in 1m56s
Details
Deploy / Deploy (push) Successful in 1m56s
Details
This commit is contained in:
parent
713673a6fe
commit
b26955e03d
|
|
@ -27,21 +27,6 @@ window.ROOM_NAME = ROOM_NAME;
|
|||
|
||||
const PROJECT_NAME = new URLSearchParams(window.location.search).get("project");
|
||||
|
||||
const chosenFormat = allowed.has(fmt) ? fmt : "wav";
|
||||
const body = {
|
||||
roomName: ROOM_NAME || null,
|
||||
chosenFormat,
|
||||
name:
|
||||
appState.global?.currentBeatBasslineName ||
|
||||
appState.global?.projectName ||
|
||||
"projeto",
|
||||
};
|
||||
|
||||
// ✅ Modo local: manda o XML direto
|
||||
if (!ROOM_NAME) {
|
||||
body.xml = generateXmlFromStateExported();
|
||||
}
|
||||
|
||||
// --- LÓGICA DE INICIALIZAÇÃO ---
|
||||
|
||||
// Função autoinvocada assíncrona para gerenciar o carregamento inicial
|
||||
|
|
@ -153,17 +138,18 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||
if (!fmt) return;
|
||||
|
||||
const allowed = new Set(["wav", "mp3", "ogg", "flac"]);
|
||||
const chosenFormat = allowed.has(fmt) ? fmt : "wav";
|
||||
|
||||
const icon = renderAudioBtn.querySelector("i");
|
||||
const oldIconClass = icon?.className;
|
||||
if (icon) icon.className = "fa-solid fa-spinner fa-spin";
|
||||
renderAudioBtn.style.pointerEvents = "none";
|
||||
renderAudioBtn.style.pointerEvents = "none";
|
||||
|
||||
try {
|
||||
showToast("🎛️ Renderizando no LMMS (servidor)...", "info", 4000);
|
||||
|
||||
const roomName = new URLSearchParams(window.location.search).get("room");
|
||||
const baseUrl = `https://${window.location.hostname}:33001`;
|
||||
const baseUrl = `https://${window.location.hostname}:33001`;
|
||||
|
||||
const body = {
|
||||
roomName: roomName || null,
|
||||
|
|
|
|||
Loading…
Reference in New Issue