Keep RTW profile for all octave resolutions
This commit is contained in:
+1
-1
@@ -868,7 +868,7 @@ export function buildRtaRuntimeConfig(CONFIG = {}) {
|
||||
const bpoMode = CONFIG.RTA_BPO_MODE || '1_3';
|
||||
const layout = CONFIG.RTA_BAR_LAYOUT === 'rtw' ? 'rtw' : 'iec';
|
||||
const rtwProfile = layout === 'rtw';
|
||||
const runtimeBpoMode = rtwProfile ? '1_3' : bpoMode;
|
||||
const runtimeBpoMode = bpoMode;
|
||||
return {
|
||||
engine: rtwProfile ? 'iir' : (CONFIG.RTA_ENGINE || 'iir'),
|
||||
fftSize: CONFIG.FFT_SIZE || 4096,
|
||||
|
||||
@@ -285,11 +285,6 @@ const CONFIG_DEFAULTS = JSON.parse(JSON.stringify(CONFIG));
|
||||
function applyRtaBpoSelection(value) {
|
||||
const mode = ['1_3', '1_6', '1_12'].includes(String(value)) ? String(value) : '1_3';
|
||||
CONFIG.RTA_BPO_MODE = mode;
|
||||
// RTW remains the original 31-band third-octave reference profile. Finer
|
||||
// resolutions are Phoenix extensions and switch visibly to the IEC profile.
|
||||
if (mode !== '1_3' && CONFIG.RTA_BAR_LAYOUT === 'rtw') {
|
||||
CONFIG.RTA_BAR_LAYOUT = 'iec';
|
||||
}
|
||||
return mode;
|
||||
}
|
||||
const SOFTWARE_PRESET_IDS = Object.freeze(['default', 'claus', 'michael']);
|
||||
@@ -789,12 +784,8 @@ function loadConfig(opts = {}) {
|
||||
if (typeof saved.PPM_DIN_DECAY_DB_PER_S === 'number') CONFIG.PPM_DIN_DECAY_DB_PER_S = saved.PPM_DIN_DECAY_DB_PER_S;
|
||||
if (typeof saved.PPM_DIN_HOLD_MS === 'number') CONFIG.PPM_DIN_HOLD_MS = saved.PPM_DIN_HOLD_MS;
|
||||
if (CONFIG.RTA_BAR_LAYOUT === 'classic') CONFIG.RTA_BAR_LAYOUT = 'rtw';
|
||||
if (CONFIG.RTA_BAR_LAYOUT === 'rtw' && CONFIG.RTA_BPO_MODE !== '1_3') {
|
||||
CONFIG.RTA_BAR_LAYOUT = 'iec';
|
||||
}
|
||||
if (CONFIG.RTA_BAR_LAYOUT === 'rtw') {
|
||||
CONFIG.RTA_ENGINE = 'iir';
|
||||
CONFIG.RTA_BPO_MODE = '1_3';
|
||||
CONFIG.RTA_IIR_ORDER = 6;
|
||||
CONFIG.RTA_FREQ_RANGE = 'norm';
|
||||
const hold = Number(CONFIG.RTA_PEAK_HOLD_SEC);
|
||||
@@ -1126,7 +1117,6 @@ function applyPhoenixGlobalConfig(payload = {}) {
|
||||
}
|
||||
if (CONFIG.RTA_BAR_LAYOUT === 'rtw') {
|
||||
CONFIG.RTA_ENGINE = 'iir';
|
||||
CONFIG.RTA_BPO_MODE = '1_3';
|
||||
CONFIG.RTA_IIR_ORDER = 6;
|
||||
CONFIG.RTA_FREQ_RANGE = 'norm';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user