Send midi CC's on XY pad

MIDI support in Open Stage Control is just a converter that awaits messages of a very specific form, the xy pad by default doesn’t comply to this and need some adjustements to send MIDI. The split option is going to be removed in the future in favor of the following approaches:

  1. Using a custom module, requires writing javascript
  2. Using a script widget
  3. Using input widgets to split the pad’s value

The first two solutions are not the simpliest but allow deep customization, here is an example for a use case close to yours : Two or more osc address on a toggle button

The third solution is the most straightforward to get if you’re new : set up two input widgets so that they send the MIDI control changes you need and reset the pad’s osc settings. Now set each input’s value property to

#{@{pads_id}[0]}
or
#{@{pads_id}[1]}

Where pads_id is the xy’s ìd. The first statement will return the pad’s x-axis, the second its y-axis. This syntax - documented here - will make the inputs listen for the pad’s update and send osc messages that are compliant with the MIDI converter spec.

Additionally, it is possible to make it work the other way around if you need the pad to update when receiving the control changes you send by setting the xy’s value property to
[@{input_1}, @{input_2}]

This would also let you set the x and y-axes independently using the input widgets if needed. Note that you could use faders instead of inputs here…

2 Likes