style: auto-fix linting issues

This commit is contained in:
tryptz 2026-04-07 13:38:34 +00:00 committed by edideaur
parent 79313e7a0a
commit 589504d7fd

View file

@ -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' });