kissfft
FFT for node using kissfft.
Usage:
var fft = require('kissfft').fft;
var input = Float32Array([1, 0, 2, 0, 3, 0, 4, 0]);
var output = Float32Array(input.length);
fft(input, output, callback (err, result) {
});
If your input consists of real values only, kissfft supports a faster mode
that will calculate half the bins (plus the Nyquist frequency).
var fft = require('kissfft').fft;
var input = Float32Array([1, 2, 3, 4]);
var output = Float32Array(input.length + 2);
fft(input, output, callback (err, result) {
});
Inverse FFT is not currently supported because I didn't need it. Patches welcome.