renderizando projetos no mmpCreator mudos
Deploy / Deploy (push) Successful in 2m6s Details

This commit is contained in:
JotaChina 2025-12-28 13:18:14 -03:00
parent f75d2d9403
commit c2f5b1018f
1 changed files with 5 additions and 2 deletions

View File

@ -211,7 +211,7 @@ function getSongInstrument(track, patternIndex) {
}
const mix = refreshSongMixFor(track, patternIndex);
const inst = new Cls(null, track.params || track.pluginData || {});
const inst = new Cls(Tone.getContext(), track.params || track.pluginData || {});
inst.connect(mix.instVol);
track._songInstrument[patternIndex] = inst;
@ -1058,7 +1058,10 @@ export async function renderProjectToBlob({ tailSec = 0.25 } = {}) {
transport.bpm.value = bpm;
const rawCtx = Tone.getContext().rawContext;
const master = new Tone.Gain(1).toDestination();
// ✅ master no OFFLINE e conectando explicitamente no destination do OFFLINE
const master = new Tone.Gain(1);
master.connect(rawCtx.destination);
// ------------------------------------------------------------
// CACHE de buffers (para não baixar/decodificar repetido)