diff --git a/src/pages/Playroom.vue b/src/pages/Playroom.vue index da10587..5290933 100644 --- a/src/pages/Playroom.vue +++ b/src/pages/Playroom.vue @@ -148,9 +148,9 @@ function makePlayQueueListDismiss() {
-
{{ playQueueStore.list[playQueueStore.currentIndex].song.name }} +
{{ playQueueStore.list[playQueueStore.currentIndex].song.name }}
-
+
{{ artistsOrganize(playQueueStore.list[playQueueStore.currentIndex].song.artists ?? []) }} — {{ playQueueStore.list[playQueueStore.currentIndex].album?.name ?? '未知专辑' }}
diff --git a/src/utils/audioVisualizer.ts b/src/utils/audioVisualizer.ts index 206f06f..ede6f81 100644 --- a/src/utils/audioVisualizer.ts +++ b/src/utils/audioVisualizer.ts @@ -170,11 +170,13 @@ export function audioVisualizer(options: AudioVisualizerOptions = {}) { // 定义人耳感知的频率范围 (Hz) const frequencyRanges = [ - { min: 20, max: 250, name: '低音' }, // 低音 - { min: 250, max: 2000, name: '中低音' }, // 中低音 - { min: 2000, max: 8000, name: '中高音' }, // 中高音 - { min: 8000, max: 20000, name: '高音' } // 高音 - ] + { min: 20, max: 80, name: '超低音' }, // 索引 0 + { min: 80, max: 250, name: '低音' }, // 索引 1 + { min: 250, max: 800, name: '中低音' }, // 索引 2 + { min: 800, max: 2500, name: '中音' }, // 索引 3 + { min: 2500, max: 6000, name: '中高音' }, // 索引 4 + { min: 6000, max: 20000, name: '高音' } // 索引 5 + ] for (let i = 0; i < bands; i++) { const range = frequencyRanges[i] || frequencyRanges[frequencyRanges.length - 1]