mirror of
https://codeberg.org/armin/noiz.git
synced 2026-09-01 05:50:52 +02:00
fix spec peak hold to fall down smoothly instead of snapping to zero
This commit is contained in:
parent
4a203dbaf8
commit
6479e49d18
1 changed files with 1 additions and 1 deletions
|
|
@ -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';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue