Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FrequencyBands throws uncaught error #108

Open
2 of 9 tasks
jmarcosfer opened this issue Oct 6, 2022 · 0 comments
Open
2 of 9 tasks

FrequencyBands throws uncaught error #108

jmarcosfer opened this issue Oct 6, 2022 · 0 comments
Labels
bug Something isn't working EMSCRIPTEN tests

Comments

@jmarcosfer
Copy link
Collaborator

What is the issue about?

  • Bug
  • Feature request
  • Usage question
  • Documentation
  • Contributing / Development

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

  • essentia.js-core (vanilla algorithms)
  • essentia.js-model (machine learning algorithms)
  • essentia.js-plot (plotting utility module)
  • essentia.js-extractor (typical algorithm combinations utility)

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

@jmarcosfer jmarcosfer added bug Something isn't working EMSCRIPTEN tests labels Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working EMSCRIPTEN tests
Projects
None yet
Development

No branches or pull requests

1 participant