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.
Failed to load latest commit information.

asm.js FFT module


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

Distributed under the MIT License