We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60a30c9 commit 2e491a2Copy full SHA for 2e491a2
src/components/FFT.tsx
@@ -161,7 +161,7 @@ const FFT = forwardRef(
161
);
162
}
163
};
164
- const filter = new SmoothingFilter(128, 1);
+ const filter = new SmoothingFilter(40, 1);
165
166
useImperativeHandle(
167
ref,
@@ -178,7 +178,7 @@ const FFT = forwardRef(
178
samplesReceived++;
179
180
// Trigger FFT computation more frequently
181
- if (samplesReceived % 15 === 0) { // Changed from 25 to 5
+ if (samplesReceived % 20 === 0) { // Changed from 25 to 5
182
const processedBuffer = fftBufferRef.current[i].slice(0, fftSize);
183
const floatInput = new Float32Array(processedBuffer);
184
const fftMags = fftProcessor.computeMagnitudes(floatInput);
0 commit comments