MTG/essentia.js

Return object definitions

Oortone opened this issue · 2 comments

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

According to documentation, most methods in the Essentia class will return an object where the data from the analysis is enbedded and accessed by one or many object.data but how do I know the type of the data? Often I can guess but it's not clear from the documentation, for example a spectrum is possibly the VectorFloat type but a spectrum could also be complex (perhaps not in Essentia I'm not sure this is only an example) in which case I would have a hard time guessing the structure of the return type.

Steps to reproduce / Code snippets / Screenshots

System info

not system related, Essentia.js 0.1.3

You can check the upstream Essentia documentation for the output types of different algorithms. For example for Essentia.js RMS, you can check this page.

Great, thanks a lot.