MTG / essentia.js

JavaScript library for music/audio analysis and processing powered by Essentia WebAssembly
https://essentia.upf.edu/essentiajs
GNU Affero General Public License v3.0
645 stars 42 forks source link

FrequencyBands throws uncaught error #108

Open jmarcosfer opened 1 year ago

jmarcosfer commented 1 year ago

What is the issue about?

What part(s) of Essentia.js is involved?

Description

Using FrequencyBands algorithm with default or any other parameters throws an uncaught error.

Steps to reproduce / Code snippets / Screenshots

Example usage of the algo and possible solution in this glitch example. The bug is related to instantiating an empty VectorVectorFloat and using its size (which is zero) to loop through the contents of the frequencyBands parameter, which consequently never gets filled but is still passed to the WASM function.

System info

Dell Inc. Vostro 5490, Ubuntu 21.10, Chrome 105.0.5195.125 64-bit