qiuxiang / aubiojs

aubio for javascript, the real-time audio processing library
https://qiuxiang.github.io/aubiojs/
MIT License
134 stars 36 forks source link

Use WASM, update aubio and add several compile flags to reduce the size #2

Closed ebraminio closed 6 years ago

ebraminio commented 6 years ago

Fixes #1

Also added some compile flags in hope to reduce the size and hide more internal symbols of aubio :)

ebraminio commented 6 years ago

Also works on my own web tuner (which gained a lot from yours 😊) however it has one caveat, it won't work just immediately and aubio.js should fetch aubio.wasm binary first, so it should be used like Module().then(function (module) { /* module is ready to use */ })

qiuxiang commented 6 years ago

Thanks for your PR!

ebraminio commented 6 years ago

I've noticed that I broke the examples/ folder however :(