GithubHelp home page GithubHelp logo

Comments (9)

Oortone avatar Oortone commented on June 16, 2024

Addition: As noted, with hopSize set to the same as bufferSize I get more sensible figures. However when starting (activating WebAudio) I do get a few first readings that look similar to the ones where hopSize is set to a separate value. At least I see that with spectralRolloff. Glitches at startup? So maybe glitches with differntiated hopSize in a simmilar way but constantly?

I also recorded the Audio Input on a DAW to assure there's nothing wrong with the soundcard and it isn't. The 250hz tone is clear without glitches. The WebAudio throughput does not have glitches either.

I have now also tried on a PC Laptop using Chrome with the same result.

from meyda.

Oortone avatar Oortone commented on June 16, 2024

Here's the script online. A little bit of junk remaining but nothing that should affect WebAudio:
https://www.sigvardson.se/public/audioclassification_test/meydaminimum.html

Open in Chrome (I only tested in Chrome/Edge) Javascript console to see reading of spectralRolloff when feeding 250 hz. In this one I set sampling frequency to 44100 hz.

Also tried using latest version, but I see no difference. Still jumping values:

<script type="text/javascript" src="https://unpkg.com/meyda/dist/web/meyda.min.js"></script>

from meyda.

Oortone avatar Oortone commented on June 16, 2024

Yet an addition. After experimenting with various ways (Meyda, Essentia, WebAudio) to create short term amplitude spectrum at 48 kHz sampling frequency and 2048 buffer size I'm pretty sure there's an issue with the deprecated ScriptProcessorNode. I get the same weird glitches in Chrome in both Meyda and Essentia using this node but it seems I get a clean signal using the WebAudio built in AnalyserNode. Although of course at the cost of practically no other feature extraction than STFT-spectrogram available.

It might be that I can get better result with other buffers or sampling frequency but that's of no use for my current project and it also seems very unreliable since indeed ScriptProcessorNode is deprecated.

from meyda.

hughrawlinson avatar hughrawlinson commented on June 16, 2024

Thanks for reporting this @Oortone. I'll look into it as soon as I can.

from meyda.

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.