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 6d4e28b commit 5ebf637Copy full SHA for 5ebf637
src/components/FFT.tsx
@@ -32,7 +32,7 @@ const FFT = forwardRef(
32
) => {
33
const fftBufferRef = useRef<number[][]>(Array.from({ length: 16 }, () => []));
34
const [fftData, setFftData] = useState<number[][]>(Array.from({ length: 16 }, () => []));
35
- const fftSize = Math.pow(2, Math.round(Math.log2(currentSamplingRate / 2)));
+ const fftSize = 256;
36
const sampleupdateref = useRef<number>(50);
37
sampleupdateref.current = currentSamplingRate / 10;
38
const canvasRef = useRef<HTMLCanvasElement>(null);
0 commit comments