Git Product home page Git Product logo

Comments (3)

rtoy avatar rtoy commented on July 22, 2024

I do not know the history of why things are computed the way they are, but I suspect the original purpose of the AnalyserNode was primarily for visualization, not really analysis of the audio data. If I were doing this, I'd at least have smoothing done based on Bartlett's method of averaged periodograms.

I think it's too late to change the algorithms unless it gives something truly and significantly better in some way.

from web-audio-api-v2.

linolinco avatar linolinco commented on July 22, 2024

I totally agree with your assessment - I just wanted to write down the result of my looking into this here for future reference, in case someone does decide to overhaul AnalyserNode at some point, or create a better replacement for it. I can understand if there is no urgent motivation to do this any time soon though.

My parallel feature request (to get access to the raw FFT output) would provide anyone who wants to use AnalyserNode's FFT with an easy way to replace its prepackaged postprocessing with their own; I think that's far more important than spiffing up the bundled package, which seems to be designed for just a single use case.

Interestingly, Bartlett's method also smoothes the squared magnitude, same as I proposed. For a stream-oriented framework, I think replacing an average with an exponential running average as done here for smoothing is a reasonable modification.

from web-audio-api-v2.

rtoy avatar rtoy commented on July 22, 2024

Teleconf: We have no plans on changing the algorithm for the AnalyserNode; it's too late for that.

Closing.

from web-audio-api-v2.

Related Issues (20)

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.