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

Custom wrapper and JS binding for MonoMixer algorithm #30

Closed albincorreya closed 4 years ago

albincorreya commented 4 years ago

Custom JS binding for downmixing stereo signal to mono using the MonoMixer algorithm with a wrapper around StereoMuxer algorithm in essentia.

As mentioned in #27, currently there are no JS bindings for algorithms that expect vector_stereosample. This proposed wrapper could expose the following interface for JS bindings instead of expecting a vector_stereosample type.

MonoMixer(std::vector<float>& left_channel, std::vector<float>& right_channel);