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
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