Comments (4)
Hi Will,
Sorry I may not be of a lot of help right now (I'm sitting in my plane back from WAC waiting to depart...)
About the complain that typedFloat32Array2Vec
doesn't exist, did you include the following function in your code?
typedFloat32Array2Vec = function(typedArray) { var vec = new Module.VectorFloat(); for (var i=0; i<typedArray.length; i++) { if (typeof typedArray[i] === 'undefined') { vec.push_back(0); } else { vec.push_back(typedArray[i]); } } return vec; }
from essentia.js.
Hi, I think I've got past that problem, the html in the readme defines a function called typedFloat32Array2Vec
but tries to use it as typedFloat32ArrayVec
(note the missing 2). So if I create an audio buffer and fix the typo, I get a bit further, but now I get:
The missing function it seems from the C++ is a string called windowType
, do you know what values this is expecting? I tried 'hann'
and a few others in https://github.com/MTG/essentia/blob/96531284a35ef6142c6e6ed80cad8b82a9751e2e/src/algorithms/standard/windowing.cpp#L49 but it seems I now get this message Compiled code throwing an exception, 5959664,18536,11
from essentia.js.
Hi Will, I'll look into it.
Thanks.
from essentia.js.
Hey @willm, thanks for the feedback. The above-exception was due to the outdated wasm builds. Made a couple of changes as well. Now it should work as expected. Let me know if not.
The existing essentiamin-0.0.1.wasm
builds in the repo is compiled with --emrun
linker flags to capture stdout
and stderr
streams (which is useful for debugging). For dev purposes, you can use emrun tool from emscripten to launch the html page on the browser.
Or if you use the python http server for launching, add the mime type for wasm. Check this mdn/webassembly-examples#5 out. Try this example to add your mime type https://gist.github.com/HaiyangXu/ec88cbdce3cdbac7b8d5.
from essentia.js.
Related Issues (20)
- Using deep learning models with Essentia.js and Tensorflow.js HOT 1
- Tensor must have a shape comprised of positive integers but got shape [,96]
- Real-time mood classification - "most" vs "least" danceable part of a track HOT 1
- Error 404 when accessing the source code from the demos HOT 1
- Build errors trying to build onsets demo
- Real-time analysis.
- JS bindings for SBic
- GapsDetector not returning timestamp of anomaly in NodeJS
- RuntimeError: abort(TypeError: Failed to parse URL from asturiasfine.mp3). Build with -s ASSERTIONS=1 for more info. at process.abort (C:\Users\Rosanna\Desktop\node_modules\essentia.js\dist\essentia-wasm.umd.js:19:12157)
- Is this up-to-date? HOT 3
- Can't import Essentia
- Get sections/markers info (intro, verse, chorus etc) from an audio HOT 1
- FrameGenerator should provide access to other FrameCutter parameters
- I would like to request the implementation of SBic.
- Beginner documentation improvements HOT 1
- How to import ML models ad use for autotagging HOT 1
- VectorFloat params incorrectly converted on Typescript before passed to WASM
- Float params accept JS string containing numeric characters
- Webpack: error for missing modules in WASM version HOT 1
- Can essentia js be used in typescript for the web?
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 essentia.js.