Add correlation marker modes
This commit is contained in:
@@ -190,6 +190,7 @@ const CONFIG = {
|
||||
CORR_ZERO_ON_SILENCE: false,
|
||||
CORR_SILENCE_THRESHOLD_RMS_DBFS: -75,
|
||||
CORR_RESPONSE_S: 1.0,
|
||||
CORR_NEGATIVE_MARKER_MODE: 'memory',
|
||||
CORR_RESET_TOKEN: 0,
|
||||
XY_POINTS: 1024,
|
||||
XY_STYLE: 'lines',
|
||||
@@ -958,6 +959,10 @@ function loadConfig(opts = {}) {
|
||||
CONFIG.GONIO_MANUAL_GAIN_DB = Math.max(-35, Math.min(35, Math.round(fallback / 5) * 5));
|
||||
}
|
||||
CONFIG.CORR_RESPONSE_S = Number(CONFIG.CORR_RESPONSE_S) >= 1.75 ? 2.5 : 1.0;
|
||||
const corrNegativeMarkerMode = String(CONFIG.CORR_NEGATIVE_MARKER_MODE || 'memory').toLowerCase();
|
||||
CONFIG.CORR_NEGATIVE_MARKER_MODE = ['memory', 'hold', 'off'].includes(corrNegativeMarkerMode)
|
||||
? corrNegativeMarkerMode
|
||||
: 'memory';
|
||||
CONFIG.CORR_RESET_TOKEN = Math.max(0, Math.floor(Number(CONFIG.CORR_RESET_TOKEN) || 0));
|
||||
const persistenceMode = String(CONFIG.GONIO_PERSISTENCE_MODE || 'fast').toLowerCase();
|
||||
CONFIG.GONIO_PERSISTENCE_MODE = ['fast', 'medium', 'slow', 'custom'].includes(persistenceMode)
|
||||
|
||||
Reference in New Issue
Block a user