diff --git a/static/app.js b/static/app.js index 5168327..d4c4ae9 100644 --- a/static/app.js +++ b/static/app.js @@ -1416,7 +1416,7 @@ function channelBar(d) { h("div", { class: "chselwrap", style: ccStyle(d, kind, idx) }, sel), h("button", { class: "icon nav", "aria-label": t("Next channel"), onclick: () => go(pos + 1) }, svgIcon(ICON.next)), ledMeter(d.id, kind, idx, "h"), - kind === "out" ? limLed(d.id, idx, "h") : null, + kind === "out" ? limLed(d.id, idx, "txt barlim") : null, toggleBtn("MUTE", kind, idx, "mute", "mute")); } @@ -1426,6 +1426,12 @@ function viewChannel(d) { const redrawPeq = () => { const c = main.querySelector("canvas.curve"); c && drawCurve(c, chans(dev(), k)[i], S.band); }; const li = linkInfo(d, k, i); + // gain of an output: LIM lights up next to the value when the limiter acts + const gainRow = () => { + const row = paramSlider("Gain", k, i, "gain", "gain"); + if (k === "out") row.querySelector(".valbox").before(limLed(d.id, i, "txt gainlim")); + return row; + }; const basics = h("div", { class: "card" }, h("h3", {}, h("span", { class: "grow" }, t("Channel")), h("button", { class: "small", onclick: () => copyDialog(d, k, i) }, t("Copy to…"))), li ? h("p", { class: "info linknote", style: `--lc:${li.color}` }, svgIcon(ICON.link), @@ -1444,7 +1450,7 @@ function viewChannel(d) { }, onchange: e => { setParam(k, i, "name", cleanName(e.target.value).trim()); render(); } })), toggleBtn("Phase Ø", k, i, "polarity")), - paramSlider("Gain", k, i, "gain", "gain"), + gainRow(), paramSlider("Delay", k, i, "delay", "delay")); const xo = (title, key) => h("div", { class: "xo" }, diff --git a/static/style.css b/static/style.css index 2b4aba6..7fb8d75 100644 --- a/static/style.css +++ b/static/style.css @@ -944,3 +944,5 @@ body.dashonly #viewtabs, body.dashonly #devtabs, body.dashonly #btn-settings, bo body.dashonly #main { margin-left: 0; } body.dashonly #btn-muteall { margin-left: auto; } body.dashonly .dlink { cursor: default; } +.limled.gainlim { margin: 0 2px 0 auto; font-size: 10px; } +.limled.barlim { margin: 0 2px; font-size: 10px; }