Audio test and dashboard limiter module: LIM text instead of the bar
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a02e5dd53e
commit
144f62f240
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -2090,7 +2090,7 @@ function viewTest(d) {
|
||||
ticks: [-60, -50, -40, -30, -20, -10, 0].map(db => [(db - LVL_MIN) * 2, String(db)]),
|
||||
onInput: v => { const db = LVL_MIN + v / 2; d.test_level = db; val.textContent = `${db.toFixed(1)} dB`; sendTestLevel(d, db); } });
|
||||
const outs = chans(d, "out").map((ch, i) => {
|
||||
const m = h("div", { class: "tmeter" + (ch.mute ? " muted" : "") }, ledMeter(d.id, "out", i), h("small", {}, chLabel("out", i)), limLed(d.id, i));
|
||||
const m = h("div", { class: "tmeter" + (ch.mute ? " muted" : "") }, ledMeter(d.id, "out", i), h("small", {}, chLabel("out", i)), limLed(d.id, i, "txt"));
|
||||
m.append(toggleBtn("MUTE", "out", i, "mute", "mute small", v => m.classList.toggle("muted", v)));
|
||||
return m;
|
||||
});
|
||||
|
||||
+1
-1
@@ -178,7 +178,7 @@ const DASH_MODULES = {
|
||||
body(m, d) {
|
||||
return h("div", { class: "dlist" }, chans(d, "out").map((ch, o) => {
|
||||
const c = limCalc(d.id, o, ch.limit.threshold);
|
||||
return h("div", { class: "drow" }, limLed(d.id, o), h("span", { class: "dlab" }, chLabel("out", o)),
|
||||
return h("div", { class: "drow" }, limLed(d.id, o, "txt"), h("span", { class: "dlab" }, chLabel("out", o)),
|
||||
h("span", { class: "grow dsub" }, c ? c.amp.name : ""),
|
||||
h("b", { class: "dval" }, c ? fmtW(c.p) : SPEC.thresh.fmt(ch.limit.threshold)));
|
||||
}));
|
||||
|
||||
Reference in new issue
Block a user