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

Function buildStripStems

static/js/player.js:735–750  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

733}
734
735export function buildStripStems() {
736 const container = document.getElementById("appbarStripStems");
737 if (!container) return;
738 container.innerHTML = "";
739 for (const name of STEM_NAMES) {
740 const color = STEM_COLORS[name];
741 const active = selectedStems.has(name);
742 const sq = document.createElement("div");
743 sq.className = "strip-sq strip-sq-stem" + (active ? "" : " inactive");
744 sq.dataset.stem = name;
745 if (active) sq.style.cssText = `background:${color}1a;border-color:${color}44;color:${color}`;
746 const srcSvg = document.querySelector(`.stem-choice[data-stem="${name}"] svg`);
747 if (srcSvg) sq.appendChild(srcSvg.cloneNode(true));
748 container.appendChild(sq);
749 }
750}
751
752function _applyLaneHeight(count) {
753 const wavePanel = document.querySelector(".daw-wave-panel");

Callers 3

handleStemChoiceClickFunction · 0.90
wireAllButtonFunction · 0.90
main.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected