Add selectable RTA filter characteristics
This commit is contained in:
@@ -278,6 +278,7 @@ function syncUI() {
|
||||
['opt_barThin', CONFIG.METER_BAR_THIN, 'val_barThin', (v)=>Number(v).toFixed(2)],
|
||||
['opt_headerTextColor', CONFIG.HEADER_TEXT_COLOR || '#ffe066'],
|
||||
['opt_rtaEngine', CONFIG.RTA_ENGINE || 'iir'],
|
||||
['opt_rtaFilterbank', CONFIG.RTA_IIR_FILTERBANK || 'legacy'],
|
||||
['opt_rtaBpo', CONFIG.RTA_BPO_MODE || '1_6'],
|
||||
['opt_rtaOrder', CONFIG.RTA_IIR_ORDER ?? 4],
|
||||
['opt_rtaDisplayGainFft', CONFIG.RTA_DISPLAY_GAIN_FFT_DB ?? 12, 'val_rtaDisplayGainFft', (v)=>`${v} dB`],
|
||||
@@ -1074,6 +1075,10 @@ function wireHandlers(env) {
|
||||
CONFIG.RTA_ENGINE = CONFIG.RTA_BAR_LAYOUT === 'rtw' ? 'iir' : ((v === 'iir') ? 'iir' : 'fft');
|
||||
return CONFIG.RTA_ENGINE;
|
||||
});
|
||||
h('opt_rtaFilterbank', v => {
|
||||
CONFIG.RTA_IIR_FILTERBANK = v === 'butterworth' ? 'butterworth' : 'legacy';
|
||||
return CONFIG.RTA_IIR_FILTERBANK;
|
||||
});
|
||||
h('opt_rtaBpo', v => {
|
||||
applyRtaBpoSelection(v);
|
||||
const layoutControl = E('opt_rtaLayout');
|
||||
|
||||
Reference in New Issue
Block a user