MCPcopy
hub / github.com/stemdeckapp/stemdeck / exportMix

Function exportMix

static/mobile/app.js:333–346  ·  view source on GitHub ↗
(kind)

Source from the content-addressed store, hash-verified

331}
332
333function exportMix(kind) {
334 const id = state.current?.id;
335 if (!id || !lanes().length) return;
336 const names = [];
337 const gains = [];
338 for (const l of lanes()) {
339 const g = effectiveGain(l.name);
340 if (g > 0) { names.push(l.name); gains.push(g); }
341 }
342 if (!names.length) { toast("Every stem is muted — nothing to export."); return; }
343 const q = new URLSearchParams({ stems: names.join(","), gains: gains.map((g) => g.toFixed(3)).join(",") });
344 const path = kind === "mp4" ? `video.mp4` : `mixdown.wav`;
345 triggerDownload(`/api/jobs/${id}/${path}?${q}`);
346}
347
348let _toastTimer = null;
349function toast(msg) {

Callers 1

app.jsFile · 0.85

Calls 4

lanesFunction · 0.85
effectiveGainFunction · 0.85
toastFunction · 0.85
triggerDownloadFunction · 0.85

Tested by

no test coverage detected