renderizando projetos no mmpCreator mudos
Deploy / Deploy (push) Successful in 2m7s
Details
Deploy / Deploy (push) Successful in 2m7s
Details
This commit is contained in:
parent
f1f4631db5
commit
065cb114ae
|
|
@ -1053,6 +1053,8 @@ 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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue