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
627 stars 41 forks source link

Return object definitions #97

Closed Oortone closed 2 years ago

Oortone commented 2 years ago

What is the issue about?

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

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

albincorreya commented 2 years ago

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.

Oortone commented 2 years ago

Great, thanks a lot.