From 6479e49d18e56ca5c0d5bce70dbc767b153a1ce2 Mon Sep 17 00:00:00 2001 From: Armin Date: Wed, 8 Jul 2026 19:18:41 +0200 Subject: [PATCH] fix spec peak hold to fall down smoothly instead of snapping to zero --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index f37ca3a..f741d3c 100644 --- a/index.html +++ b/index.html @@ -549,7 +549,7 @@ function drawSpectrum() { } else if (peakHoldCounters[i] < peakHoldGrace) { peakHoldCounters[i]++; } else { - peakData[i] = 0; + peakData[i] *= peakDecay; } } ctx.fillStyle = '#e27878';