From c2a38a4847dfa9f561717cfc9858c275caa33876 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Fri, 17 Nov 2023 23:25:54 +0100 Subject: Updated 14 files and added 2 files (automated) --- assets/.DS_Store | Bin 10244 -> 10244 bytes assets/icons/stella-full.svg | 43 +++++++++++++++++++++++++++++++++++++++++++ assets/icons/stella.svg | 18 +++++++++++++++++- assets/js/normalizer.js | 17 ++++++++++++++--- assets/styles.css | 14 +++++--------- 5 files changed, 79 insertions(+), 13 deletions(-) create mode 100644 assets/icons/stella-full.svg (limited to 'assets') diff --git a/assets/.DS_Store b/assets/.DS_Store index 1026c09..b5223c8 100644 Binary files a/assets/.DS_Store and b/assets/.DS_Store differ diff --git a/assets/icons/stella-full.svg b/assets/icons/stella-full.svg new file mode 100644 index 0000000..55f3f5a --- /dev/null +++ b/assets/icons/stella-full.svg @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + diff --git a/assets/icons/stella.svg b/assets/icons/stella.svg index abaeea3..cf9d507 100644 --- a/assets/icons/stella.svg +++ b/assets/icons/stella.svg @@ -1 +1,17 @@ - \ No newline at end of file + + + + + + + + + + + diff --git a/assets/js/normalizer.js b/assets/js/normalizer.js index c18d242..ae3f830 100644 --- a/assets/js/normalizer.js +++ b/assets/js/normalizer.js @@ -2,12 +2,17 @@ window.currentNormalizationContext = null; window.currentNormalizationContext2 = null; window.currentNormalizationContext3 = null; -function normalizeAudio(ab, gainBoost) { +function normalizeAudio(ab, gainBoost, stella) { ab = ab.slice(0); return new Promise((res) => { let currentNormalizationProfile = currentNormalizationContext.createGain(); - currentNormalizationProfile.gain.value = (1.0 + gainBoost) / 10.0; + + if (localStorage.getItem("noamp") !== "true" && !stella) { + currentNormalizationProfile.gain.value = (1.0 + gainBoost) / 10.0 + 0.5; + } else { + currentNormalizationProfile.gain.value = (1.0 + gainBoost) / 10.0; + } if (localStorage.getItem("normalize") === "false") res(currentNormalizationProfile); @@ -33,7 +38,13 @@ function normalizeAudio(ab, gainBoost) { gain = gain / 10.0; console.log("Calculated gain:", gain); - currentNormalizationProfile.gain.value = gain; + + if (localStorage.getItem("noamp") !== "true" && !stella) { + currentNormalizationProfile.gain.value = gain + 0.5; + } else { + currentNormalizationProfile.gain.value = gain; + } + res(currentNormalizationProfile); }); }); diff --git a/assets/styles.css b/assets/styles.css index f661cdd..14d7bec 100644 --- a/assets/styles.css +++ b/assets/styles.css @@ -47,7 +47,7 @@ body.native #lyrics-page { } @media (max-width: 1200px) { - #album-grid { + #album-grid, #search-results { grid-template-columns: repeat(4, 1fr) !important; } @@ -57,7 +57,7 @@ body.native #lyrics-page { } @media (max-width: 1215px) { - #album-grid { + #album-grid, #search-results { grid-template-columns: repeat(5, 1fr) !important; } @@ -83,7 +83,7 @@ body.native #lyrics-page { } @media (max-width: 1295px) { - #album-grid { + #album-grid, #search-results { grid-template-columns: repeat(4, 1fr) !important; } @@ -107,7 +107,7 @@ body.native #lyrics-page { display: none !important; } - #album-grid { + #album-grid, #search-results { grid-template-columns: repeat(3, 1fr) !important; } @@ -117,7 +117,7 @@ body.native #lyrics-page { } @media (max-width: 767px) { - #album-grid { + #album-grid, #search-results { grid-template-columns: repeat(2, 1fr) !important; } @@ -484,10 +484,6 @@ body.web { display: none !important; } -.mist-stella { - display: none !important; -} - .tooltip { z-index: 99999 !important; } -- cgit