Comments (9)
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.
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.
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.
Thanks for reporting this @Oortone. I'll look into it as soon as I can.
from meyda.
Related Issues (20)
- RMS-levels = 0.3 HOT 7
- Some file sizes will crash CLI version HOT 6
- Flux using imag component? HOT 6
- Some feature extractors not working in CLI version HOT 8
- Wrong Logic for HopSize? HOT 2
- Fluid Corpus Manipulation HOT 3
- Power spectrum for spectral descriptors HOT 4
- DTMF detection HOT 1
- Is mel-spectrum available? HOT 5
- Last line in csv HOT 3
- Two features in WebAudio gets values out of range HOT 1
- Extracting MFCCs on Mobile Devices in React Native HOT 7
- How to get features in typescript without casting? HOT 2
- Running meyda in p5js for real time audio streaming HOT 2
- Can we compute a mel-scaled spectrogram? HOT 5
- I want to import a part of music data. HOT 6
- sample page not working HOT 13
- Node 18 support HOT 2
- node v19 support?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meyda.