diff --git a/assets/js/creations/file.js b/assets/js/creations/file.js index d5ec7e85..34401525 100755 --- a/assets/js/creations/file.js +++ b/assets/js/creations/file.js @@ -504,6 +504,16 @@ export async function parseMmpContent(xmlString) { console.error("Erro ao carregar áudios:", error); } + const patternNames = basslineContainers.map(b => b.name); // ["Caixa","Kick","Batida/Linha de Baixo 2",...] + + newTracks.forEach(t => { + if (t.type === "bassline") return; + + (t.patterns || []).forEach((p, idx) => { + if (patternNames[idx]) p.name = patternNames[idx]; + }); + }); + // Atualiza estado global appState.pattern.tracks = newTracks; appState.pattern.focusedBasslineId = null; // Reseta o foco