Blue Cat Plug n Script - Communicating to an outside application
-
- KVRer
- Topic Starter
- 9 posts since 18 May, 2015
Dear Blue Cat,
Is there any way with plug n script to communicate to an outside application (not the application hosting the plugin) from within a script ?
For example, could the script send MIDI data directly to the second app ?
Could one do it with some other protocol, other than MIDI ? Sockets, etc ?
Kind regards
David "digby" Richards
Is there any way with plug n script to communicate to an outside application (not the application hosting the plugin) from within a script ?
For example, could the script send MIDI data directly to the second app ?
Could one do it with some other protocol, other than MIDI ? Sockets, etc ?
Kind regards
David "digby" Richards
-
Blue Cat Audio Blue Cat Audio https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=39981
- KVRAF
- 5821 posts since 8 Sep, 2004 from Paris (France)
Hi David,
Currently the plug-in can only communicate thru the host, with audio or MIDI data, to ensure perfect synchronization with the host. So if you can setup the host to send MIDI data to your external application it should be fine.
We might expose network capabilities in the scripting engine in the future (exposing libcurl for example), but this would not be a good idea to use such features in the real time dsp thread anyway.
Currently the plug-in can only communicate thru the host, with audio or MIDI data, to ensure perfect synchronization with the host. So if you can setup the host to send MIDI data to your external application it should be fine.
We might expose network capabilities in the scripting engine in the future (exposing libcurl for example), but this would not be a good idea to use such features in the real time dsp thread anyway.
-
- KVRer
- Topic Starter
- 9 posts since 18 May, 2015
+1 vote to expose network capabilities in the scripting engine please.expose network capabilities in the scripting engine in the future
Agreed. Is there a way to do slow, non critical processing, with the plug n script scripting system ?would not be a good idea to use such features in the real time dsp thread anyway
For example file activity (load audio data) ?
-
Blue Cat Audio Blue Cat Audio https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=39981
- KVRAF
- 5821 posts since 8 Sep, 2004 from Paris (France)
Right now the only place where you can perform intensive processing asynchronously (it does not block the host at all) is in the initialize() function. It is called every time the script is reloaded.
-
- KVRist
- 124 posts since 21 Nov, 2010
i didnt want to start a new post for this, and this is a very similar question so i will ask it here.
can you write plugins that can talk to each other in the way that your remote control plugins can?
can you write plugins that can talk to each other in the way that your remote control plugins can?
-
Blue Cat Audio Blue Cat Audio https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=39981
- KVRAF
- 5821 posts since 8 Sep, 2004 from Paris (France)
Sure you can. Remote Control actually only relies on MIDI - so you can just send/receive MIDI events between plug-ins, using the input & output MIDI queues in the processBlock() function.