diff --git a/js/settings.js b/js/settings.js index a39b666..ae71483 100644 --- a/js/settings.js +++ b/js/settings.js @@ -1566,9 +1566,10 @@ export async function initializeSettings(scrobbler, player, api, ui) { const prev = GEQ_FREQUENCIES[Math.max(0, i - 1)]; const next = GEQ_FREQUENCIES[Math.min(GEQ_FREQUENCIES.length - 1, i + 1)]; const octaves = Math.log2(next / prev); - const q = octaves > 0 - ? (Math.SQRT2 / (2 * Math.sinh((Math.LN2 / 2) * octaves))).toFixed(2) - : Math.SQRT2.toFixed(2); + const q = + octaves > 0 + ? (Math.SQRT2 / (2 * Math.sinh((Math.LN2 / 2) * octaves))).toFixed(2) + : Math.SQRT2.toFixed(2); lines.push(`Filter ${i + 1}: ON PK Fc ${freq} Hz Gain ${geqGains[i].toFixed(1)} dB Q ${q}`); }); const blob = new Blob([lines.join('\n')], { type: 'text/plain' });