Control Widgets Between Instances

Hello,

I have 2 instances, each uses 2 separate single client MIDI devices. MIDI A is used in Instance A, MIDI B is used in Instance B. I’d like to use MIDI B to control a widget in Instance A. The widget is mapped to a synth VST parameter.

I understand OSC might be the best route, but I’m a little intimidated to learn that method right now. Are there any other options I can use thru GP relayer?

Thanks

Direct Addressable OSC is the way to go.

  • In instance A, open Options > OSC. Enable OSC(if it isn’t already) and give the listening port a unique number. I’ve used 15002 in this example.

  • Also in instance A, add a widget. Give it an OSC handle. Turn on the Enable OSC switch, and take note of the OSC address shown next to the OSC handle name.

  • In instance B, open Options > OSC and make sure the Show Direct Addressable OSC switch is turned on.

  • Also in instance B, add a widget. In the Advanced tab, under Direct Addressable OSC, enter the OSC address shown for the widget you added in instance A. Add 127.0.0.1 as the target IP address and the OSC listening port of instance A. Turn on the Enable Widget Direct OSC switch.

  • The widget in instance B should now control the movement of the widget in instance A.

knobs

Thank you for this very thorough response, I really appreciate it. Can you please clarify what I should name the remote client port and listening port for each instance?

In instance A, open Options > OSC. Enable OSC(if it isn’t already) and use 15002 as the listening port.

In instance B, add a widget. In the Advanced tab, under Direct Addressable OSC, enter the OSC address shown for the widget you added in instance A. Add 127.0.0.1 as the target IP address and the 15002 as the port. Turn on the Enable Widget Direct OSC switch.

Since this is one-way communication, you only have to define the listening port of the instance that is receiving the messages ( I used 15002). For the Direct Addressable OSC widget, you tell it to send its messages to port 15002. Follow the directions and you’ll get it to work.

Which instance makes use of the Direct Addressable OSC? The instance that is receiving the remote OSC motion, or vice versa?

Instance A has a widget that I’d like to be moved by a knob in Instance B.

Can my computer be on airplane mode for this to work? What are the connections required?

Then follow my initial instructions. I wrote them for that very scenario.

Will try again now. I typically keep my computer on airplane mode, will that be a problem?

Thanks, I’ve corrected it in the description.

Thanks for this guide! it has been really helpful in getting a widget on my 2nd instance to control a knob on my first.

Do you know if there is a way to get widgets to sync bi-directionally? Where if I move the knob on my 1st instance the knob on the 2nd will also move? I have only gotten it work one way right now.

You should be able to set up the Direct Addressable OSC connection for the other widget in the same way.

OSC

Thank you for responding! I appreciate your patience as I work through this. This is my first foray into OSC and I am still trying to wrap my head around it.

I have gotten it working in a test rig where instance B will change the value in instance A. I’ve also figured out how to change the settings for Instance A to control the knob in instance B.

Is there a way to set it up where you can change the value on either instance and both will show the same current value?

I have attached my bare bones test rigs.

Instance2.gig (25.2 KB)

instance1.gig (25.1 KB)

Here’s how I have it working with the 2 gig files:
instance1.gig (27.7 KB)
Instance2.gig (27.7 KB)

knobs

You, sir, and a wizard! A very helpful wizard!

I will load these tonight and see if I can get it working on my end. :slight_smile:

Peter

I finally got a chance to dig into this some more this morning.

I have all my addresses and ports in options as you did in your screenshots. Both my widget settings are the same as your screenshots. “Enable Widget Direct OSC” switches are both turned on. Unfortunately, I am not getting movement on either knob.

Are you able to tell where I am going wrong? I am sure there is one little detail i am missing…

Thanks again!

One tiny detail like enabling OSC on the 2nd instance. So stupid. :rofl:

Now when I move one knob both start spazzing out.

You don’t have OSC enabled in InstanceTest2.

Found that right after I posted. Always how it works with me.

Now both widgets are spazzing out.

Google Drive link to a .mov file of the knobs spazzing out.

I think I figured it out. Each knob was at a different value when I enabled OSC on the 2nd instance. It got stuck in a fight between them for whose value would be taken.

I disabled Widget Direct OSC on one of them and reset both knobs to zero.

When I re-enabled Direct OSC both are behaving now.

New issue… I have attached knob1 in instance1 to a mixer’s volume, but I am not seeing movement on the fader when I move the knobs. When I move the fader, the knobs update. Weird.

Now that I have posted this I will likely find the answer within a few minutes… wish me luck.