Git Product home page Git Product logo

kissfft-js's Introduction

kissfft-js

Javascript port of KissFFT via Emscripten.

Install: npm install kissfft-js

See latest benchmarks against other popular Javascript FFT algorithms here.

Thanks to Chris Cannam for the original benchmark tool and for transpiling KissFFT. This version has been optimized to perform much faster since forking Chris' version.

Example usage for kissfft-js can be found in the test directory. The examples are only of the real valued transform / inverse, however complex to complex is also available.

The original KissFFT docs are also here.

kissfft-js's People

Contributors

j-funk avatar zxol avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

kissfft-js's Issues

runtime error could be a security risk

Hi,

When using this module we get an web inspect issue that there is a runtime error. This is the bit of code in that is causing the issue:

..16[1]=25459,115!==HEAPU8[2]||99!==HEAPU8[3])throw"Runtime error: expected the system to be little-endian!";

Would it be possible to update this so that a runtime error isn't thrown?

Thanks

Add transpilation related code to the repo

Would it be possible to add scripts/makefile etc that you use to get from C to js. Currently, there is the final product (the .js files), but not the way to recrated those.

Fail to run fft test

When run same test code, fftw-js works, kissfft-js fail with error like:

   RangeError: Maximum call stack size exceeded
      at ra (node_modules/kissfft-js/src/KissFFT.js:9:961)
      at ra (node_modules/kissfft-js/src/KissFFT.js:9:1393)
      at ra (node_modules/kissfft-js/src/KissFFT.js:9:1393)

Do you have any idea?
PS: run code on Mac OSX, NodeJS v8.6.0.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.