mix linear/logarithmic frequency mapping (see "blend")

This commit is contained in:
Armin 2026-07-08 17:28:44 +02:00
commit a46be8ed0a

View file

@ -457,7 +457,7 @@ function drawSpectrum() {
const barMags = new Float32Array(NUM_BARS);
const minFreq = 20;
const maxFreq = 19000;
const blend = 0.4;
const blend = 0.6;
for (let b = 0; b < NUM_BARS; b++) {
const lowFreq = minFreq * Math.pow(maxFreq / minFreq, b / NUM_BARS);
const highFreq = minFreq * Math.pow(maxFreq / minFreq, (b + 1) / NUM_BARS);