More shape changes adding more frequencies

This commit is contained in:
AlacrisDevs
2026-02-16 20:45:21 +02:00
parent f792086876
commit 3f5b8be36e

View File

@@ -22,7 +22,7 @@
const DEFAULT_SIZE = 250; const DEFAULT_SIZE = 250;
const LINE_LIFT = 8; const LINE_LIFT = 8;
const FREQ_RANGE = 0.28; const FREQ_RANGE = 0.07;
const INV_255 = 1 / 255; const INV_255 = 1 / 255;
const SMOOTH_FACTOR = 0.45; const SMOOTH_FACTOR = 0.45;
const SCALE_SMOOTH = 0.15; const SCALE_SMOOTH = 0.15;
@@ -235,7 +235,7 @@
} }
analyser = audioContext.createAnalyser(); analyser = audioContext.createAnalyser();
analyser.fftSize = 2048; analyser.fftSize = 8192;
analyser.smoothingTimeConstant = smoothing; analyser.smoothingTimeConstant = smoothing;
bufferLength = analyser.frequencyBinCount; bufferLength = analyser.frequencyBinCount;
dataArray = new Uint8Array(bufferLength); dataArray = new Uint8Array(bufferLength);