style: auto-fix linting issues
This commit is contained in:
parent
79313e7a0a
commit
589504d7fd
1 changed files with 4 additions and 3 deletions
|
|
@ -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' });
|
||||
|
|
|
|||
Loading…
Reference in a new issue