tentando resolver conflitos do tone no mmpCreator
Deploy / Deploy (push) Successful in 2m0s
Details
Deploy / Deploy (push) Successful in 2m0s
Details
This commit is contained in:
parent
bf060929c6
commit
2fa137a45d
|
|
@ -414,7 +414,7 @@ export async function parseMmpContent(xmlString) {
|
||||||
const lanePan = st ? Number(st.getAttribute("pan") ?? 0) / 100 : 0;
|
const lanePan = st ? Number(st.getAttribute("pan") ?? 0) / 100 : 0;
|
||||||
|
|
||||||
// cada <sampletco> é um clip
|
// cada <sampletco> é um clip
|
||||||
const clips = Array.from(node.querySelectorAll(":scope > sampletco"));
|
const clips = Array.from(node.children).filter(c => c.tagName === "sampletco");
|
||||||
clips.forEach((c, cidx) => {
|
clips.forEach((c, cidx) => {
|
||||||
// resolve caminho via manifest; fallback para /samples
|
// resolve caminho via manifest; fallback para /samples
|
||||||
const src = c.getAttribute("src") || "";
|
const src = c.getAttribute("src") || "";
|
||||||
|
|
@ -509,9 +509,9 @@ export async function parseMmpContent(xmlString) {
|
||||||
.map((trackNode, idx) => {
|
.map((trackNode, idx) => {
|
||||||
const trackName = trackNode.getAttribute("name") || "Beat/Bassline";
|
const trackName = trackNode.getAttribute("name") || "Beat/Bassline";
|
||||||
|
|
||||||
const playlistClips = Array.from(
|
const playlistClips = Array.from(trackNode.children)
|
||||||
trackNode.querySelectorAll(":scope > bbtco")
|
.filter(c => c.tagName === "bbtco")
|
||||||
).map((bbtco) => ({
|
.map((bbtco) => ({
|
||||||
pos: parseInt(bbtco.getAttribute("pos"), 10) || 0,
|
pos: parseInt(bbtco.getAttribute("pos"), 10) || 0,
|
||||||
len: parseInt(bbtco.getAttribute("len"), 10) || 192,
|
len: parseInt(bbtco.getAttribute("len"), 10) || 192,
|
||||||
name: trackName,
|
name: trackName,
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@ import {
|
||||||
applyAudioSnapshot,
|
applyAudioSnapshot,
|
||||||
} from "./audio/audio_state.js";
|
} from "./audio/audio_state.js";
|
||||||
import { DEFAULT_VOLUME, DEFAULT_PAN } from "./config.js";
|
import { DEFAULT_VOLUME, DEFAULT_PAN } from "./config.js";
|
||||||
import * as Tone from "https://esm.sh/tone";
|
|
||||||
|
|
||||||
// ---------------- ESTADOS INICIAIS ----------------
|
// ---------------- ESTADOS INICIAIS ----------------
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue