Giter Site home page Giter Site logo

Comments (11)

indutny avatar indutny commented on July 28, 2024

Added "framework" for introducing more benchmarks. Right now comparing to:

from fft.js.

drom avatar drom commented on July 28, 2024

try https://github.com/drom/fourier

drom/fourier#1

from fft.js.

indutny avatar indutny commented on July 28, 2024

@drom done

from fft.js.

faroit avatar faroit commented on July 28, 2024

Hey, this is a great implementation!

Have you tested compared to the builtin FFT in web audio? Even though this would be bit unfair because it's not js, it would still be interesting to see if fft.js would be fast enough to use this for realtime audio.

from fft.js.

indutny avatar indutny commented on July 28, 2024

@faroit good idea!

Just curious, how many bands do you actually use in web audio? fft.js can do 2k ops/sec on 16384 bands, which means that it will add less than 0.5ms of latency. On 4096 bands it is about 0.1ms of added latency.

from fft.js.

humphd avatar humphd commented on July 28, 2024

+@corbanbrook who worked on the Firefox Audio stuff with me and wrote dsp.js. He's done a lot of perf work on this stuff in the past, see also https://gist.github.com/corbanbrook/469c325734e458ba1415509f52d9c096

from fft.js.

indutny avatar indutny commented on July 28, 2024

This gist is a part of our discussion with @corbanbrook with regards to fft.js performance and comparing it to dsp.js . After few improvements to benchmarks and the library code, I'm quite confident that current benchmarks are accurate and fft.js outperforms dsp.js on all of input sizes.

from fft.js.

indutny avatar indutny commented on July 28, 2024

Thank you for adding it to this discussion, though!

from fft.js.

Matt-Esch avatar Matt-Esch commented on July 28, 2024

https://github.com/Matt-Esch/browser-fft/blob/master/index.js an example using the browser "native" fft with a web audio hack

from fft.js.

indutny avatar indutny commented on July 28, 2024

@Matt-Esch this is cool, however it is rather non obvious how the latency can be measured with WebAudio. I suppose one can insert JS node before and after and calculate delta, but this is obviously not how this is going to be used.

from fft.js.

indutny avatar indutny commented on July 28, 2024

I guess this can be closed now.

from fft.js.

Related Issues (13)

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.