fix: NAM amp level param now controls input drive, JACK period 256, toggle API matching
This commit is contained in:
+6
-8
@@ -1748,16 +1748,14 @@ class WebServer:
|
||||
"channel_mode": self._channel_mgr.mode,
|
||||
# Audio levels from pipeline (RMS float32 normalized 0.0-1.0, scaled to 0-100)
|
||||
"input_level": (
|
||||
min(100, round((getattr(pl, '_input_level', 0.0) or 0.0) * 150))
|
||||
if pl and isinstance(getattr(pl, '_input_level', None), (int, float))
|
||||
and not math.isnan(getattr(pl, '_input_level', 0.0))
|
||||
else 0
|
||||
0
|
||||
if pl is None or getattr(pl, '_input_level', None) is None
|
||||
else max(0, min(100, round(0 if (v := float(getattr(pl, '_input_level', 0.0))) != v else v * 150)))
|
||||
),
|
||||
"output_level": (
|
||||
min(100, round((getattr(pl, '_output_level', 0.0) or 0.0) * 150))
|
||||
if pl and isinstance(getattr(pl, '_output_level', None), (int, float))
|
||||
and not math.isnan(getattr(pl, '_output_level', 0.0))
|
||||
else 0
|
||||
0
|
||||
if pl is None or getattr(pl, '_output_level', None) is None
|
||||
else max(0, min(100, round(0 if (v := float(getattr(pl, '_output_level', 0.0))) != v else v * 150)))
|
||||
),
|
||||
# System stats
|
||||
"cpu_percent": self._gather_system_stats().get("cpu_percent", 0),
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -6,7 +6,7 @@
|
||||
<meta name="theme-color" content="#0A0A0C" />
|
||||
<title>NAM Pedal</title>
|
||||
<link rel="icon" type="image/svg+xml" href="/ui/favicon.svg" />
|
||||
<script type="module" crossorigin src="/ui/assets/index-B7j_x4LZ.js"></script>
|
||||
<script type="module" crossorigin src="/ui/assets/index-CHS9Y8OM.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/ui/assets/index-B-zxH4pN.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Reference in New Issue
Block a user