Channel tab: LIM next to the gain value and in the channel bar
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f043e1a261
commit
5f0f893810
2 files changed
+10
-2
No files matched your search
+8
-2
@@ -1416,7 +1416,7 @@ function channelBar(d) {
|
|||||||
h("div", { class: "chselwrap", style: ccStyle(d, kind, idx) }, sel),
|
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)),
|
h("button", { class: "icon nav", "aria-label": t("Next channel"), onclick: () => go(pos + 1) }, svgIcon(ICON.next)),
|
||||||
ledMeter(d.id, kind, idx, "h"),
|
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"));
|
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 redrawPeq = () => { const c = main.querySelector("canvas.curve"); c && drawCurve(c, chans(dev(), k)[i], S.band); };
|
||||||
|
|
||||||
const li = linkInfo(d, k, i);
|
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")),
|
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…"))),
|
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),
|
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(); } })),
|
onchange: e => { setParam(k, i, "name", cleanName(e.target.value).trim()); render(); } })),
|
||||||
toggleBtn("Phase Ø", k, i, "polarity")),
|
toggleBtn("Phase Ø", k, i, "polarity")),
|
||||||
paramSlider("Gain", k, i, "gain", "gain"),
|
gainRow(),
|
||||||
paramSlider("Delay", k, i, "delay", "delay"));
|
paramSlider("Delay", k, i, "delay", "delay"));
|
||||||
|
|
||||||
const xo = (title, key) => h("div", { class: "xo" },
|
const xo = (title, key) => h("div", { class: "xo" },
|
||||||
|
|||||||
@@ -944,3 +944,5 @@ body.dashonly #viewtabs, body.dashonly #devtabs, body.dashonly #btn-settings, bo
|
|||||||
body.dashonly #main { margin-left: 0; }
|
body.dashonly #main { margin-left: 0; }
|
||||||
body.dashonly #btn-muteall { margin-left: auto; }
|
body.dashonly #btn-muteall { margin-left: auto; }
|
||||||
body.dashonly .dlink { cursor: default; }
|
body.dashonly .dlink { cursor: default; }
|
||||||
|
.limled.gainlim { margin: 0 2px 0 auto; font-size: 10px; }
|
||||||
|
.limled.barlim { margin: 0 2px; font-size: 10px; }
|
||||||
Reference in new issue
Block a user