renderizando projetos no mmpCreator mudos
Deploy / Deploy (push) Successful in 1m58s Details

This commit is contained in:
JotaChina 2025-12-28 12:53:28 -03:00
parent 065cb114ae
commit f75d2d9403
1 changed files with 1 additions and 3 deletions

View File

@ -1053,8 +1053,6 @@ export async function renderProjectToBlob({ tailSec = 0.25 } = {}) {
const bpm = parseInt(document.getElementById("bpm-input")?.value, 10) || 120; const bpm = parseInt(document.getElementById("bpm-input")?.value, 10) || 120;
const stepSec = _secondsPerStep(bpm); const stepSec = _secondsPerStep(bpm);
const duration = _projectDurationSeconds(bpm) + Math.max(0, Number(tailSec) || 0); const duration = _projectDurationSeconds(bpm) + Math.max(0, Number(tailSec) || 0);
const inst = new Cls(Tone.getContext(), track.params || track.pluginData || {});
inst.connect(mix.instVol);
const buffer = await Tone.Offline(async ({ transport }) => { const buffer = await Tone.Offline(async ({ transport }) => {
transport.bpm.value = bpm; transport.bpm.value = bpm;
@ -1163,7 +1161,7 @@ export async function renderProjectToBlob({ tailSec = 0.25 } = {}) {
return null; return null;
} }
const inst = new Cls(null, track.params || track.pluginData || {}); const inst = new Cls(Tone.getContext(), track.params || track.pluginData || {});
inst.connect(mix.instVol); inst.connect(mix.instVol);
pluginCache.set(key, inst); pluginCache.set(key, inst);