JavaScript FFT module using asm.js
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 1 commit behind g200kg:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitattributes
.gitignore
asmjstest.html
fft-asm-lib.js
fft-asm-noasm.js
fft-asm.js
readme.md

readme.md

asm.js FFT module


Usage

Creating FftModule

var fftasm = new FftModule(num fftsize, boolean enable-asm);

  • Codes are compiled in this phase.

Execute FFT

fftasm.fft(Array real, Array imag, boolean normalize);

  • here the real/imag are input data (Array or TypedArray)
  • real/imag array size should be matched to [fftsize].
  • real/imag will be overwritten with the results.

Execute FFT & get magnitude

fftasm.fftmag(Array real, Array imag);

  • here the real/imag are input data (Array or TypedArray)
  • the result will be placed to [real] array.

Test page is available on http://www.g200kg.com/docs/asmjs/asmjstest.html


Distributed under the MIT License