essy-fft

1.0.3 • Public • Published

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]  
 

Readme

Keywords

none

Package Sidebar

Install

npm i essy-fft

Weekly Downloads

2

Version

1.0.3

License

ISC

Unpacked Size

148 kB

Total Files

49

Last publish

Collaborators

  • scherry