Correct goniometer transport and correlation meter
This commit is contained in:
+24
-8
@@ -270,8 +270,7 @@ function syncUI() {
|
||||
['opt_rmsColNorm', CONFIG.RMS_COLOR_NORMAL],
|
||||
['opt_rmsColWarn', CONFIG.RMS_COLOR_WARN],
|
||||
|
||||
['opt_corrSmooth', CONFIG.CORR_SMOOTH, 'val_corrSmooth', (v)=>Number(v).toFixed(2)],
|
||||
['opt_corrZeroOnSilence', CONFIG.CORR_ZERO_ON_SILENCE, null, null, 'checkbox'],
|
||||
['opt_corrResponse', String(Number(CONFIG.CORR_RESPONSE_S) >= 1.75 ? 2.5 : 1)],
|
||||
['opt_xyPoints', String(CONFIG.XY_POINTS)],
|
||||
['opt_xyStyle', CONFIG.XY_STYLE],
|
||||
['opt_xySilenceGate', CONFIG.XY_SILENCE_GATE_ENABLED, null, null, 'checkbox'],
|
||||
@@ -316,6 +315,7 @@ function syncUI() {
|
||||
['opt_phaseTrail', CONFIG.PHASE_TRAIL_ENABLED, null, null, 'checkbox'],
|
||||
['opt_goniGap', CONFIG.GONI_METER_GAP, 'val_goniGap', (v)=>`${v} px`],
|
||||
['opt_goniFade', CONFIG.GONIO_LINE_FADE_MS, 'val_goniFade', (v)=>`${Math.round(v)} ms`],
|
||||
['opt_goniPersistence', CONFIG.GONIO_PERSISTENCE_MODE || 'fast'],
|
||||
['opt_panelDividers', CONFIG.PANEL_DIVIDERS_ENABLED, null, null, 'checkbox'],
|
||||
['opt_lufsRedThr', CONFIG.LUFS_RED_START],
|
||||
['opt_lufsYellowThr', CONFIG.LUFS_YELLOW_START],
|
||||
@@ -916,11 +916,17 @@ function wireHandlers(env) {
|
||||
notifyPhoenixGlobalConfig();
|
||||
});
|
||||
|
||||
h('opt_corrSmooth', v => CONFIG.CORR_SMOOTH = clamp(+v, 0.5, 0.98), 'val_corrSmooth', v=>Number(v).toFixed(2));
|
||||
h('opt_corrZeroOnSilence', v => {
|
||||
CONFIG.CORR_ZERO_ON_SILENCE = !!v;
|
||||
return CONFIG.CORR_ZERO_ON_SILENCE;
|
||||
}, null, null, true);
|
||||
h('opt_corrResponse', v => {
|
||||
CONFIG.CORR_RESPONSE_S = Number(v) >= 1.75 ? 2.5 : 1.0;
|
||||
try { env?.notifyRtaConfig?.(); } catch (_) {}
|
||||
return String(CONFIG.CORR_RESPONSE_S);
|
||||
});
|
||||
const corrResetPeak = E('opt_corrResetPeak');
|
||||
if (corrResetPeak) corrResetPeak.onclick = () => {
|
||||
CONFIG.CORR_RESET_TOKEN = Math.max(0, Math.floor(Number(CONFIG.CORR_RESET_TOKEN) || 0)) + 1;
|
||||
saveConfig();
|
||||
try { env?.notifyRtaConfig?.(); } catch (_) {}
|
||||
};
|
||||
h('opt_xyPoints', v => {
|
||||
const raw = Number(v);
|
||||
CONFIG.XY_POINTS = [128, 256, 512, 1024, 2048].includes(raw)
|
||||
@@ -1047,7 +1053,17 @@ function wireHandlers(env) {
|
||||
notifyPhoenixGlobalConfig();
|
||||
}, null, null, true);
|
||||
h('opt_goniGap', v => CONFIG.GONI_METER_GAP = clamp(+v, 2, 24), 'val_goniGap', v=>`${v} px`);
|
||||
h('opt_goniFade', v => { CONFIG.GONIO_LINE_FADE_MS = clamp(+v, 0, 600); }, 'val_goniFade', v=>`${Math.round(v)} ms`);
|
||||
h('opt_goniPersistence', v => {
|
||||
const mode = String(v).toLowerCase();
|
||||
CONFIG.GONIO_PERSISTENCE_MODE = ['fast', 'medium', 'slow', 'custom'].includes(mode) ? mode : 'fast';
|
||||
return CONFIG.GONIO_PERSISTENCE_MODE;
|
||||
});
|
||||
h('opt_goniFade', v => {
|
||||
CONFIG.GONIO_LINE_FADE_MS = clamp(+v, 0, 600);
|
||||
CONFIG.GONIO_PERSISTENCE_MODE = 'custom';
|
||||
const persistence = E('opt_goniPersistence');
|
||||
if (persistence) persistence.value = 'custom';
|
||||
}, 'val_goniFade', v=>`${Math.round(v)} ms`);
|
||||
h('opt_panelDividers', v => {
|
||||
CONFIG.PANEL_DIVIDERS_ENABLED = !!v;
|
||||
return CONFIG.PANEL_DIVIDERS_ENABLED;
|
||||
|
||||
Reference in New Issue
Block a user