renderizando projetos no mmpCreator mudos

This commit is contained in:
JotaChina committed 2025-12-28 12:35:00 -03:00
1 parent c63b872449
commit 69c9fad8ea
1 file changed
+2
@@ -1053,6 +1053,8 @@ export async function renderProjectToBlob({ tailSec = 0.25 } = {}) {
const bpm = parseInt(document.getElementById("bpm-input")?.value, 10) || 120;
const stepSec = _secondsPerStep(bpm);
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 }) => {
transport.bpm.value = bpm;