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("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" },
|
||||
|
||||
Reference in new issue
Block a user