renderizando projetos no mmpCreator mudos
Deploy / Deploy (push) Successful in 2m6s
Details
Deploy / Deploy (push) Successful in 2m6s
Details
This commit is contained in:
parent
f75d2d9403
commit
c2f5b1018f
|
|
@ -211,7 +211,7 @@ function getSongInstrument(track, patternIndex) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const mix = refreshSongMixFor(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);
|
inst.connect(mix.instVol);
|
||||||
|
|
||||||
track._songInstrument[patternIndex] = inst;
|
track._songInstrument[patternIndex] = inst;
|
||||||
|
|
@ -1058,7 +1058,10 @@ export async function renderProjectToBlob({ tailSec = 0.25 } = {}) {
|
||||||
transport.bpm.value = bpm;
|
transport.bpm.value = bpm;
|
||||||
|
|
||||||
const rawCtx = Tone.getContext().rawContext;
|
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)
|
// CACHE de buffers (para não baixar/decodificar repetido)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue