Skip to content

Commit 4044877

Browse files
committed
Decreased spectrum points drawing step
1 parent 7f7df54 commit 4044877

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/graph_spectrum_plot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ GraphSpectrumPlot._drawFrequencyGraph = function (canvasCtx) {
212212
canvasCtx.fillStyle = barGradient;
213213

214214
const fftScale = HEIGHT / (this._zoomY * 100);
215-
for (let i = 0; i < PLOTTED_BUFFER_LENGTH; i += 10) {
215+
for (let i = 0; i < PLOTTED_BUFFER_LENGTH; i += 5) {
216216
const barHeight = this._fftData.fftOutput[i] * fftScale;
217217
canvasCtx.fillRect(x, HEIGHT - barHeight, barWidth, barHeight);
218218
x += barWidth + 1;

0 commit comments

Comments
 (0)