Convert a Vamp Plugin to a JS Module » History » Version 1

Chris Cannam, 2017-06-20 09:24 AM

1 1 Chris Cannam
h1. Convert a Vamp Plugin to a JS Module
2 1 Chris Cannam
3 1 Chris Cannam
This page will describe how to take an existing Vamp plugin library, in the form of C++/C source code, and recompile it into a Javascript module that provides the "Piper":/projects/piper interface.
4 1 Chris Cannam
5 1 Chris Cannam
The process is a bit tricky, but it should only have to be done once for each plugin library, as the Javascript build is portable (unlike native builds of the original plugins which have to be re-done for each platform).
6 1 Chris Cannam
7 1 Chris Cannam
The process is also complicated by any third-party library code that the plugin may use. It's not possible to take an existing native library file (whether .a, .lib, .so, .dylib or .dll) and convert that to Javascript -- you have to add the original library source files to your build. This could be tricky to do if the library has any particular configuration requirements.