Building a VST instrument with Electron?


#1

Hi everyone,

I am researching options on building a VST for my synthesizer Viktor NV-1.
It’s built on top of the Web Audio API for which I need to embed a browser into the VSTi.

I was looking into the Chromium Embedded Framework, when I remembered about the Electron project and I decided to post a topic, here.

Do you think this is doable? Has anyone done such a thing before? Is Electron a better fit/starting-point for this?

Cheers!


#2

Hi, this should be feasible as far as you are able to port Chromium and Node.js to the VSTi platform if not already supported by Chromium and Node.js.

Electron is based on these 2 technologies. So to get Electron to run on the VSTi, you need Chromium and Node.js to run on your VSTi platform.


#3

Also note that you probably won’t be able the Web Audio APIs like you’ve probably been doing for your current experiments…


#4

Despite this thread being very old (same as the related KVR thread), it‘s still an interesting idea. @tsenkov have you made any progress on this idea since then?

As a programmer I love to modularize things, and that would mean to separate the audio processing part and the UI part. The audio processing part should ideally be written as a JS library that can be used as a Web Audio Node in other projects (like a web game). The UI should ideally also be written in JS using web technologies so it could also be used in the browser for interactively creating and tweaking presets.

That means for the audio processing part, something should be used that interfaces directly with the Web Audio API standard. There is an (unfortunately not well maintained) port of the Web Audio API for node: https://github.com/audiojs/web-audio-api

The node and webview still need to be wrapped as VSTi as @eshikafe pointed out. Any suggestions in that direction?