criação de novas patterns de composição nos projetos

This commit is contained in:
JotaChina committed 2025-12-27 18:32:06 -03:00
1 parent df0708adf3
commit f80d6511a4
3 files changed
+144 -12

No files matched your search

+8
View File
@@ -125,6 +125,14 @@ document.addEventListener("DOMContentLoaded", () => {
const zoomInBtn = document.getElementById("zoom-in-btn");
const zoomOutBtn = document.getElementById("zoom-out-btn");
const deleteClipBtn = document.getElementById("delete-clip");
// Pattern vazia
const newPatternBtn = document.getElementById("new-pattern-btn");
newPatternBtn?.addEventListener("click", () => {
const name = prompt("Nome da nova pattern:", "");
sendAction({ type: "CREATE_NEW_PATTERN", name: name || "" });
});
// Configuração do botão de Gravação
const recordBtn = document.getElementById('record-btn');