essy-fft
v1.0.3
Published
Node wrapper for FFTReal.c.
Downloads
3
Readme
README
Node wrapper for FFTReal.c. See https://github.com/cyrilcode/fft-real.
Example
Exposes method rfft
that performs a forward FFT on real time data. Returns the
frequency magnitudes, normalized by fftSize / 2
.
import essyFFT from 'essy-fft';
const fftSize = 4;
const timeData = new Float32Array([0.1, 0.2, 0.3, 0.4]);
const magnitudes = essyFFT.rfft(fftSize, timeData);
// magnitudes => [0.5099, 0.1414]