fix spec peak hold to fall down smoothly instead of snapping to zero

This commit is contained in:
Armin 2026-07-08 19:18:41 +02:00
commit 6479e49d18

View file

@ -549,7 +549,7 @@ function drawSpectrum() {
} else if (peakHoldCounters[i] < peakHoldGrace) { } else if (peakHoldCounters[i] < peakHoldGrace) {
peakHoldCounters[i]++; peakHoldCounters[i]++;
} else { } else {
peakData[i] = 0; peakData[i] *= peakDecay;
} }
} }
ctx.fillStyle = '#e27878'; ctx.fillStyle = '#e27878';