Coder Social home page Coder Social logo

fourier-transform's People

Contributors

danigb avatar dy avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

fourier-transform's Issues

Precision

//get normalized magnitudes for frequencies from 0 to 22050 with interval 44100/1024 ≈ 43Hz

Is it possible to change the precision from 1024 to 4096?

Validating the output

Hi,

I suppose I'm neither the first of or the last that, frustrated by the abandon of dsp.js library, tries to maintain an updated version of the bests parts. So, I've started a port of rsft (before discover your project): https://github.com/oramics/dsp-kit/tree/master/packages/rfft

I also did my own benchmarks (at least repeating is good for learn ;-). Finally I've tried to include the inverse rfft implementation: https://github.com/oramics/dsp-kit/blob/master/packages/rfft/lib/inverse.js

But the problem is that I discover that this rfft implementation returns a result that is completely different from the fftimplementation of the same dsp.js library. The test is here: https://github.com/oramics/dsp-kit/blob/master/packages/rfft/test/test.js#L7

Have you tested the output? Are you aware of this problem? Did you used this implementation in any project?

Thanks in advance.

Readme notes on input size

Great work! I've been wishing for a nice clean implementation for a long time! One small thing: Is it possible to clarify in the readme whether this works non-power-of-two sizes? It wasn't immediately clear to me from either the readme or the source which sizes are permitted (or if there are restrictions at all). Thanks!

The output array of fft() is NaN

I am having issues with the FFT() function, the output im receiving is always NaN, and i cannot figure out why. Any help would be appreciated. I am using ReactNative as such my code snippet is as follows:

      let tempx = []
      let tempy = []
      let tempz = []

      for(var i =0;i<1024;i++){
        tempx[i] = parseFloat(arrayx[i])
        tempy[i] = parseFloat(arrayy[i])
        tempz[i] = parseFloat(arrayz[i])
      }

      let spectrumx = ft(tempx);
      let spectrumy = ft(tempy);
      let spectrumz = ft(tempz);

Question: where do I find 'decibels'?

$ node --version
v6.12.3
$ node
> var db = require('decibels');

module.js:471
    throw err;
    ^

Error: Cannot find module 'decibels'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/usr/lib/test/code.js:96:10)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)

> var ft = require('fourier-transform');
undefined
> ft
[Function: rfft]
>

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.