Interapp question

Hi, I need to control my plugin from another app, I explain it:

Let’s suppose I have 3 or for instance of a gain plugin with a knob that controls the gain value. My idea to get them in a “mixer visualization” is creating an app that works in standalone that at launch gets the instance of those my gain plugins and of the value of the gain (obviously not of the slider because editor could be nullptr) and that can change those values and listen about changes of those gain.

Is it possible?

Suggestion on where to start? (I don’t want to get this throw midi osc or generic udp because I don’t want to map things every time in plugins and in standalone app)

Really thank you in advance :heart::pray:

This sounds like a job for:
https://docs.juce.com/master/classInterprocessConnection.html

Maybe your app could be a:
https://docs.juce.com/master/classInterprocessConnectionServer.html

1 Like

Thank you, but with this I need to work with Port number and socket… There’s no way to have in processor a pointer to a standalone app and viceversa?

You may have missed the part that indicates you can also use a ‘named pipe’ as a connection method.

https://docs.juce.com/master/classInterprocessConnection.html#a0e073a6609a68de2e4fcc892c1d003c0

https://docs.juce.com/master/classInterprocessConnection.html#abafb2228ed136a2b34e2de03709eb9a7

1 Like

Oh sorry ! Yes, I missed it :pray:

If the answer to this is still relevant, I’m afraid it’s “no”, because the DAW that runs the plug-in and the standalone app will live in two different processes.
Each process will have its own addressing space and pointers in one of those spaces are almost certainly not accessible by the other (AFAIK, see Memory protection - Wikipedia)

1 Like

Ok thank you, I’ll read on wiki :heart::pray: