VST Plugin that executes a command line program with arguments

I want a plugin (VST3) that simply executes a command line (with arguments).
The use case is to run a standalone audio app (say VCV Rack) when a particular DAW session file is loaded. The command line (arguments) would specify the particular project file to use with the standalone for the particular DAW session in which it is used.
I can’t find reference to this anywhere. I’m sure it is not an original idea.
Before I code such a plugin myself, I thought I’d ask if anyone has heard of this, or knows of an existing example of such a plugin?

I haven’t ever seen such a plugin myself, but it should be relatively trivial to code one up with Juce. (ChildProcess is the class to use for launching new processes.)

Thanks for the hint.
After some time away, good project to get back into the flow with Juce!

I’ve implemented a very basic VST3 plugin (windows) that calls ChildProcess.Start()
Works as standalone and in REAPER but does not work in Ableton 10 (exe not run).
I’m issueing start() at the end of the Editor constructor and not monitoring it.
Is there a preferred place I should be monitoring the process, for example retrying it if it fails to start for some reason. It’s not a realtime task compared to audio or even gui, really.
Any comments appreciated!

It now works in (all I’ve tested) Ableton, Reaper, Standalone (windows).
The process is launched from the processor class in prepareToPlay() which starts a low frequency timer and attempts to launch if not running, periodically.
source files on github

1 Like